org.apache.avalon.framework.configuration
Class ConfigurationUtil

java.lang.Object
  |
  +--org.apache.avalon.framework.configuration.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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

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


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.