org.jwall.web.audit.rules.operators
Class BeginsWith
java.lang.Object
org.jwall.web.audit.rules.operators.AbstractCondition
org.jwall.web.audit.rules.operators.BeginsWith
- All Implemented Interfaces:
- Serializable, Condition
public class BeginsWith
- extends AbstractCondition
- implements Condition
Instances of this class check all values for the given variable if they
start with a pre-defined substring.
- Author:
- Christian Bockermann <chris@jwall.org>
- See Also:
- Serialized Form
| Methods inherited from class org.jwall.web.audit.rules.operators.AbstractCondition |
createCondition, extractValues, getPureValue, getValue, getVariable, isNegated, isNumeric, matches, matches, matches, setValue, setVariable, toString |
BeginsWith
public BeginsWith(String var,
String exp)
throws SyntaxException
- Throws:
SyntaxException
matches
public boolean matches(String pattern,
String value)
- Specified by:
matches in interface Condition
- Returns:
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:
Copyright © 2012 jwall.org. All Rights Reserved.