public class InCollection extends BaseCriteria
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
attributeName |
private boolean |
empty |
private AttributeType |
type |
private java.util.Collection<?> |
values |
Constructor and Description |
---|
InCollection(java.lang.String attributeName,
java.util.Collection<?> values)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
execute(Element e,
java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)
Test this criteria against a cache element
|
java.lang.String |
getAttributeName()
Return attributeName
|
java.util.Collection<?> |
values()
Return values.
|
private AttributeType |
verifyCommonType() |
and, getExtractor, not, or
private final java.lang.String attributeName
private final java.util.Collection<?> values
private final AttributeType type
private final boolean empty
public InCollection(java.lang.String attributeName, java.util.Collection<?> values)
attributeName
- attribute namevalues
- public java.lang.String getAttributeName()
public java.util.Collection<?> values()
private AttributeType verifyCommonType()
public boolean execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)
e
- cache elementattributeExtractors
- map of attribute extractors to attribute value names