public class NodeUtil extends Object
| Constructor and Description |
|---|
NodeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Node> |
findNodes(List<Node> nodes,
Class<T> cls,
List<T> results)
This method recursively scans a node hierarchy to locate instances of a particular
type.
|
static boolean |
isOriginalURI(Node node,
String uri)
This method determines whether the supplied URI matches the
original URI on the node.
|
static boolean |
isURIRewritten(Node node)
This method tests whether the URI has been rewritten.
|
static void |
rewriteURI(Node node,
String uri)
This method rewrites the URI associated with the supplied
node and stores the original in the node's details.
|
public static boolean isURIRewritten(Node node)
node - The nodepublic static void rewriteURI(Node node, String uri)
node - The nodeuri - The new URIpublic static boolean isOriginalURI(Node node, String uri)
node - The nodeuri - The URIpublic static <T extends Node> void findNodes(List<Node> nodes, Class<T> cls, List<T> results)
nodes - The nodes to scancls - The class of the node to be returnedresults - The list of nodes foundCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.