| |
|
| java.lang.Object org.codehaus.dna.impl.ConfigurationUtil
ConfigurationUtil | public class ConfigurationUtil (Code) | | Class containing utility methods to work with Configuration
objects.
version: $Revision: 1.2 $ $Date: 2004/05/01 09:51:48 $ |
Field Summary | |
final public static String | PATH_SEPARATOR Constant defining separator for paths in document. | final public static String | ROOT_PATH Constant defining root path of document. |
PATH_SEPARATOR | final public static String PATH_SEPARATOR(Code) | | Constant defining separator for paths in document.
|
ROOT_PATH | final public static String ROOT_PATH(Code) | | Constant defining root path of document.
|
buildFromXML | public static Configuration buildFromXML(InputSource input) throws Exception(Code) | | Create a configuration object from specified XML InputSource.
Parameters: input - the InputSource the configuration object throws: Exception - if unable to create configuration objectfrom input |
equals | public static boolean equals(Configuration configuration1, Configuration configuration2)(Code) | | Test if two configuration objects are equal. To be equal
the configuration objects must have equal child configuration
objects in identical orders or identical content values and
must have the same attributes with the same values.
Parameters: configuration1 - a configuration object Parameters: configuration2 - a configuration object true if the configuration objects are equal |
generatePathName | static String generatePathName(String path, String name)(Code) | | Add in utity method to generate path string from parent.
Parameters: path - parents path Parameters: name - parents name the path string |
toConfiguration | public static Configuration toConfiguration(Element element)(Code) | | Convert specified Element into a configuration object.
Parameters: element - the Element the Configuration object |
toElement | public static Element toElement(Configuration configuration)(Code) | | Convert specified Configuration object into a Element.
Parameters: configuration - the Configuration the Element object |
|
|
|