|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.configuration.ConfigurationUtil
This class has a bunch of utility methods to work with configuration objects.
Method Summary | |
---|---|
static boolean |
equals(Configuration c1,
Configuration c2)
Test to see if two Configuration's can be considered the same. |
static Configuration |
toConfiguration(Element element)
Convert a DOM Element tree into a configuration tree. |
static Element |
toElement(Configuration configuration)
Convert a configuration tree into a DOM Element tree. |
static String |
toString(Configuration configuration)
Serialize the configuration object to a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Configuration toConfiguration(Element element)
element
- the DOM Element
public static Element toElement(Configuration configuration)
configuration
- the configuration object
public static String toString(Configuration configuration)
DefaultConfigurationSerializer.serialize(Configuration)
lets the caller
handle exceptions.
configuration
- Configuration instance to serialize
Configuration
,
or an error message.public static boolean equals(Configuration c1, Configuration c2)
c1
- Configuration to testc2
- Configuration to test
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |