Package net.sf.ehcache.search.expression
Class BaseCriteria
- java.lang.Object
-
- net.sf.ehcache.search.expression.BaseCriteria
-
- All Implemented Interfaces:
Criteria
- Direct Known Subclasses:
AlwaysMatch,And,ComparableValue,EqualTo,ILike,InCollection,IsNull,Not,NotILike,NotNull,Or
public abstract class BaseCriteria extends java.lang.Object implements Criteria
Base class for all criteria types- Author:
- teck
-
-
Constructor Summary
Constructors Constructor Description BaseCriteria()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Criteriaand(Criteria other)Produce a criteria that is the boolean "and" of this and the given other criteriaabstract java.util.Set<Attribute<?>>getAttributes()Returns all search attributes referenced by this instancestatic AttributeExtractorgetExtractor(java.lang.String attrName, java.util.Map<java.lang.String,AttributeExtractor> knownExtractors)For given attribute name, return its corresponding extractors from supplied map.Criterianot()Produce a criteria that is the boolean "not" of thisCriteriaor(Criteria other)Produce a criteria that is the boolean "or" of this and the given other criteria
-
-
-
Method Detail
-
and
public Criteria and(Criteria other)
Produce a criteria that is the boolean "and" of this and the given other criteria
-
not
public Criteria not()
Produce a criteria that is the boolean "not" of this
-
or
public Criteria or(Criteria other)
Produce a criteria that is the boolean "or" of this and the given other criteria
-
getExtractor
public static AttributeExtractor getExtractor(java.lang.String attrName, java.util.Map<java.lang.String,AttributeExtractor> knownExtractors)
For given attribute name, return its corresponding extractors from supplied map.- Parameters:
attrName-knownExtractors-- Returns:
-
getAttributes
public abstract java.util.Set<Attribute<?>> getAttributes()
Returns all search attributes referenced by this instance
-
-