Construct a configuration object from the given XML String
with the given id.
Parameters: id - used to identify the parsing sequence Parameters: xmlString - The xml string we want to load Parameters: encoding - character encoding throws: ConfigurationException -
Add a child node with no child value to the configuration. This
method should be the same as calling
addChild(name, "") Parameters: name - The name of the new configuration node The configuration node
Add a child node to the configuration.
Parameters: name - The name of the new configuration node Parameters: value - The value of the new configuration node The configuration node
Add a child node to the configuration.
Parameters: name - The name of the new configuration node Parameters: value - The value of the new configuration node Parameters: defaultValue - The value to use in case the value is null The configuration node
This is a deep copy of XMLConfiguration since atrributes and values are Strings and therefore immutable.
Unless of course you modified the object manually and entered complex objects as values or attribute values.
All this does is return the result of configuration.copy() call on the wrapped configuration object.
copy of the wrapped Configuration object
Get the named attribute. If the attribute is not found then
return the given default value.
Parameters: name - The attribute name Parameters: defaultValue - The default value The attribute value
Get the child configuration object with the given name. If the
child with the name does not exist then this method returns
null. If more than one child with the given name exists then
this method returns the first child.
Parameters: name - The child name The first named child or null
Get the value of the first child configuration object with the
given name. If the child cannot be found or the child had no
data then this method returns null.
Parameters: name - The child name The value or null
Get the value of the first child configuration object with the
given name. If the child cannot be found or the child had no
data then this method returns the given default value.
Parameters: name - The child name Parameters: defaultValue - The default value The value
Get the parent configuration object. This method will return null
if this configuration object is the top-most configuration object
in the configuration tree.
The parent configuration object or null
Load the configuration from the file represented by the
given file name. A File object is constructed using the
given String. If the File exists then it is used to load
the configuration information. If the File does not exist
then the classpath will be searched for the given file name.
The filename cannot be null.
Parameters: filename - The filename throws: ConfigurationException -
Returns this XMLConfiguration as a string.
Internally it uses the save method, to obtain the string.
this XMLConfiguration as a string throws: ConfigurationException -