|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.sesat.search.query.token.AbstractEvaluatorFactory
public abstract class AbstractEvaluatorFactory
EvaluatorFactory responsible to finding appropriate factory subclass to use given the context. Any implementing EvaluatorFactory provides two main methods isResponsibleFor(token) getEvaluator(token) which are used by primarily by the TokenEvaluationEngine to find applicable evaluators and to use them. SKER3540
| Nested Class Summary | |
|---|---|
static interface |
AbstractEvaluatorFactory.Context
The context the RegExpEvaluatorFactory must work against. |
| Constructor Summary | |
|---|---|
protected |
AbstractEvaluatorFactory(AbstractEvaluatorFactory.Context context)
All factory implementations must super to this in their constructor. |
| Method Summary | |
|---|---|
protected AbstractEvaluatorFactory.Context |
getContext()
Obtain the context we're working within. |
abstract TokenEvaluator |
getEvaluator(TokenPredicate token)
If the evaluator is not found in this site it will fallback and look in the parent site. |
static AbstractEvaluatorFactory |
instanceOf(AbstractEvaluatorFactory.Context cxt)
find the appropriate factory subclass to use given the context. |
boolean |
isResponsibleFor(TokenPredicate token)
Is the factory responsibe for evaluation of this TokenPredicate. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractEvaluatorFactory(AbstractEvaluatorFactory.Context context)
throws SiteKeyedFactoryInstantiationException
context - the supplied context to work within.
SiteKeyedFactoryInstantiationException - if factory construction fails.| Method Detail |
|---|
public static final AbstractEvaluatorFactory instanceOf(AbstractEvaluatorFactory.Context cxt)
cxt - supplied context.
public boolean isResponsibleFor(TokenPredicate token)
token - the TokenPredicate we're checking
public abstract TokenEvaluator getEvaluator(TokenPredicate token)
throws EvaluationException
token - the predicate the evaluator is to be used for
EvaluationExceptionprotected final AbstractEvaluatorFactory.Context getContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||