org.apache.avalon.framework.configuration
public class ConfigurationUtil extends Object
Since: 4.1.4
Version: $Id: ConfigurationUtil.java 30977 2004-07-30 03:57:54 -0500 (Fri, 30 Jul 2004) niclas $
Constructor Summary | |
---|---|
ConfigurationUtil()
Private constructor to block instantiation. |
Method Summary | |
---|---|
static boolean | areAttributesEqual(Configuration c1, Configuration c2)
Return true if the attributes of both configurations are equal.
|
static boolean | areChildrenEqual(Configuration c1, Configuration c2)
Return true if the children of both configurations are equal.
|
static boolean | areValuesEqual(Configuration c1, Configuration c2)
Return true if the values of two configurations are equal.
|
static Element | createElement(Document document, Configuration configuration)
Create an DOM Element from a Configuration
object.
|
static boolean | equals(Configuration c1, Configuration c2)
Test to see if two Configuration's can be considered the same. |
static boolean | findMatchingChild(Configuration c, ArrayList matchAgainst)
Return true if find a matching child and remove child from list.
|
static Configuration | toConfiguration(Element element)
Convert a DOM Element tree into a configuration tree.
|
static Element | toElement(Configuration configuration)
Convert a configuration tree into a DOM Element tree.
|
static String | toString(Configuration configuration)
Serialize the configuration object to a String. |
Parameters: c1 configuration1 c2 configuration2
Returns: true if the attributes of both configurations are equal.
Parameters: c1 configuration1 c2 configuration2
Returns: true if the children of both configurations are equal.
Parameters: c1 configuration1 c2 configuration2
Returns: true if the values of two configurations are equal.
Parameters: document the DOM document configuration the configuration to convert
Returns: the DOM Element
Parameters: c1 Configuration to test c2 Configuration to test
Returns: true if the configurations can be considered equals
Parameters: c the configuration matchAgainst the list of items to match against
Returns: true if the found.
Parameters: element the DOM Element
Returns: the configuration object
Parameters: configuration the configuration object
Returns: the DOM Element
Parameters: configuration Configuration instance to serialize
Returns: a non-null String representing the Configuration
,
or an error message.
Since: 12 March, 2003