public class RowPredicate extends Object implements Predicate
Row
and
optionally whether it contains a given selector. Subclasses can extend
this class to provide more complex checking of the row or the selected
node.Constructor and Description |
---|
RowPredicate()
Creates a row predicate.
|
RowPredicate(String selectorName)
Creates a row predicate that checks the existence of the given
selector (if given).
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(javax.jcr.Node node)
Evaluates the given node.
|
boolean |
evaluate(Object object)
Checks whether the given object is a
Row and calls the
protected evaluate(Row) method to evaluate the row. |
protected boolean |
evaluate(javax.jcr.query.Row row)
Evaluates the given row.
|
public RowPredicate(String selectorName)
selectorName
- selector name, or null
public RowPredicate()
public boolean evaluate(Object object)
Row
and calls the
protected evaluate(Row)
method to evaluate the row.protected boolean evaluate(javax.jcr.query.Row row) throws javax.jcr.RepositoryException
evaluate(Node)
method.javax.jcr.RepositoryException
protected boolean evaluate(javax.jcr.Node node) throws javax.jcr.RepositoryException
true
.javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.