|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cpptools.Options
public class Options
Implements a simple program options handler.
Constructor Summary | |
---|---|
Options(java.lang.String[] args)
Create a program options handler. |
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getArgList()
Retrieve a list of the non-parsable remaining arguments. |
java.util.List<java.lang.String> |
getOptionProperties(java.lang.String name)
Retrieve a list of all properties for a given option. |
java.util.List<java.lang.String> |
getOptionPropertyValues(java.lang.String name)
Retrieve a list of all property values for a given option. |
java.util.List<java.lang.String> |
getOptionValues(java.lang.String name)
Retrieve a list of all values for a given option. |
boolean |
hasOption(java.lang.String name)
Test if an option is set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Options(java.lang.String[] args)
args
- program argumentsMethod Detail |
---|
public final java.util.List<java.lang.String> getArgList()
public final boolean hasOption(java.lang.String name)
name
- the option
public final java.util.List<java.lang.String> getOptionValues(java.lang.String name)
With the option -optionvalue and the name option will return value.
name
- the option
public final java.util.List<java.lang.String> getOptionProperties(java.lang.String name)
With the option -optionproperty=value and the name option will return property.
name
- the option
public final java.util.List<java.lang.String> getOptionPropertyValues(java.lang.String name)
With the option -optionproperty=value and the name option will return value.
name
- the option
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |