org.compass.core.util.config
Class ConfigurationHelperUtil

java.lang.Object
  extended by org.compass.core.util.config.ConfigurationHelperUtil

public class ConfigurationHelperUtil
extends Object

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


Method Summary
static boolean equals(ConfigurationHelper c1, ConfigurationHelper c2)
          Test to see if two Configuration's can be considered the same.
static ConfigurationHelper toConfiguration(Element element)
          Convert a DOM Element tree into a configuration tree.
static Element toElement(ConfigurationHelper 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

toConfiguration

public static ConfigurationHelper toConfiguration(Element element)
Convert a DOM Element tree into a configuration tree.


toElement

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


equals

public static boolean equals(ConfigurationHelper c1,
                             ConfigurationHelper 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.



Copyright (c) 2004-2008 The Compass Project.