|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The TopicExpressionEngine
interface is used to map queries on a
topic list to the appropriate TopicExpressionEvaluators
and then
return the result. TopicExpressionEvaluators
can be
preconfigured or dynamically added at runtime.
TopicExpressionEvaluator
Method Summary | |
Topic[] |
evaluateTopicExpression(TopicSpaceSet topicSpaceSet,
TopicExpression topicExpression)
Resolves a topic expression using the passed topic list. |
TopicExpressionEvaluator |
getEvaluator(java.lang.String dialect)
Gets the evaluator currently registered to handle a topic expression of the specified dialect. |
java.lang.String[] |
getSupportedDialects()
Returns a list of URIs representing the registered topic expression dialects |
void |
registerEvaluator(TopicExpressionEvaluator evaluator)
registers a new evaluator that can be used to evaluate topic expressions |
Method Detail |
public TopicExpressionEvaluator getEvaluator(java.lang.String dialect)
public java.lang.String[] getSupportedDialects()
public Topic[] evaluateTopicExpression(TopicSpaceSet topicSpaceSet, TopicExpression topicExpression) throws TopicPathDialectUnknownException, TopicExpressionResolutionException, InvalidTopicExpressionException, TopicExpressionException
topicSpaceSet
- the topic list to apply the expression totopicExpression
- topic expression
TopicPathDialectUnknownException
- if the topic expression dialect is not
supported
TopicExpressionResolutionException
- if the expression could not be
evaluated
InvalidTopicExpressionException
- if the topic expression is invalid
TopicExpressionException
- if any other error occurspublic void registerEvaluator(TopicExpressionEvaluator evaluator)
evaluator
- implementation of evaluator to be used for evaluating
topic expressions
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |