|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TokenEvaluator
TokenEvaluator works behind a TokenPredicate doing the actual work to prove the predicate true or false. This work is the evaluating process. Each TokenValuator is constructed and obtained through a corresponding AbstractEvaluatorFactory. evaluateToken(TokenPredicate, String, String) is the primary method in the class, but evaluators may also indicate whether the position of words within the query influences evaluation by the isQueryDependant(TokenPredicate) method. And synonyms may also be provided, extending predicates from true|false to being a richer meta data source.
| Method Summary | |
|---|---|
boolean |
evaluateToken(TokenPredicate token,
String term,
String query)
Evaluate the token with regards to query. |
Set<String> |
getMatchValues(TokenPredicate token,
String term)
Each true evaluation may also provide a synonym (or "match value"). |
boolean |
isQueryDependant(TokenPredicate predicate)
|
| Method Detail |
|---|
boolean evaluateToken(TokenPredicate token,
String term,
String query)
token with regards to query.
This usually means to check if the token occurs in query, but there are
other possibilities such as tokens that always evaluates to true.
token - term - the token to look for.query -
boolean isQueryDependant(TokenPredicate predicate)
predicate -
Set<String> getMatchValues(TokenPredicate token,
String term)
token - term -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||