|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A TopicExpressionEvaluator is used to implement a topic
expression evaluation against a TopicList. An evaluator can be
registered with a TopicExpressionEngine, which in turn calls the
evaluator when a matching expression is found.
TopicList,
TopicExpressionEngine| Method Summary | |
java.util.List |
getConcreteTopicPath(TopicExpressionType expression)
Converts the expression from dialect specific form to a ordered list of QNames. |
java.lang.String[] |
getDialects()
Gets the URIs for the dialects that this evaluator can handle |
java.util.Collection |
resolve(TopicExpressionType expression,
TopicList topicList)
Evaluates the expression over a TopicList and returns the result. |
TopicExpressionType |
toTopicExpression(java.util.List topicPath)
Converts a topic path (list of QNames) to a dialect specific concrete topic expression. |
| Method Detail |
public java.util.Collection resolve(TopicExpressionType expression,
TopicList topicList)
throws UnsupportedTopicExpressionDialectException,
TopicExpressionResolutionException,
InvalidTopicExpressionException,
TopicExpressionException
expression - object passed by client representing the topic
expressiontopicList - topic list associated with the service/resource
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 java.lang.String[] getDialects()
public java.util.List getConcreteTopicPath(TopicExpressionType expression)
throws UnsupportedTopicExpressionDialectException,
InvalidTopicExpressionException,
TopicExpressionException
expression - object passed by client representing the topic
expression
UnsupportedTopicExpressionDialectException - if the topic expression dialect is not
supported
InvalidTopicExpressionException - if the topic expression is invalid
TopicExpressionException - if any other error occurs
public TopicExpressionType toTopicExpression(java.util.List topicPath)
throws InvalidTopicExpressionException,
TopicExpressionException
topicPath - containing a list of QNames describing a concrete topic
path
InvalidTopicExpressionException - if the conrete topic path is invalid
TopicExpressionException - if any other error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||