ehcache

net.sf.ehcache.search.expression
Class IsNull

java.lang.Object
  extended by net.sf.ehcache.search.expression.BaseCriteria
      extended by 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
IsNull(String attributeName)
           
 
Method Summary
 boolean execute(Element e, Map<String,AttributeExtractor> attributeExtractors)
          Test this criteria against a cache element
 String getAttributeName()
          Get attribute name.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsNull

public IsNull(String attributeName)
Parameters:
attributeName -
Method Detail

getAttributeName

public String getAttributeName()
Get attribute name.

Returns:
attribute name.

execute

public boolean execute(Element e,
                       Map<String,AttributeExtractor> attributeExtractors)
Description copied from interface: Criteria
Test this criteria against a cache element

Parameters:
e - cache element
attributeExtractors - map of attribute extractors to attribute value names
Returns:
true if the criteria matches this element

getAttributes

public Set<Attribute<?>> getAttributes()
Description copied from class: BaseCriteria
Returns all search attributes referenced by this instance

Specified by:
getAttributes in class BaseCriteria

ehcache

Copyright 2001-2014, Terracotta, Inc.