Class AbstractNodePredicate

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(java.lang.Object o)
      Use the specified parameter to perform a test that returns true or false.
      abstract boolean evaluate​(Node node)
      Evaluates this predicate on the given node.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractNodePredicate

        public AbstractNodePredicate()
    • Method Detail

      • evaluate

        public boolean evaluate​(java.lang.Object o)
        Use the specified parameter to perform a test that returns true or false.
        Specified by:
        evaluate in interface Predicate
        Parameters:
        o - the object to evaluate, should not be changed
        Returns:
        true if o is a JCR Node or a Resource that can be adapted to a JCR Node and the subsequent call to evaluate(Node) returns true; false otherwise.
      • evaluate

        public abstract boolean evaluate​(Node node)
                                  throws RepositoryException
        Evaluates this predicate on the given node.
        Parameters:
        node - the node
        Returns:
        true if this node satisfies this predicate
        Throws:
        RepositoryException - if an error during evaluation occurs