org.apache.avalon.framework.configuration
public interface MutableConfiguration extends Configuration
Since: 4.1.6
Version: $Id: MutableConfiguration.java 156533 2005-03-08 08:51:40 -0600 (Tue, 08 Mar 2005) leif $
Method Summary | |
---|---|
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(String name)
Equivalent to getMutableChild( name, true ) |
MutableConfiguration | getMutableChild(String name, boolean autoCreate)
Gets a child node of this configuration. |
MutableConfiguration[] | getMutableChildren()
Returns an array of mutable children. |
MutableConfiguration[] | getMutableChildren(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(String name, String value)
Set the value of the specified attribute to the specified string.
|
void | setAttribute(String name, int value)
Set the value of the specified attribute to the specified int.
|
void | setAttribute(String name, long value)
Set the value of the specified attribute to the specified long.
|
void | setAttribute(String name, boolean value)
Set the value of the specified attribute to the specified boolean.
|
void | setAttribute(String name, float value)
Set the value of the specified attribute to the specified float.
|
void | setAttribute(String name, double value)
Set the value of the specified attribute to the specified double.
|
void | setValue(String value)
Set the value of this Configuration object to the specified string.
|
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(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(double value)
Set the value of this Configuration object to the specified double.
|
Parameters: other the Configuration element
Parameters: other the Configuration element
Configuration
objects from specified
configuration element to current configuration element.
Parameters: other the other Configuration value
Configuration
to this configuration element.Parameters: configuration a Configuration
value
getMutableChild( name, true )
autoCreate
is true
, a new mutable child is created and added to
this configuration before being returned.
Parameters: name the name of the child. autoCreate set to true to create the child node if it doesn't exist.
Returns: the child MutableConfiguration, or null
if autoCreate
was false and no child by the given name existed.
Throws: ConfigurationException if an error occurrs.
getMutableChild
.Throws: ConfigurationException if an error occurrs.
getMutableChild
.Throws: ConfigurationException if an error occurrs.
Configuration
to this configuration element.Parameters: configuration a Configuration
value
Parameters: name name of the attribute to set value a String
value. If null, the attribute is removed.
Parameters: name name of the attribute to set value an int
value
Parameters: name name of the attribute to set value an long
value
Parameters: name name of the attribute to set value an boolean
value
Parameters: name name of the attribute to set value an float
value
Parameters: name name of the attribute to set value an double
value
Configuration
object to the specified string.
Parameters: value a String
value
Configuration
object to the specified int.
Parameters: value a int
value
Configuration
object to the specified long.
Parameters: value a long
value
Configuration
object to the specified boolean.
Parameters: value a boolean
value
Configuration
object to the specified float.
Parameters: value a float
value
Configuration
object to the specified double.
Parameters: value a double
value