Class ExpressionValidator
java.lang.Object
org.exoplatform.webui.form.validator.AbstractValidator
org.exoplatform.webui.form.validator.ExpressionValidator
- All Implemented Interfaces:
Serializable,Validator
- Direct Known Subclasses:
NotHTMLTagValidator,URLValidator
Created by The eXo Platform SARL Author : Le Bien Thuy lebienthuy@gmail.com Oct 10, 2007
Validates whether this value matches one regular expression.
- See Also:
-
Field Summary
Fields inherited from class org.exoplatform.webui.form.validator.AbstractValidator
exceptionOnMissingMandatory, trimValue -
Constructor Summary
ConstructorsConstructorDescriptionExpressionValidator(String regex) ExpressionValidator(String regex, String key) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object[]getMessageArgs(String value, UIFormInput uiInput) protected Stringprotected booleanisValid(String value, UIFormInput uiInput) Methods inherited from class org.exoplatform.webui.form.validator.AbstractValidator
createMessageException, createMessageException, getLabelFor, trimmedValueOrNullIfBypassed, validate
-
Constructor Details
-
ExpressionValidator
public ExpressionValidator() -
ExpressionValidator
-
ExpressionValidator
-
-
Method Details
-
getMessageLocalizationKey
- Specified by:
getMessageLocalizationKeyin classAbstractValidator
-
isValid
- Specified by:
isValidin classAbstractValidator
-
getMessageArgs
- Overrides:
getMessageArgsin classAbstractValidator- Throws:
Exception
-