public class XML extends Object
| Constructor and Description |
|---|
XML() |
| Modifier and Type | Method and Description |
|---|---|
protected static Node |
deserialize(Object node)
This method serializes the supplied XML object to a string.
|
protected static Node |
deserializeString(String doc)
This method deserializes the supplied document.
|
static String |
evaluate(String xpath,
Object node)
This method evaluates the xpath expression on the supplied
node.
|
protected static String |
getExpression(String expr)
This method transforms the XPath expression to replace XPath 2.0
namespace wildcards with use of the local-name() function.
|
protected static Node |
getNode(Object node)
This method converts the supplied object to a DOM
node.
|
static boolean |
predicate(String xpath,
Object node)
This method evaluates the predicate based on the xpath
expression on the supplied node.
|
protected static Node |
selectNode(String xpath,
Object node)
This method obtains the node, identified by the xpath
expression, from the supplied node.
|
static String |
serialize(Object node)
This method serializes the supplied XML object to a string.
|
protected static String |
serializeDOMSource(DOMSource domSource)
This method serializes the supplied DOM node to a string.
|
protected static String |
serializeNode(Node node)
This method serializes the supplied DOM node to a string.
|
public static String serialize(Object node)
node - The nodepublic static boolean predicate(String xpath, Object node)
xpath - The xpath expressionnode - The nodepublic static String evaluate(String xpath, Object node)
xpath - The xpath expressionnode - The nodeprotected static String getExpression(String expr)
expr - protected static String serializeNode(Node node)
node - The nodeprotected static String serializeDOMSource(DOMSource domSource)
domSource - The DOM sourceprotected static Node deserialize(Object node)
node - The nodeprotected static Node deserializeString(String doc)
doc - The XML documentprotected static Node selectNode(String xpath, Object node)
xpath - The xpath expressionnode - The root nodeCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.