|
|||||||||||
| 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 | |
java.util.List |
getConcretePath(TopicExpressionType topicExpression)
Converts the expression from dialect specific form to a ordered list of QNames. |
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 |
java.util.Collection |
resolveTopicExpression(TopicExpressionType topicExpression,
TopicList topicList)
Resolves a topic expression using the passed topic list. |
| Method Detail |
public void registerEvaluator(TopicExpressionEvaluator evaluator)
evaluator - implementation of evaluator to be used for evaluating
topic expressions
public java.util.Collection resolveTopicExpression(TopicExpressionType topicExpression,
TopicList topicList)
throws UnsupportedTopicExpressionDialectException,
TopicExpressionResolutionException,
InvalidTopicExpressionException,
TopicExpressionException
topicExpression - topic expressiontopicList - the topic list to apply the expression to
UnsupportedTopicExpressionDialectException - 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 occurs
public java.util.List getConcretePath(TopicExpressionType topicExpression)
throws UnsupportedTopicExpressionDialectException,
TopicExpressionResolutionException,
InvalidTopicExpressionException,
TopicExpressionException
topicExpression - topic expression
UnsupportedTopicExpressionDialectException - 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 TopicExpressionEvaluator getEvaluator(java.lang.String dialect)
public java.lang.String[] getSupportedDialects()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||