| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | Returns: true if the attributes of both configurations are equal.configuration1 c1, final Configuration configuration2 c2)Return true if the attributes of both configurations are equal. |
| private static boolean | Returns: true if the children of both configurations are equal.configuration1 c1, final Configuration configuration2 c2)Return true if the children of both configurations are equal. |
| private static boolean | Returns: true if the values of two configurations are equal.configuration1 c1, final Configuration configuration2 c2)Return true if the values of two configurations are equal. |
| private static Element | Returns: the DOM Elementthe DOM document document, final Configuration the configuration to convert configuration)Create an DOM |
| public static boolean | Returns: true if the configurations can be considered equalsConfiguration to test c1, final Configuration Configuration to test c2)Test to see if two Configuration's can be considered the same. |
| private static boolean | Returns: true if the found.the configuration c, final ArrayList<E> the list of items to match against matchAgainst)Return true if find a matching child and remove child from list. |
| public static Configuration | Returns: the configuration objectthe DOM Element element)Convert a DOM Element tree into a configuration tree. |
| public static Element | Returns: the DOM Elementthe configuration object configuration)Convert a configuration tree into a DOM Element tree. |
| public static String | Returns: a non-null String representing theConfiguration,
or an error message.Configuration instance to serialize configuration)Serialize the configuration object to a String. |
| ConfigurationUtil | back to summary |
|---|---|
| private ConfigurationUtil() Private constructor to block instantiation. | |
| areAttributesEqual | back to summary |
|---|---|
| private static boolean areAttributesEqual(final Configuration c1, final Configuration c2) Return true if the attributes of both configurations are equal.
| |
| areChildrenEqual | back to summary |
|---|---|
| private static boolean areChildrenEqual(final Configuration c1, final Configuration c2) Return true if the children of both configurations are equal.
| |
| areValuesEqual | back to summary |
|---|---|
| private static boolean areValuesEqual(final Configuration c1, final Configuration c2) Return true if the values of two configurations are equal.
| |
| createElement | back to summary |
|---|---|
| private static Element createElement(final Document document, final Configuration configuration) Create an DOM
| |
| equals | back to summary |
|---|---|
| public static boolean equals(final Configuration c1, final 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.
| |
| findMatchingChild | back to summary |
|---|---|
| private static boolean findMatchingChild(final Configuration c, final ArrayList<E> matchAgainst) Return true if find a matching child and remove child from list.
| |
| toConfiguration | back to summary |
|---|---|
| public static Configuration toConfiguration(final Element element) Convert a DOM Element tree into a configuration tree.
| |
| toElement | back to summary |
|---|---|
| public static Element toElement(final Configuration configuration) Convert a configuration tree into a DOM Element tree.
| |
| toString | back to summary |
|---|---|
| public static String toString(final Configuration configuration) Serialize the configuration object to a String. If an exception
occurs, the exception message will be returned instead. This method is
intended to aid debugging;
| |