public class LikeConstraint extends ComparisonConstraint
LikeConstraint
implements a like constraint.Constructor and Description |
---|
LikeConstraint(DynamicOperand operand1,
javax.jcr.Value operand2,
SelectorImpl selector)
Creates a new like constraint.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
evaluate(javax.jcr.Value op1)
Evaluates this constraint for the given dynamic operand value
op1 . |
evaluate
getSelector, getSelectorIndex
public LikeConstraint(DynamicOperand operand1, javax.jcr.Value operand2, SelectorImpl selector) throws javax.jcr.RepositoryException
operand1
- the dynamic operand.operand2
- the static operand.selector
- the selector for the dynamic operand.javax.jcr.RepositoryException
- if an error occurs reading the string value
from the static operand.protected boolean evaluate(javax.jcr.Value op1) throws javax.jcr.RepositoryException
op1
.evaluate
in class ComparisonConstraint
op1
- the current value of the dynamic operand.true
if the given value satisfies the constraint.javax.jcr.RepositoryException
- if an error occurs while converting the
values.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.