Package net.sf.ehcache.search.expression
Class IsNull
- java.lang.Object
-
- net.sf.ehcache.search.expression.BaseCriteria
-
- net.sf.ehcache.search.expression.IsNull
-
- All Implemented Interfaces:
Criteria
public class IsNull extends BaseCriteria
Tests whether the value of attribute with given name is null- Author:
- vfunshte
-
-
Constructor Summary
Constructors Constructor Description IsNull(java.lang.String attributeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)Test this criteria against a cache elementjava.lang.StringgetAttributeName()Get attribute name.java.util.Set<Attribute<?>>getAttributes()Returns all search attributes referenced by this instance-
Methods inherited from class net.sf.ehcache.search.expression.BaseCriteria
and, getExtractor, not, or
-
-
-
-
Method Detail
-
getAttributeName
public java.lang.String getAttributeName()
Get attribute name.- Returns:
- attribute name.
-
execute
public boolean execute(Element e, java.util.Map<java.lang.String,AttributeExtractor> attributeExtractors)
Description copied from interface:CriteriaTest this criteria against a cache element- Parameters:
e- cache elementattributeExtractors- map of attribute extractors to attribute value names- Returns:
- true if the criteria matches this element
-
getAttributes
public java.util.Set<Attribute<?>> getAttributes()
Description copied from class:BaseCriteriaReturns all search attributes referenced by this instance- Specified by:
getAttributesin classBaseCriteria
-
-