Package | Description |
---|---|
com.martiansoftware.jsap |
Modifier and Type | Class and Description |
---|---|
class |
QualifiedSwitch
A QualifiedSwitch is a parameter that has something in common with a Switch,
i.e., its presence or absence is significant, but different from a "pure"
Switch it can have an additional value (or values) prefixed by a ':' sign
that qualifies the Switch - making it behave like a FlaggedOption if a value
is specified.
|
Modifier and Type | Method and Description |
---|---|
FlaggedOption |
FlaggedOption.setAllowMultipleDeclarations(boolean allowMultipleDeclarations)
Sets this FlaggedOption to allow or disallow multiple declarations.
|
FlaggedOption |
FlaggedOption.setDefault(String defaultValue)
Sets a default value for this parameter.
|
FlaggedOption |
FlaggedOption.setDefault(String[] defaultValues)
Sets one or more default values for this parameter.
|
FlaggedOption |
FlaggedOption.setList(boolean isList)
Sets whether this FlaggedOption is a list.
|
FlaggedOption |
FlaggedOption.setListSeparator(char listSeparator)
Sets the list separator character for this FlaggedOption.
|
FlaggedOption |
FlaggedOption.setLongFlag(String longFlag)
Sets the long flag for this FlaggedOption.
|
FlaggedOption |
FlaggedOption.setRequired(boolean required)
Sets whether this FlaggedOption is required.
|
FlaggedOption |
FlaggedOption.setShortFlag(char shortFlag)
Sets the short flag for this FlaggedOption.
|
FlaggedOption |
FlaggedOption.setStringParser(StringParser stringParser)
Sets the StringParser to which this FlaggedOption's parse() method
should delegate.
|
FlaggedOption |
FlaggedOption.setUsageName(String usageName)
Sets the name that will be displayed when getSyntax() is called
|
Copyright © 2015. All rights reserved.