org.qi4j.api.query.grammar
Class MatchesSpecification
java.lang.Object
org.qi4j.api.query.grammar.ExpressionSpecification
org.qi4j.api.query.grammar.MatchesSpecification
- All Implemented Interfaces:
- Specification<Composite>
public class MatchesSpecification
- extends ExpressionSpecification
Regular expression match Specification.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MatchesSpecification
public MatchesSpecification(PropertyFunction<java.lang.String> property,
java.lang.String regexp)
MatchesSpecification
public MatchesSpecification(PropertyFunction<java.lang.String> property,
Variable variable)
property
public PropertyFunction<java.lang.String> property()
value
public java.lang.Object value()
regexp
public java.lang.String regexp()
satisfiedBy
public boolean satisfiedBy(Composite item)
- Description copied from interface:
Specification
- Test whether an item matches the given specification
- Parameters:
item
- the item to be tested
- Returns:
- true if the item matches, false otherwise
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object