Class NodeTypeHelper

    • Method Detail

      • isNodeType

        public static boolean isNodeType​(Node node,
                                         String nodeTypeName)
                                  throws RepositoryException
        Test the real nodetype name of a given node (even if it's a frozen node).
        Parameters:
        node - the node to test.
        nodeTypeName - the node type to test.
        Returns:
        true if the node is of the given nodetype, false otherwise.
        Throws:
        RepositoryException - if an error occurs.