|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jwall.web.audit.rules.operators.AbstractCondition
public abstract class AbstractCondition
The abstract stuff of a condition instance.
| Field Summary |
|---|
| Fields inherited from interface org.jwall.web.audit.rules.Condition |
|---|
EQ, GE, GT, IN, LE, LT, PM, RX, SX |
| Constructor Summary | |
|---|---|
AbstractCondition(String variable,
String value)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jwall.web.audit.rules.Condition |
|---|
matches |
| Constructor Detail |
|---|
public AbstractCondition(String variable,
String value)
throws SyntaxException
SyntaxException| Method Detail |
|---|
public List<String> extractValues(AuditEvent evt)
org.jwall.web.audit.rules.Condition#extractValues(org.jwall.web.audit.AuditEvent)public final boolean matches(AuditEvent evt)
Condition
matches in interface Conditionpublic final boolean matches(List<String> values)
public final boolean matches(String val)
public String getVariable()
Condition
getVariable in interface Conditionpublic void setVariable(String variable)
Condition
setVariable in interface Conditionvariable - the variable to setpublic String getValue()
Condition
getValue in interface Conditionpublic void setValue(String value)
value - the value to setpublic String toString()
toString in class Objectpublic final String getPureValue()
public final boolean isNegated()
public static boolean isNumeric(String s)
public abstract String getOperator()
Condition
getOperator in interface Condition
public static Condition createCondition(Operator oper,
String variable,
String value)
throws SyntaxException
SyntaxException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||