|
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. |
Set<Attribute<?>> |
getAttributes()
Returns all search attributes referenced by this instance |
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
public Set<Attribute<?>> getAttributes()
BaseCriteria
getAttributes
in class BaseCriteria
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |