|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigurationHelper
| Method Summary | |
|---|---|
String |
getAttribute(String paramName)
Return the value of specified attribute. |
String |
getAttribute(String name,
String defaultValue)
Returns the value of the attribute specified by its name as a String, or the default value if no attribute by that name
exists or is empty. |
boolean |
getAttributeAsBoolean(String paramName)
Return the boolean value of the specified parameter
contained in this node. |
boolean |
getAttributeAsBoolean(String name,
boolean defaultValue)
Returns the value of the attribute specified by its name as a boolean, or the default value if no attribute by that
name exists or is empty. |
float |
getAttributeAsFloat(String paramName)
Return the float value of the specified parameter
contained in this node. |
float |
getAttributeAsFloat(String name,
float defaultValue)
Returns the value of the attribute specified by its name as a float, or the default value if no attribute by that name
exists or is empty. |
int |
getAttributeAsInteger(String paramName)
Return the int value of the specified attribute contained
in this node. |
int |
getAttributeAsInteger(String name,
int defaultValue)
Returns the value of the attribute specified by its name as a int, or the default value if no attribute by that name
exists or is empty. |
long |
getAttributeAsLong(String name)
Returns the value of the attribute specified by its name as a long. |
long |
getAttributeAsLong(String name,
long defaultValue)
Returns the value of the attribute specified by its name as a long, or the default value if no attribute by that name
exists or is empty. |
String[] |
getAttributeNames()
Return an array of all attribute names. |
String |
getAttributeOrValue(String paramName)
First tries to get the attribute based on hte parameter, and there is none, will return the value. |
ConfigurationHelper |
getChild(String child)
Return a new Configuration instance encapsulating the
specified child node. |
ConfigurationHelper |
getChild(String child,
boolean createNew)
Return a Configuration instance encapsulating the
specified child node. |
ConfigurationHelper[] |
getChildren()
Return an Array of Configuration elements
containing all node children. |
ConfigurationHelper[] |
getChildren(String... names)
|
ConfigurationHelper[] |
getChildren(String name)
Return an Array of Configuration elements
containing all node children with the specified name. |
String |
getLocation()
Return a string describing location of Configuration. |
String |
getName()
Return the name of the node. |
String |
getValue()
Return the String value of the node. |
String |
getValue(String defaultValue)
Returns the value of the configuration element as a String. |
boolean |
getValueAsBoolean()
Return the boolean value of the node. |
boolean |
getValueAsBoolean(boolean defaultValue)
Returns the value of the configuration element as a boolean. |
float |
getValueAsFloat()
Return the float value of the node. |
float |
getValueAsFloat(float defaultValue)
Returns the value of the configuration element as a float. |
int |
getValueAsInteger()
Return the int value of the node. |
int |
getValueAsInteger(int defaultValue)
Returns the value of the configuration element as an int. |
long |
getValueAsLong()
Return the long value of the node. |
long |
getValueAsLong(long defaultValue)
Returns the value of the configuration element as a long. |
void |
makeReadOnly()
|
| Method Detail |
|---|
String getName()
String getLocation()
ConfigurationHelper getChild(String child)
Configuration instance encapsulating the
specified child node.
ConfigurationHelper getChild(String child,
boolean createNew)
Configuration instance encapsulating the
specified child node.
ConfigurationHelper[] getChildren()
Array of Configuration elements
containing all node children. The array order will reflect the order in
the source config file.
ConfigurationHelper[] getChildren(String name)
Array of Configuration elements
containing all node children with the specified name. The array order
will reflect the order in the source config file.
ConfigurationHelper[] getChildren(String... names)
String[] getAttributeNames()
String getAttribute(String paramName)
throws ConfigurationException
ConfigurationException
int getAttributeAsInteger(String paramName)
throws ConfigurationException
int value of the specified attribute contained
in this node.
ConfigurationException
long getAttributeAsLong(String name)
throws ConfigurationException
long.
ConfigurationException
float getAttributeAsFloat(String paramName)
throws ConfigurationException
float value of the specified parameter
contained in this node.
ConfigurationException
boolean getAttributeAsBoolean(String paramName)
throws ConfigurationException
boolean value of the specified parameter
contained in this node.
ConfigurationExceptionString getAttributeOrValue(String paramName)
String getValue()
throws ConfigurationException
String value of the node.
ConfigurationException
int getValueAsInteger()
throws ConfigurationException
int value of the node.
ConfigurationException
float getValueAsFloat()
throws ConfigurationException
float value of the node.
ConfigurationException
boolean getValueAsBoolean()
throws ConfigurationException
boolean value of the node.
ConfigurationException
long getValueAsLong()
throws ConfigurationException
long value of the node.
ConfigurationExceptionString getValue(String defaultValue)
String.
If the configuration value is not set, the default value will be used.
int getValueAsInteger(int defaultValue)
int.
If the configuration value is not set, the default value will be used.
long getValueAsLong(long defaultValue)
long.
If the configuration value is not set, the default value will be used.
float getValueAsFloat(float defaultValue)
float.
If the configuration value is not set, the default value will be used.
boolean getValueAsBoolean(boolean defaultValue)
boolean.
If the configuration value is not set, the default value will be used.
String getAttribute(String name,
String defaultValue)
String, or the default value if no attribute by that name
exists or is empty.
int getAttributeAsInteger(String name,
int defaultValue)
int, or the default value if no attribute by that name
exists or is empty.
long getAttributeAsLong(String name,
long defaultValue)
long, or the default value if no attribute by that name
exists or is empty.
float getAttributeAsFloat(String name,
float defaultValue)
float, or the default value if no attribute by that name
exists or is empty.
boolean getAttributeAsBoolean(String name,
boolean defaultValue)
boolean, or the default value if no attribute by that
name exists or is empty.
void makeReadOnly()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||