Top Description Fields Constructors Methods
net.sf.ehcache.search.expression

public Class Not

extends BaseCriteria
Class Inheritance
Imports
java.util.Map, .Set, net.sf.ehcache.Element, net.sf.ehcache.search.Attribute, net.sf.ehcache.search.attribute.AttributeExtractor

A search criteria composed of the logical "not" (ie. negation) of another criteria
Author
teck

Field Summary

Modifier and TypeField and Description
private final Criteria
c

Constructor Summary

AccessConstructor and Description
public
Not(Criteria
the criteria to "not"
c
)

Construct a "not" criteria of the given criteria

Method Summary

Modifier and TypeMethod and Description
public boolean
execute(Element
cache element
e
,
Map<String, AttributeExtractor>
map of attribute extractors to attribute value names
attributeExtractors
)

Implements net.sf.ehcache.search.expression.Criteria.execute.

Test this criteria against a cache element
public Set<Attribute<?>>
getAttributes()

Implements abstract net.sf.ehcache.search.expression.BaseCriteria.getAttributes.

Returns all search attributes referenced by this instance
public Criteria

Returns:

criteria
getCriteria
()

Inherited from net.sf.ehcache.search.expression.BaseCriteria:
andgetExtractornotor

Field Detail

cback to summary
private final Criteria c

Constructor Detail

Notback to summary
public Not(Criteria c)

Construct a "not" criteria of the given criteria

Parameters
c:Criteria

the criteria to "not"

Method Detail

executeback to summary
public boolean execute(Element e, Map<String, AttributeExtractor> attributeExtractors)

Implements net.sf.ehcache.search.expression.Criteria.execute.

Doc from net.sf.ehcache.search.expression.Criteria.execute.

Test this criteria against a cache element

Parameters
e:Element

cache element

attributeExtractors:Map<String, AttributeExtractor>

map of attribute extractors to attribute value names

Returns:boolean

true if the criteria matches this element

getAttributesback to summary
public Set<Attribute<?>> getAttributes()

Implements abstract net.sf.ehcache.search.expression.BaseCriteria.getAttributes.

Doc from net.sf.ehcache.search.expression.BaseCriteria.getAttributes.

Returns all search attributes referenced by this instance

getCriteriaback to summary
public Criteria getCriteria()
Returns:Criteria

criteria