Package | Description |
---|---|
com.martiansoftware.jsap | |
com.martiansoftware.jsap.ant |
Modifier and Type | Class and Description |
---|---|
class |
FlaggedOption
An option that implements the Flagged interface.
|
class |
Option
The base class from which FlaggedOption and UnflaggedOption are derived.
|
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.
|
class |
Switch
A Switch is a parameter whose presence alone is significant; another
commonly used term for a Switch is "Flag".
|
class |
UnflaggedOption
An option whose meaning is derived from its position in the argument
list rather than a flag
that precedes it.
|
Modifier and Type | Method and Description |
---|---|
Parameter |
JSAP.getByID(String id)
Returns the requested Switch, FlaggedOption, or UnflaggedOption with the
specified ID.
|
Parameter |
Parameter.setHelp(String help)
Sets the help text for this parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
JSAP.registerParameter(Parameter param)
Registers the specified Parameter (i.e., Switch, FlaggedOption,
or UnflaggedOption) with this JSAP.
|
void |
JSAP.unregisterParameter(Parameter param)
Unregisters the specified Parameter (i.e., Switch, FlaggedOption,
or UnflaggedOption) from this JSAP.
|
Constructor and Description |
---|
SimpleJSAP(String name,
String explanation,
Parameter[] parameter)
Creates a new simple JSAP with default screen width.
|
Modifier and Type | Method and Description |
---|---|
abstract Parameter |
ParameterConfiguration.getParameter()
Returns an Parameter (String, FlaggedOption, or UnflaggedOption)
configured according
to the settings contained within this object.
|
Parameter |
UnflaggedOptionConfiguration.getParameter()
Returns an UnflaggedOption configured according to this configuration.
|
Parameter |
SwitchConfiguration.getParameter()
Returns a Switch configured according to this configuration.
|
Parameter |
FlaggedOptionConfiguration.getParameter()
Returns a FlaggedOption preconfigured according to this configuration.
|
Copyright © 2015. All rights reserved.