|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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(String attributeName,
String regex)
Construct a "like" criteria for the given expression |
Method Summary | |
---|---|
boolean |
execute(Element e,
Map<String,AttributeExtractor> attributeExtractors)
Test this criteria against a cache element |
String |
getAttributeName()
Return attribute name. |
String |
getRegex()
Return regex string. |
Methods inherited from class net.sf.ehcache.search.expression.BaseCriteria |
---|
and, getExtractor, not, or |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ILike(String attributeName, String regex)
attributeName
- attribute nameregex
- expressionMethod Detail |
---|
public String getAttributeName()
public String getRegex()
public boolean execute(Element e, Map<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 |