public interface MutableConfiguration extends Configuration
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Configuration other)
Add all the attributes, children and value
from specified configuration element to current
configuration element.
|
void |
addAllAttributes(Configuration other)
Add all attributes from specified configuration
element to current configuration element.
|
void |
addAllChildren(Configuration other)
Add all child
Configuration objects from specified
configuration element to current configuration element. |
void |
addChild(Configuration configuration)
Add a child
Configuration to this configuration element. |
MutableConfiguration |
getMutableChild(java.lang.String name)
Equivalent to
getMutableChild( name, true ) |
MutableConfiguration |
getMutableChild(java.lang.String name,
boolean autoCreate)
Gets a child node of this configuration.
|
MutableConfiguration[] |
getMutableChildren()
Returns an array of mutable children.
|
MutableConfiguration[] |
getMutableChildren(java.lang.String name)
Returns an array of mutable children with the given name.
|
void |
removeChild(Configuration configuration)
Remove a child
Configuration to this configuration element. |
void |
setAttribute(java.lang.String name,
boolean value)
Set the value of the specified attribute to the specified boolean.
|
void |
setAttribute(java.lang.String name,
float value)
Set the value of the specified attribute to the specified float.
|
void |
setAttribute(java.lang.String name,
int value)
Set the value of the specified attribute to the specified int.
|
void |
setAttribute(java.lang.String name,
long value)
Set the value of the specified attribute to the specified long.
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
Set the value of the specified attribute to the specified string.
|
void |
setValue(boolean value)
Set the value of this
Configuration object to the specified boolean. |
void |
setValue(float value)
Set the value of this
Configuration object to the specified float. |
void |
setValue(int value)
Set the value of this
Configuration object to the specified int. |
void |
setValue(long value)
Set the value of this
Configuration object to the specified long. |
void |
setValue(java.lang.String value)
Set the value of this
Configuration object to the specified string. |
getAttribute, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsFloat, getAttributeAsFloat, getAttributeAsInteger, getAttributeAsInteger, getAttributeAsLong, getAttributeAsLong, getAttributeNames, getChild, getChild, getChildren, getChildren, getLocation, getName, getNamespace, getValue, getValue, getValueAsBoolean, getValueAsBoolean, getValueAsFloat, getValueAsFloat, getValueAsInteger, getValueAsInteger, getValueAsLong, getValueAsLongvoid setValue(java.lang.String value)
Configuration object to the specified string.value - a String valuevoid setValue(int value)
Configuration object to the specified int.value - a int valuevoid setValue(long value)
Configuration object to the specified long.value - a long valuevoid setValue(boolean value)
Configuration object to the specified boolean.value - a boolean valuevoid setValue(float value)
Configuration object to the specified float.value - a float valuevoid setAttribute(java.lang.String name,
java.lang.String value)
name - name of the attribute to setvalue - a String value. If null, the attribute is removed.void setAttribute(java.lang.String name,
int value)
name - name of the attribute to setvalue - an int valuevoid setAttribute(java.lang.String name,
long value)
name - name of the attribute to setvalue - an long valuevoid setAttribute(java.lang.String name,
boolean value)
name - name of the attribute to setvalue - an boolean valuevoid setAttribute(java.lang.String name,
float value)
name - name of the attribute to setvalue - an float valuevoid addChild(Configuration configuration)
Configuration to this configuration element.configuration - a Configuration valuevoid addAll(Configuration other)
other - the Configuration elementvoid addAllAttributes(Configuration other)
other - the Configuration elementvoid addAllChildren(Configuration other)
Configuration objects from specified
configuration element to current configuration element.other - the other Configuration valuevoid removeChild(Configuration configuration)
Configuration to this configuration element.configuration - a Configuration valueMutableConfiguration getMutableChild(java.lang.String name) throws ConfigurationException
getMutableChild( name, true )ConfigurationExceptionMutableConfiguration getMutableChild(java.lang.String name, boolean autoCreate) throws ConfigurationException
autoCreate
is true, a new mutable child is created and added to
this configuration before being returned.name - the name of the child.autoCreate - set to true to create the child node if it doesn't exist.null if autoCreate
was false and no child by the given name existed.ConfigurationException - if an error occurrs.MutableConfiguration[] getMutableChildren() throws ConfigurationException
getMutableChild.ConfigurationException - if an error occurrs.MutableConfiguration[] getMutableChildren(java.lang.String name) throws ConfigurationException
getMutableChild.ConfigurationException - if an error occurrs.