org.jwall.web.audit.rules.operators
Class ConditionIN

java.lang.Object
  extended by org.jwall.web.audit.rules.operators.AbstractCondition
      extended by org.jwall.web.audit.rules.operators.ConditionSX
          extended by org.jwall.web.audit.rules.operators.ConditionIN
All Implemented Interfaces:
Serializable, Condition

public class ConditionIN
extends ConditionSX

This class implements a condition called @in, which basically matches, if one of a set of SX operators matches.

Author:
Christian Bockermann <chris@jwall.org>
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jwall.web.audit.rules.Condition
EQ, GE, GT, IN, LE, LT, PM, RX, SX
 
Constructor Summary
ConditionIN(String var, String exp)
           
 
Method Summary
 String getOperator()
          This returns a textual representation of the operator of this condition.
 boolean matches(String pattern, String input)
           
 
Methods inherited from class org.jwall.web.audit.rules.operators.AbstractCondition
createCondition, extractValues, getPureValue, getValue, getVariable, isNegated, isNumeric, matches, matches, matches, setValue, setVariable, 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
getValue, getVariable, matches, setVariable
 

Constructor Detail

ConditionIN

public ConditionIN(String var,
                   String exp)
            throws SyntaxException
Throws:
SyntaxException
Method Detail

getOperator

public String getOperator()
Description copied from interface: Condition
This returns a textual representation of the operator of this condition.

Specified by:
getOperator in interface Condition
Overrides:
getOperator in class ConditionSX
Returns:
See Also:
ConditionSX.getOperator()

matches

public boolean matches(String pattern,
                       String input)
Specified by:
matches in interface Condition
Overrides:
matches in class ConditionSX
Returns:
See Also:
ConditionSX.matches(java.lang.String, java.lang.String)


Copyright © 2012 jwall.org. All Rights Reserved.