net.dpml.cli
Interface Group
- Option
- GroupImpl
An Option representing a choice or group of Options in the form "-a|-b|-c".
void | appendUsage(StringBuffer buffer, Set helpSettings, Comparator comp, String separator)- Appends usage information to the specified StringBuffer
|
int | getMaximum()- Retrieves the maximum number of members acceptable for a valid Group
|
int | getMinimum()- Retrieves the minimum number of members required for a valid Group
|
boolean | isRequired()- Indicates whether group members must be present for the CommandLine to be
valid.
|
appendUsage, canProcess, canProcess, defaults, findOption, getDescription, getId, getPreferredName, getPrefixes, getTriggers, helpLines, isRequired, process, validate |
appendUsage
public void appendUsage(StringBuffer buffer,
Set helpSettings,
Comparator comp,
String separator) Appends usage information to the specified StringBuffer
buffer - the buffer to append tohelpSettings - a set of display settings @see DisplaySettingcomp - a comparator used to sort the Optionsseparator - the String used to separate member Options
getMaximum
public int getMaximum()
Retrieves the maximum number of members acceptable for a valid Group
- the maximum number of members
getMinimum
public int getMinimum()
Retrieves the minimum number of members required for a valid Group
- the minimum number of members
isRequired
public boolean isRequired()
Indicates whether group members must be present for the CommandLine to be
valid.
- isRequired in interface Option
- true iff the CommandLine will be invalid without at least one
member option