|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.apptemplate.filtering.impl.FilterCondition
public abstract class FilterCondition
FilterCondition is a filter predicate. Returned value of
the predicate is used to evaluate whether message can be logged or not.
FilterCondition has two operands. Fore example,
one operand can be a message name or an attribute value,
second can be a constant value or a filter variable. See FilterOperand
.
Constructor Summary | |
---|---|
FilterCondition(java.lang.String key,
FilterOperand op1,
FilterOperand op2,
boolean negative)
Creates message filter condition. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
abstract boolean |
evaluate(Message message,
FilterContext context)
Evaluates condition for specified message and context. |
java.lang.String |
getKey()
Gets message filter condition key. |
FilterOperand |
getOp1()
First operand (argument) of the logical operator (condition) |
FilterOperand |
getOp2()
Second operand (argument) of the logical operator (condition) |
boolean |
isNegative()
The result of condition can be inverted. |
void |
register(FilterContext context)
Registers filter variables and so on. |
void |
unregister(FilterContext context)
Unregisters filter variables and so on. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilterCondition(java.lang.String key, FilterOperand op1, FilterOperand op2, boolean negative)
key
- message filter key.Method Detail |
---|
public java.lang.String getKey()
public boolean isNegative()
public FilterOperand getOp1()
public FilterOperand getOp2()
public abstract boolean evaluate(Message message, FilterContext context)
message
- message for filtering.context
- which contans filter variables.
public java.lang.Object clone()
clone
in class java.lang.Object
public void register(FilterContext context)
context
- filter context.public void unregister(FilterContext context)
context
- filter context.
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |