org.apache.ws.notification.topics.expression
Interface TopicExpressionEvaluator


public interface TopicExpressionEvaluator

A TopicExpressionEvaluator is used to implement a topic expression evaluation against a TopicSpaceSet. An evaluator can be registered with a TopicExpressionEngine, which in turn calls the evaluator when a matching expression is found.


Method Summary
 Topic[] evaluate(TopicSpaceSet topicSpaceSet, TopicExpression expression)
          Evaluates the expression over a TopicSpace and returns the set of matching topics.
 java.lang.String[] getDialects()
          Gets the URIs for the dialects that this evaluator can handle
 

Method Detail

getDialects

public java.lang.String[] getDialects()
Gets the URIs for the dialects that this evaluator can handle

Returns:
array of URIs supported by this evaluator

evaluate

public Topic[] evaluate(TopicSpaceSet topicSpaceSet,
                        TopicExpression expression)
                 throws TopicPathDialectUnknownException,
                        TopicExpressionResolutionException,
                        InvalidTopicExpressionException,
                        TopicExpressionException
Evaluates the expression over a TopicSpace and returns the set of matching topics.

Parameters:
topicSpaceSet - topic list associated with the service/resource
expression - object passed by client representing the topic expression
Returns:
the set of topics that matched the specified expression
Throws:
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 occurs


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.