public abstract class AbstractCondition extends Object implements Condition
The abstract stuff of a condition instance.
| Constructor and Description |
|---|
AbstractCondition(String variable,
String value) |
| Modifier and Type | Method and Description |
|---|---|
static Condition |
createCondition(Operator oper,
String variable,
String value) |
List<String> |
extractValues(AuditEvent evt) |
abstract String |
getOperator()
This returns a textual representation of the operator of this condition.
|
String |
getPureValue() |
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 |
isNegated() |
static boolean |
isNumeric(String s) |
boolean |
matches(AuditEvent evt)
Deprecated.
|
boolean |
matches(List<String> values) |
boolean |
matches(String val) |
void |
setValue(String value) |
void |
setVariable(String variable)
Sets the variable on which this condition needs to match.
|
String |
toString() |
public AbstractCondition(String variable, String value) throws SyntaxException
SyntaxExceptionpublic List<String> extractValues(AuditEvent evt)
org.jwall.web.audit.rules.Condition#extractValues(org.jwall.web.audit.AuditEvent)public final boolean matches(AuditEvent evt)
Conditionpublic final boolean matches(String val)
public String getVariable()
ConditiongetVariable in interface Conditionpublic void setVariable(String variable)
ConditionsetVariable in interface Conditionvariable - the variable to setpublic String getValue()
Conditionpublic void setValue(String value)
value - the value to setpublic final String getPureValue()
public final boolean isNegated()
public static boolean isNumeric(String s)
public abstract String getOperator()
ConditiongetOperator in interface Conditionpublic static Condition createCondition(Operator oper, String variable, String value) throws SyntaxException
SyntaxExceptionCopyright © 2014 jwall.org. All Rights Reserved.