Package org.ocpsoft.rewrite.param
Class RegexConstraint
java.lang.Object
org.ocpsoft.rewrite.param.RegexConstraint
- All Implemented Interfaces:
Constraint<String>,ParameterConfigurator
Defines a
Constraint using a regular expression.- Author:
- Lincoln Baxter, III
-
Constructor Summary
ConstructorsConstructorDescriptionRegexConstraint(String pattern) Create a newRegexConstraintusing the given pattern. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisSatisfiedBy(Rewrite event, EvaluationContext context, String value) toString()
-
Constructor Details
-
RegexConstraint
Create a newRegexConstraintusing the given pattern.
-
-
Method Details
-
isSatisfiedBy
Description copied from interface:Constraint- Specified by:
isSatisfiedByin interfaceConstraint<String>
-
toString
-
getPattern
-
hashCode
public int hashCode() -
equals
-