|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.activemq.filter.function.inListFunction
public class inListFunction
Filter function that matches a value against a list of values and evaluates to an indicator of membership in the list. For example:
INLIST( SPLIT('1,2,3', ',') , '2' )
Note that the first argument must be a List. Strings containing lists are not acceptable; for example, INLIST('1,2,3', '1'), will cause an exception to be thrown at evaluation-time.
| Constructor Summary | |
|---|---|
inListFunction()
|
|
| Method Summary | |
|---|---|
Object |
evaluate(FunctionCallExpression expr,
MessageEvaluationContext message_ctx)
Evalutate the given expression, which consists of a call to this function, in the context given. |
boolean |
isValid(FunctionCallExpression expr)
Check whether the given expression is a valid call of this function. |
boolean |
returnsBoolean(FunctionCallExpression expr)
Check whether the given expression, which consists of a call to this function, evaluates to a Boolean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public inListFunction()
| Method Detail |
|---|
public boolean isValid(FunctionCallExpression expr)
isValid in interface FilterFunctionexpr - - the expression consisting of a call to this function.
public boolean returnsBoolean(FunctionCallExpression expr)
returnsBoolean in interface FilterFunctionexpr - - the expression consisting of a call to this function.
public Object evaluate(FunctionCallExpression expr,
MessageEvaluationContext message_ctx)
throws javax.jms.JMSException
evaluate in interface FilterFunctionexpr - - the expression consisting of a call to this function.message_ctx - - the context in which the call is being evaluated.
javax.jms.JMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||