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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean equals​(Configuration c1, Configuration c2)
      Test to see if two Configuration's can be considered the same.
      static org.w3c.dom.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 org.w3c.dom.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