|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Parameters
A container of parameters.
| Method Summary | |
|---|---|
void |
add(Parameters parameters,
boolean overwrite)
Adds all parameters from another container to this container. |
void |
add(String name,
boolean value)
Add the parameter. |
void |
add(String name,
boolean[] values)
Add the parameter. |
void |
add(String name,
Date value)
Add the parameter. |
void |
add(String name,
Date[] values)
Add the parameter. |
void |
add(String name,
float value)
Add the parameter. |
void |
add(String name,
float[] values)
Add the parameter. |
void |
add(String name,
int value)
Add the parameter. |
void |
add(String name,
int[] values)
Add the parameter. |
void |
add(String name,
long value)
Add the parameter. |
void |
add(String name,
long[] values)
Add the parameter. |
void |
add(String name,
String value)
Add the parameter. |
void |
add(String name,
String[] values)
Add the parameter. |
String |
get(String name)
Return the parameter with specified name. |
String |
get(String name,
String defaultValue)
Return the parameter with specified name. |
boolean |
getBoolean(String name)
Return the parameter with specified name. |
boolean |
getBoolean(String name,
boolean defaultValue)
Return the parameter with specified name. |
boolean[] |
getBooleans(String name)
Return all values of the parameter with specified name as an array. |
Parameters |
getChild(String prefix)
Return a parameters object that represents a subset of parameters with specified prefix. |
Date |
getDate(String name)
Return the parameter with specified name. |
Date |
getDate(String name,
Date defaultValue)
Return the parameter with specified name. |
Date[] |
getDates(String name)
Return all values of the parameter with specified name as an array. |
float |
getFloat(String name)
Return the parameter with specified name. |
float |
getFloat(String name,
float defaultValue)
Return the parameter with specified name. |
float[] |
getFloats(String name)
Return all values of the parameter with specified name as an array. |
int |
getInt(String name)
Return the parameter with specified name. |
int |
getInt(String name,
int defaultValue)
Return the parameter with specified name. |
int[] |
getInts(String name)
Return all values of the parameter with specified name as an array. |
long |
getLong(String name)
Return the parameter with specified name. |
long |
getLong(String name,
long defaultValue)
Return the parameter with specified name. |
long[] |
getLongs(String name)
Return the parameter as array of long values. |
String[] |
getParameterNames()
Return the names of all parameters. |
String[] |
getStrings(String name)
Return all values of the parameter with specified name as an array. |
boolean |
isDefined(String name)
Checks whether parameter is defined. |
void |
remove()
Remove all parameters. |
void |
remove(Set<String> keys)
Remove all parameters with a name contained in given set. |
void |
remove(String name)
Remove all parameters with a specified name. |
void |
remove(String name,
Date value)
Remove all parameters with a specified name and value. |
void |
remove(String name,
float value)
Remove all parameters with a specified name and value. |
void |
remove(String name,
int value)
Remove all parameters with a specified name and value. |
void |
remove(String name,
long value)
Remove all parameters with a specified name and value. |
void |
remove(String name,
String value)
Remove all parameters with a specified name and string value. |
void |
removeExcept(Set<String> keys)
Remove all except those with a keys specified in the set. |
void |
set(Parameters parameters)
Reset state to equal with given parameters. |
void |
set(String name,
boolean value)
Set the parameter. |
void |
set(String name,
boolean[] values)
Set the parameter. |
void |
set(String name,
Date value)
Set the parameter. |
void |
set(String name,
Date[] values)
Set the parameter. |
void |
set(String name,
float value)
Set the parameter. |
void |
set(String name,
float[] values)
Set the parameter. |
void |
set(String name,
int value)
Set the parameter. |
void |
set(String name,
int[] values)
Set the parameter. |
void |
set(String name,
long value)
Set the parameter. |
void |
set(String name,
long[] values)
Set the parameter. |
void |
set(String name,
String value)
Set the parameter. |
void |
set(String name,
String[] values)
Set the parameter. |
String |
toString()
Returns the contained properties as a parsable String. |
| Method Detail |
|---|
String get(String name)
name - the name of the parameter.
String get(String name,
String defaultValue)
name - the name of the parameter.defaultValue - the default value of the parameter.
String[] getStrings(String name)
name - the name of the parameters.
boolean getBoolean(String name)
name - the name of the parameter.
boolean getBoolean(String name,
boolean defaultValue)
name - the name of the parameter.defaultValue - the default value of the parameter.
boolean[] getBooleans(String name)
name - the name of the parameters.
Date getDate(String name)
name - the name of the parameter.
Date getDate(String name,
Date defaultValue)
name - the name of the parameter.defaultValue - the default value of the parameter.
Date[] getDates(String name)
name - the name of the parameters.
float getFloat(String name)
throws NumberFormatException
name - the name of the parameter.
NumberFormatException - if parameter is not a number.
float getFloat(String name,
float defaultValue)
name - the name of the parameter.defaultValue - the default value of the parameter.
float[] getFloats(String name)
throws NumberFormatException
name - the name of the parameters.
NumberFormatException - if anyone of the values is not a number.
int getInt(String name)
throws NumberFormatException
name - the name of the parameter.
NumberFormatException - if parameter is not a number.
int getInt(String name,
int defaultValue)
name - the name of the parameter.defaultValue - the default value of the parameter.
int[] getInts(String name)
throws NumberFormatException
name - the name of the parameters.
NumberFormatException - if anyone of the values is not a number.
long getLong(String name)
throws NumberFormatException
name - the name of the parameter.
NumberFormatException - if parameter is not a number.
long[] getLongs(String name)
throws NumberFormatException
name - the name of the parameter.
NumberFormatException - if parameter is not a number.
long getLong(String name,
long defaultValue)
name - the name of the parameter.defaultValue - the default value of the parameter.
String[] getParameterNames()
boolean isDefined(String name)
name - the name of the parameter.
true if parameter is defined.void remove()
void remove(String name)
name - the parameter name.
void remove(String name,
String value)
name - the parameter name.value - the parameter value.
void remove(String name,
Date value)
name - the parameter name.value - the parameter value.
void remove(String name,
float value)
name - the parameter name.value - the parameter value.
void remove(String name,
int value)
name - the parameter name.value - the parameter value.
void remove(String name,
long value)
name - the parameter name.value - the parameter value.void remove(Set<String> keys)
keys - the set of keys.void removeExcept(Set<String> keys)
keys - the set of names.
void set(String name,
String value)
name - the parameter name.value - the parameter value.
void set(String name,
String[] values)
name - the parameter name.values - the parameter values.void set(Parameters parameters)
parameters - the source parameters.
void set(String name,
boolean value)
name - the parameter name.value - the parameter value.
void set(String name,
boolean[] values)
name - the parameter name.values - the parameter values.
void set(String name,
Date value)
name - the parameter name.value - the parameter value.
void set(String name,
Date[] values)
name - the parameter name.values - the parameter values.
void set(String name,
float value)
name - the parameter name.value - the parameter value.
void set(String name,
float[] values)
name - the parameter name.values - the parameter values.
void set(String name,
int value)
name - the parameter name.value - the parameter value.
void set(String name,
int[] values)
name - the parameter name.values - the parameter values.
void set(String name,
long value)
name - the parameter name.value - the parameter value.
void set(String name,
long[] values)
name - the parameter name.values - the parameter values.
void add(String name,
String value)
name - the parameter name.value - the parameter value.
void add(String name,
String[] values)
name - the parameter name.values - the parameter values.
void add(String name,
boolean value)
name - the parameter name.value - the parameter value.
void add(String name,
boolean[] values)
name - the parameter name.values - the parameter values.
void add(String name,
Date value)
name - the parameter name.value - the parameter value.
void add(String name,
Date[] values)
name - the parameter name.values - the parameter values.
void add(String name,
float value)
name - the parameter name.value - the parameter value.
void add(String name,
float[] values)
name - the parameter name.values - the parameter values.
void add(String name,
int value)
name - the parameter name.value - the parameter value.
void add(String name,
int[] values)
name - the parameter name.values - the parameter values.
void add(String name,
long value)
name - the parameter name.value - the parameter value.
void add(String name,
long[] values)
name - the parameter name.values - the parameter values.
void add(Parameters parameters,
boolean overwrite)
true all conflicting
parameters from this container will be replaced,
otherwise all parameters from another container will be added.
parameters - the parameters object.overwrite - the overwrite switch.String toString()
toString in class ObjectParameters getChild(String prefix)
prefix - the prefix.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||