public final class NodeTypeHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
NodeTypeHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
getNodeTypeName(Node node)
Get the real nodetype name of a given node (even if it's a frozen node).
|
static boolean |
isNodeType(Node node,
String nodeTypeName)
Test the real nodetype name of a given node (even if it's a frozen node).
|
private NodeTypeHelper()
public static String getNodeTypeName(Node node) throws RepositoryException
node
- the node.RepositoryException
- if an error occurs.public static boolean isNodeType(Node node, String nodeTypeName) throws RepositoryException
node
- the node to test.nodeTypeName
- the node type to test.RepositoryException
- if an error occurs.