public abstract class Option extends Parameter
The default list separator is JSAP.DEFAULT_LISTSEPARATOR, which is defined as the platform's path separator character (":" on *nix and ";" on DOS/Windows as described above).
Flagged
,
Option
Constructor and Description |
---|
Option(java.lang.String id)
Creates a new Option with the specified unique ID.
|
Modifier and Type | Method and Description |
---|---|
char |
getListSeparator()
Returns the current list separator character for this Option.
|
StringParser |
getStringParser()
Returns the StringParser to which this Option will delegate calls to its
parse() method, or null if
no StringParser is currently defined.
|
boolean |
isList()
Returns a boolean indicating whether this Option is a list.
|
boolean |
required()
Returns a boolean indicating whether this Option is required.
|
addDefault, getDefault, getHelp, getID, getSyntax, getUsage, getUsageName, setHelp
public Option(java.lang.String id)
id
- the unique ID for this Option.public final boolean isList()
public final char getListSeparator()
public final boolean required()
public final StringParser getStringParser()
Copyright © 2002-2006, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap