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

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

public class EndsWith
extends AbstractCondition

This condition checks for equality.

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
EndsWith(String variable, String value)
           
 
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
 

Constructor Detail

EndsWith

public EndsWith(String variable,
                String value)
         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
Specified by:
getOperator in class AbstractCondition
Returns:
See Also:
AbstractCondition.getOperator()

matches

public boolean matches(String pattern,
                       String input)
Returns:
See Also:
Condition.matches(java.lang.String, java.lang.String)


Copyright © 2012 jwall.org. All Rights Reserved.