|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Parameters present flat configuration data. Contained in the Parameters object is a set of name-value pairs.
Method Summary | |
Parameters |
getChildParameters(String prefix)
Return a Parameters object that represents a subset of parameters with specified prefix. |
String |
getParameter(String name)
Return value of parameter with specified name. |
String |
getParameter(String name,
String defaultValue)
Return value of parameter with specified name. |
boolean |
getParameterAsBoolean(String name)
Return value of parameter with specified name as a boolean. |
boolean |
getParameterAsBoolean(String name,
boolean defaultValue)
Return value of parameter with specified name as a boolean. |
float |
getParameterAsFloat(String name)
Return value of parameter with specified name as a float. |
float |
getParameterAsFloat(String name,
float defaultValue)
Return value of parameter with specified name as a float. |
int |
getParameterAsInteger(String name)
Return value of parameter with specified name as an integer. |
int |
getParameterAsInteger(String name,
int defaultValue)
Return value of parameter with specified name as an integer. |
long |
getParameterAsLong(String name)
Return value of parameter with specified name as a long. |
long |
getParameterAsLong(String name,
long defaultValue)
Return value of parameter with specified name as a long. |
String[] |
getParameterNames()
Return the names of all the parameters. |
boolean |
isParameter(String name)
Return true of parameter with specified name exists. |
Method Detail |
public String[] getParameterNames()
public boolean isParameter(String name)
name
- the name
public String getParameter(String name) throws ParameterException
name
- the name
ParameterException
- if unable to
locate parameterpublic String getParameter(String name, String defaultValue)
name
- the namedefaultValue
- the defaultValue if specified parameter does not
exist
public int getParameterAsInteger(String name) throws ParameterException
name
- the name
ParameterException
- if unable to
locate parameter or parameter can not be converted to correct typepublic int getParameterAsInteger(String name, int defaultValue)
name
- the namedefaultValue
- the defaultValue if specified parameter does not
exist or parameter can not be converted to the correct type
public long getParameterAsLong(String name) throws ParameterException
name
- the name
ParameterException
- if unable to
locate parameter or parameter can not be converted to correct typepublic long getParameterAsLong(String name, long defaultValue)
name
- the namedefaultValue
- the defaultValue if specified parameter does not
exist or parameter can not be converted to the correct type
public boolean getParameterAsBoolean(String name) throws ParameterException
name
- the name
ParameterException
- if unable to
locate parameter or parameter can not be converted to correct typepublic boolean getParameterAsBoolean(String name, boolean defaultValue)
name
- the namedefaultValue
- the defaultValue if specified parameter does not
exist or parameter can not be converted to the correct type
public float getParameterAsFloat(String name) throws ParameterException
name
- the name
ParameterException
- if unable to
locate parameter or parameter can not be converted to correct typepublic float getParameterAsFloat(String name, float defaultValue)
name
- the namedefaultValue
- the defaultValue if specified parameter does not
exist or parameter can not be converted to the correct type
public Parameters getChildParameters(String prefix)
prefix
- the prefix
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |