Class ConstraintPhone
java.lang.Object
io.vertigo.easyforms.runner.pack.constraint.ConstraintPhone
public final class ConstraintPhone
extends Object
implements io.vertigo.datamodel.smarttype.definitions.Constraint<String,String>
Phone white lists.
- Author:
- skerdudou
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckConstraint(String value) io.vertigo.core.locale.LocaleMessageTextio.vertigo.datamodel.smarttype.definitions.PropertygetRegex()static ConstraintPhoneofEnum(ConstraintPhone.ConstraintPhoneEnum phonePatterns, Optional<String> overrideMessageOpt, Optional<String> overrideResourceMessageOpt) static ConstraintPhoneofEnums(List<ConstraintPhone.ConstraintPhoneEnum> phonePatterns, Optional<String> overrideMessageOpt, Optional<String> overrideResourceMessageOpt)
-
Constructor Details
-
Method Details
-
ofEnum
public static ConstraintPhone ofEnum(ConstraintPhone.ConstraintPhoneEnum phonePatterns, Optional<String> overrideMessageOpt, Optional<String> overrideResourceMessageOpt) -
ofEnums
public static ConstraintPhone ofEnums(List<ConstraintPhone.ConstraintPhoneEnum> phonePatterns, Optional<String> overrideMessageOpt, Optional<String> overrideResourceMessageOpt) -
checkConstraint
-
getErrorMessage
public io.vertigo.core.locale.LocaleMessageText getErrorMessage() -
getProperty
public io.vertigo.datamodel.smarttype.definitions.Property getProperty() -
getPropertyValue
-
getRegex
- Returns:
- Expression régulière testée par la contrainte
-