|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Parameters
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 |
---|
String[] getParameterNames()
boolean isParameter(String name)
name
- the name
String getParameter(String name) throws ParameterException
name
- the name
ParameterException
- if unable to
locate parameterString getParameter(String name, String defaultValue)
name
- the namedefaultValue
- the defaultValue if specified parameter does not
exist
int getParameterAsInteger(String name) throws ParameterException
name
- the name
ParameterException
- if unable to
locate parameter or parameter can not be converted to correct typeint 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
long getParameterAsLong(String name) throws ParameterException
name
- the name
ParameterException
- if unable to
locate parameter or parameter can not be converted to correct typelong 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
boolean getParameterAsBoolean(String name) throws ParameterException
name
- the name
ParameterException
- if unable to
locate parameter or parameter can not be converted to correct typeboolean 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
float getParameterAsFloat(String name) throws ParameterException
name
- the name
ParameterException
- if unable to
locate parameter or parameter can not be converted to correct typefloat 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
Parameters getChildParameters(String prefix)
prefix
- the prefix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |