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