All Implemented Interfaces:
Cloneable
, Comparable <Operand <?>>
, ArgsAccessor
, Operand <String >
, Synopsisable
, Syntaxable
, org.refcodes.mixin.AliasAccessor
, org.refcodes.mixin.Clonable
, org.refcodes.mixin.DescriptionAccessor
, org.refcodes.mixin.Resetable
, org.refcodes.mixin.Schemable<CliSchema >
, org.refcodes.mixin.TypeAccessor<String >
, org.refcodes.mixin.ValueAccessor<String >
An
Operand
(neither a short option nor a long option prepended nor
being a switch) being s
String
. An
Operand
stands by itself
and represents itself.
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.AliasAccessor
org.refcodes.mixin.AliasAccessor.AliasBuilder<B extends org.refcodes.mixin.AliasAccessor.AliasBuilder<B>>, org.refcodes.mixin.AliasAccessor.AliasMutator, org.refcodes.mixin.AliasAccessor.AliasProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.DescriptionAccessor
org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B extends org.refcodes.mixin.DescriptionAccessor.DescriptionBuilder<B>>, org.refcodes.mixin.DescriptionAccessor.DescriptionMutator, org.refcodes.mixin.DescriptionAccessor.DescriptionProperty
Nested classes/interfaces inherited from interface org.refcodes.mixin.TypeAccessor
org.refcodes.mixin.TypeAccessor.TypeBuilder<T extends Object ,B extends org.refcodes.mixin.TypeAccessor.TypeBuilder<T,B>>, org.refcodes.mixin.TypeAccessor.TypeMutator<T extends Object >, org.refcodes.mixin.TypeAccessor.TypeProperty<T extends Object >
Nested classes/interfaces inherited from interface org.refcodes.mixin.ValueAccessor
org.refcodes.mixin.ValueAccessor.ValueBuilder<V extends Object ,B extends org.refcodes.mixin.ValueAccessor.ValueBuilder<V,B>>, org.refcodes.mixin.ValueAccessor.ValueMutator<V extends Object >, org.refcodes.mixin.ValueAccessor.ValueProperty<V extends Object >
Constructor Summary
Constructors
Instantiates a new string operand.
Instantiates a new string operand.
Method Summary
All Methods Instance Methods Concrete Methods
Methods inherited from class org.refcodes.cli.AbstractOperand
clone , compareTo , getAlias , getArgs , getDescription , getType , getValue , parseArgs , reset , setArgs , setValue , toSchema , toState , toString , toSyntax
Methods inherited from interface org.refcodes.mixin.ValueAccessor
getValueOr
Constructor Details
StringOperand
public StringOperand (org.refcodes.struct.Relation<String ,String > aProperty)
Instantiates a new string operand.
Parameters:
aProperty
- The key (= alias) and the value for the operand.
Method Details
toSynopsis
Specified by:
toSynopsis
in interface Synopsisable
Parameters:
aSyntaxNotation
- The syntax notation used for generating the
command line arguments syntax.
aOptEscCode
- The escape code to be used when processing an option,
e.g. this can be an ANSI Escape-Code to highlight the option.
aParamEscCode
- The escape code to be used when processing am
argument, e.g. this can be an ANSI Escape-Code to highlight the
option.
aResetEscCode
- The escape code to close (reset) any Escape-Code
being set before.
Returns:
The human readable (verbose) command line arguments syntax.