| java.lang.Object org.jargp.ParameterSet
ParameterSet | public class ParameterSet (Code) | | Command line parameter collection definition. Each collection consists of
some number of parameter definitions. Multiple collections may be linked
to function as a single collection.
author: Dennis M. Sosnoski version: 1.0 |
Method Summary | |
ParameterDef | findDef(char flag) Find the parameter definition for a particular control flag. | ParameterDef | indexDef(int index) Get the parameter definition at a particular position in the list. |
ParameterSet | public ParameterSet(ParameterDef[] defs, ParameterSet next)(Code) | | Constructor
Parameters: defs - parameter definitions for this handler Parameters: next - parameter set used for parameters not defined in this set |
findDef | ParameterDef findDef(char flag)(Code) | | Find the parameter definition for a particular control flag. If the
control flag is not defined in the set this will pass the call on
to the next set until we reach the end of the chain.
Parameters: flag - control flag for parameter Parameters: parameter - definition, or null if not defined |
indexDef | ParameterDef indexDef(int index)(Code) | | Get the parameter definition at a particular position in the list. If
the index value supplied is not defined in the set this will pass the
call on to the next set until we reach the end of the chain. The caller
can index through all defined values by starting at zero and
incrementing until a null is returned.
Parameters: index - position for parameter definition to be returned Parameters: parameter - definition, or null if not defined |
|
|