Class NoneOperand

All Implemented Interfaces:
Cloneable, Comparable<Operand<?>>, ArgsAccessor, Constituent, Operand<Boolean>, Synopsisable, org.refcodes.mixin.AliasAccessor, org.refcodes.mixin.Clonable, org.refcodes.mixin.DescriptionAccessor, org.refcodes.mixin.EnabledAccessor, org.refcodes.mixin.Resetable, org.refcodes.mixin.Schemable<CliSchema>, org.refcodes.mixin.TypeAccessor<Boolean>, org.refcodes.mixin.ValueAccessor<Boolean>

public class NoneOperand extends AbstractOperand<Boolean> implements Operand<Boolean>, org.refcodes.mixin.EnabledAccessor
The NoneOperand represents an empty set of arguments, e.g. no command line argument is being passed. Usually only makes sense near the root of a Constituent tree (e.g. inside the main XorCondition) to test ALL arguments passed to an application and one invocation may have neither optional (as of AnyCondition) nor mandatory arguments allowed.
  • Field Details

    • _description

      protected String _description
  • Constructor Details

    • NoneOperand

      public NoneOperand(String aDescription)
      Instantiates a new NoneOperand.
      Parameters:
      aDescription - The description to be used (without any line breaks).
    • NoneOperand

      public NoneOperand(String aAlias, String aDescription)
      Instantiates a new NoneOperand.
      Parameters:
      aAlias - The identifier to be used when printing the syntax via the toSyntax(CliContext) method.
      aDescription - The description to be used (without any line breaks).
    • NoneOperand

      public NoneOperand(org.refcodes.struct.Relation<String,Boolean> aProperty)
      Instantiates a new NoneOperand.
      Parameters:
      aProperty - The key (= alias) and the value for the operand.
  • Method Details