Uses of Interface
org.refcodes.cli.Condition
-
Uses of Condition in org.refcodes.cli
Modifier and TypeClassDescriptionclass
TheAbstractCondition
is an abstract implementation of theCondition
interface providing the boiler plate when implementing theCondition
interface as done by theAbstractCondition
's sub-classes.class
TheAllCondition
enforces that the encapsulatedTerm
consumes all arguments passed via invoking itsTerm.parseArgs(String[], CliContext)
, else aSuperfluousArgsException
is thrown.class
AnAndCondition
contains (represents) a list ofCondition
(Term
) instances (nested by theAndCondition
) of which all are to be parsed successfully as of invoking theTerm.parseArgs(String[], String[], CliContext)
methods.class
Any of the nestedCondition
conditions may match for theAnyCondition
to match, e.g. all of the nested conditions are optional.class
TheCasesCondition
is anXorCondition
making sure that all possible cases inside theXorCondition
must(!)class
AnOrCondition
represents a list ofCondition
(Term
) instances of which at least one must be parsed successfully when theTerm
s'Term.parseArgs(String[], String[], CliContext)
methods are invoked.class
AnXorCondition
represents a list ofCondition
(Term
) instances of which only one is allowed to be parsed successfully when theTerm.parseArgs(String[], String[], CliContext)
methods are invoked.