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 boolean
checkConstraint(String value)
io.vertigo.core.locale.MessageText
getErrorMessage()
Property
getProperty()
String
getPropertyValue()
String
getRegex()
-
-
-
Method Detail
-
checkConstraint
public boolean checkConstraint(String value)
- Specified by:
checkConstraint
in interfaceConstraint<String,String>
-
getErrorMessage
public io.vertigo.core.locale.MessageText getErrorMessage()
- Specified by:
getErrorMessage
in interfaceConstraint<String,String>
-
getProperty
public Property getProperty()
- Specified by:
getProperty
in interfaceConstraint<String,String>
-
getPropertyValue
public String getPropertyValue()
- Specified by:
getPropertyValue
in interfaceConstraint<String,String>
-
getRegex
public String getRegex()
- Returns:
- Expression régulière testée par la contrainte
-
-