|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.search.expression.BaseCriteria
net.sf.ehcache.search.expression.ILike
public class ILike
A regular expression criteria that matches attribute string values. For non java.lang.String attributes
,
the toString()
form is used in the comparison.
Expressions are always case insensitive
The following special characters are supported:
Constructor Summary | |
---|---|
ILike(java.lang.String attributeName,
java.lang.String regex)
Construct a "like" criteria for the given expression |
Method Summary | |
---|---|
boolean |
execute(Element e,
java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)
Test this criteria against a cache element |
java.lang.String |
getAttributeName()
Return attribute name. |
java.lang.String |
getRegex()
Return regex string. |
Methods inherited from class net.sf.ehcache.search.expression.BaseCriteria |
---|
and, not, or |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ILike(java.lang.String attributeName, java.lang.String regex)
attributeName
- attribute nameregex
- expressionMethod Detail |
---|
public java.lang.String getAttributeName()
public java.lang.String getRegex()
public boolean execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)
e
- cache elementattributeExtractors
- map of attribute extractors to attribute value names
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |