org.qi4j.api.query.grammar
Class MatchesSpecification

java.lang.Object
  extended by org.qi4j.api.query.grammar.ExpressionSpecification
      extended by org.qi4j.api.query.grammar.MatchesSpecification
All Implemented Interfaces:
Specification<Composite>

public class MatchesSpecification
extends ExpressionSpecification

Regular expression match Specification.


Constructor Summary
MatchesSpecification(PropertyFunction<java.lang.String> property, java.lang.String regexp)
           
MatchesSpecification(PropertyFunction<java.lang.String> property, Variable variable)
           
 
Method Summary
 PropertyFunction<java.lang.String> property()
           
 java.lang.String regexp()
           
 boolean satisfiedBy(Composite item)
          Test whether an item matches the given specification
 java.lang.String toString()
           
 java.lang.Object value()
           
 
Methods inherited from class org.qi4j.api.query.grammar.ExpressionSpecification
and, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatchesSpecification

public MatchesSpecification(PropertyFunction<java.lang.String> property,
                            java.lang.String regexp)

MatchesSpecification

public MatchesSpecification(PropertyFunction<java.lang.String> property,
                            Variable variable)
Method Detail

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