public class ILike extends BaseCriteria
java.lang.String attributes
,
the toString()
form is used in the comparison. Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attributeName |
private java.util.regex.Pattern |
pattern |
private java.lang.String |
regex |
Constructor and Description |
---|
ILike(java.lang.String attributeName,
java.lang.String regex)
Construct a "like" criteria for the given expression
|
Modifier and Type | Method and Description |
---|---|
private static java.util.regex.Pattern |
convertRegex(java.lang.String expr) |
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.
|
private static java.lang.String |
lowerCase(char ch) |
and, getExtractor, not, or
private final java.lang.String attributeName
private final java.lang.String regex
private final java.util.regex.Pattern pattern
public ILike(java.lang.String attributeName, java.lang.String regex)
attributeName
- attribute nameregex
- expressionpublic java.lang.String getAttributeName()
public java.lang.String getRegex()
private static java.util.regex.Pattern convertRegex(java.lang.String expr)
private static java.lang.String lowerCase(char ch)
public boolean execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)
e
- cache elementattributeExtractors
- map of attribute extractors to attribute value names