org.apache.avalon.framework.configuration

Class ConfigurationUtil


public class ConfigurationUtil
extends java.lang.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 boolean
equals(Configuration c1, Configuration c2)
Test to see if two Configuration's can be considered the same.
static Element
toElement(Configuration configuration)
Convert a configuration tree into a DOM Element tree.

Method Details

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


"Copyright B) 2001 Apache Jakarta Project. All Rights Reserved."