public interface Condition extends Serializable
This is the basic interface which needs to be implemented by all rule conditions.
| Modifier and Type | Field and Description |
|---|---|
static String |
EQ |
static String |
GE |
static String |
GT |
static String |
IN |
static String |
LE |
static String |
LT |
static String |
PM |
static String |
RX |
static String |
SX |
| Modifier and Type | Method and Description |
|---|---|
String |
getOperator()
This returns a textual representation of the operator of this condition.
|
String |
getValue()
This method returns the value used by this condition to match
the value of the variable against.
|
String |
getVariable()
Returns the variable on which this condition acts.
|
boolean |
matches(AuditEvent evt)
This method executes the condition against the given event.
|
boolean |
matches(String pattern,
String input) |
void |
setVariable(String variable)
Sets the variable on which this condition needs to match.
|
static final String EQ
static final String LT
static final String LE
static final String GT
static final String GE
static final String PM
static final String RX
static final String SX
static final String IN
String getVariable()
void setVariable(String variable)
variable - String getValue()
String getOperator()
boolean matches(AuditEvent evt)
evt - Copyright © 2015 jwall.org. All Rights Reserved.