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(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(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(Row row) throws RepositoryException
evaluate(Node)
method.RepositoryException
protected boolean evaluate(Node node) throws RepositoryException
true
.RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.