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

public Interface Criteria

Known Direct Implementers
net.sf.ehcache.search.expression.BaseCriteria
Imports
java.util.Map, net.sf.ehcache.Element, net.sf.ehcache.search.attribute.AttributeExtractor

Criteria interface defines a boolean function that computes a search match result
Author
teck

Method Summary

Modifier and TypeMethod and Description
public Criteria

Returns:

and criteria
and
(Criteria other)

Produce a criteria that is the boolean "and" of this and the given other criteria

public boolean

Returns:

true if the criteria matches this element
execute
(Element
cache element
element
,
Map<String, AttributeExtractor>
map of attribute extractors to attribute value names
attributeExtractors
)

Test this criteria against a cache element

public Criteria

Returns:

not criteria
not
()

Produce a criteria that is the boolean "not" of this

public Criteria

Returns:

or criteria
or
(Criteria other)

Produce a criteria that is the boolean "or" of this and the given other criteria

Method Detail

andback to summary
public Criteria and(Criteria other)

Produce a criteria that is the boolean "and" of this and the given other criteria

Returns:Criteria

and criteria

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

Test this criteria against a cache element

Parameters
element:Element

cache element

attributeExtractors:Map<String, AttributeExtractor>

map of attribute extractors to attribute value names

Returns:boolean

true if the criteria matches this element

notback to summary
public Criteria not()

Produce a criteria that is the boolean "not" of this

Returns:Criteria

not criteria

orback to summary
public Criteria or(Criteria other)

Produce a criteria that is the boolean "or" of this and the given other criteria

Returns:Criteria

or criteria