Package | Description |
---|---|
com.martiansoftware.jsap | |
com.martiansoftware.jsap.xml |
Modifier and Type | Class and Description |
---|---|
class |
IllegalMultipleDeclarationException
An exception indicating that a parameter has illegally been declared multiple
times.
|
class |
ParseException
A JSAPException subclass notifying the application of a parse error.
|
class |
RequiredParameterMissingException
An exception indicating that a required parameter was missing from the
supplied arguments and defaults.
|
class |
SyntaxException
An exception indicating that a syntax error was encountered in the argument
list.
|
class |
UnknownFlagException
An exception indicating that a unknown flag has been specified.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Option.register()
Informs this Option's StringParser that this Option is being registered
with a JSAP.
|
void |
JSAP.registerParameter(Parameter param)
Registers the specified Parameter (i.e., Switch, FlaggedOption,
or UnflaggedOption) with this JSAP.
|
Constructor and Description |
---|
JSAP(String resourceName)
Creates a new JSAP configured as specified in the referenced xml.
|
JSAP(URL jsapXML)
Creates a new JSAP configured as specified in the referenced xml.
|
SimpleJSAP(String name)
Creates a new simple JSAP with a help switch, no explanation and default screen width.
|
SimpleJSAP(String name,
String explanation)
Creates a new simple JSAP with default screen width.
|
SimpleJSAP(String name,
String explanation,
Parameter[] parameter)
Creates a new simple JSAP with default screen width.
|
Modifier and Type | Method and Description |
---|---|
static void |
JSAPConfig.configure(JSAP jsapToConfigure,
URL jsapXML)
Loads a JSAP configuration from the xml at the specified URL, and configures
the specified JSAP object accordingly
|
Copyright © 2015. All rights reserved.