Class OrCondition

java.lang.Object
org.refcodes.cli.AbstractCondition
org.refcodes.cli.OrCondition
All Implemented Interfaces:
Condition, MatchCountAccessor, Synopsisable, Term, org.refcodes.exception.ExceptionAccessor<ArgsSyntaxException>, org.refcodes.graphical.VisibleAccessor, org.refcodes.graphical.VisibleAccessor.VisibleBuilder<Term>, org.refcodes.graphical.VisibleAccessor.VisibleMutator, org.refcodes.graphical.VisibleAccessor.VisibleProperty, org.refcodes.mixin.ChildrenAccessor<Term[]>, org.refcodes.mixin.DescriptionAccessor, org.refcodes.mixin.Resetable, org.refcodes.schema.Schemable

public class OrCondition extends AbstractCondition
An OrCondition represents a list of Condition (Term) instances of which at least one must be parsed successfully when the Term s' Term.parseArgs(String[], String[], CliContext) methods are invoked. The command line arguments syntax { -a | -b | -c } specifies that at least "-a", "-b" or "-c" must be set. In case none is set , then the OrCondition will terminate the parseArgs(String[], String[], CliContext) method with an exception.