Package io.vertigo.basics.constraint
Class ConstraintRegex
- java.lang.Object
-
- io.vertigo.basics.constraint.ConstraintRegex
-
- All Implemented Interfaces:
Constraint<String,String>
public final class ConstraintRegex extends Object implements Constraint<String,String>
Exemple de contrainte utilisant une expression régulière.- Author:
- pchretien
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckConstraint(String value)io.vertigo.core.locale.MessageTextgetErrorMessage()PropertygetProperty()StringgetPropertyValue()StringgetRegex()
-
-
-
Method Detail
-
checkConstraint
public boolean checkConstraint(String value)
- Specified by:
checkConstraintin interfaceConstraint<String,String>
-
getErrorMessage
public io.vertigo.core.locale.MessageText getErrorMessage()
- Specified by:
getErrorMessagein interfaceConstraint<String,String>
-
getProperty
public Property getProperty()
- Specified by:
getPropertyin interfaceConstraint<String,String>
-
getPropertyValue
public String getPropertyValue()
- Specified by:
getPropertyValuein interfaceConstraint<String,String>
-
getRegex
public String getRegex()
- Returns:
- Expression régulière testée par la contrainte
-
-