org.apache.avalon.framework.configuration

Class ConfigurationUtil

public class ConfigurationUtil extends Object

This class has a bunch of utility methods to work with configuration objects.

Version: CVS $Revision: 1.11 $ $Date: 2003/02/11 15:58:38 $

Author: Avalon Development Team

Method Summary
static booleanequals(Configuration c1, Configuration c2)
Test to see if two Configuration's can be considered the same.
static ElementtoElement(Configuration configuration)
Convert a configuration tree into a DOM Element tree.

Method Detail

equals

public static boolean equals(Configuration c1, Configuration c2)
Test to see if two Configuration's can be considered the same. Name, value, attributes and children are test. The order of children is not taken into consideration for equality.

Parameters: c1 Configuration to test c2 Configuration to test

Returns: true if the configurations can be considered equals

toElement

public static Element toElement(Configuration configuration)
Convert a configuration tree into a DOM Element tree.

Parameters: configuration the configuration object

Returns: the DOM Element