Class AllCondition

java.lang.Object
org.refcodes.cli.AbstractCondition
org.refcodes.cli.AllCondition
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 AllCondition extends AbstractCondition
The AllCondition enforces that the encapsulated Term consumes all arguments passed via invoking its Term.parseArgs(String[], CliContext), else a SuperfluousArgsException is thrown. This enables the construction of a syntax which otherwise would not be unambiguous when encapsulated within an XorCondition.