|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.devsphere.xml.taglib.support.builder.ParametersSupport
Support class for processing the command line parameters.
There are three types of parameters
-name value
-name value1 value2 value3 ...
-name
| Constructor Summary | |
ParametersSupport(java.lang.String[] args)
Constructor that saves the parameters to the args field. |
|
| Method Summary | |
boolean |
getFlag(java.lang.String name)
Returns true if a parameter is present. |
java.lang.String |
getParameter(java.lang.String name)
Returns the first value of a parameter. |
java.lang.String[] |
getParameterValues(java.lang.String name)
Returns the values of a parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ParametersSupport(java.lang.String[] args)
args field.
args - the command line parameters| Method Detail |
public java.lang.String getParameter(java.lang.String name)
name - the name of the parameter
null if the parameter is missing.public java.lang.String[] getParameterValues(java.lang.String name)
name - the name of the parameter
public boolean getFlag(java.lang.String name)
true if a parameter is present.
Use this method for flags.
name - the name of the parameter
|
Devsphere.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||