Class AndCondition

All Implemented Interfaces:
Condition, Constituent, Synopsisable, org.refcodes.mixin.DescriptionAccessor, org.refcodes.mixin.Resetable, org.refcodes.mixin.Schemable<CliSchema>

public class AndCondition extends AbstractCondition implements Condition
An AndCondition contains (represents) a list of Condition (Constituent) instances (nested by the AndCondition) of which all are to be parsed successfully as of invoking the Constituent.parseArgs(String[], String[], CliContext) methods. The command line arguments syntax -a & -b & -c specifies that all "-a", "-b" and "-c" must be set. In case at least one is not set, then the AndCondition will terminate the parseArgs(String[], String[], CliContext) method with an exception. If one argument is optional, then consider nesting it in an AnyCondition.