Class ConfigurableIdentifierValidator
java.lang.Object
org.exoplatform.webui.form.validator.AbstractValidator
org.exoplatform.webui.form.validator.MultipleConditionsValidator
org.exoplatform.webui.form.validator.ConfigurableIdentifierValidator
- All Implemented Interfaces:
Serializable,Validator
public class ConfigurableIdentifierValidator
extends MultipleConditionsValidator
implements Serializable
Created by The eXo Platform SARL Author : Dang Van Minh minhdv81@yahoo.com Jun 7, 2006
Validates whether the value is composed of letters, digit , '_' or '-'h First character could not be digit or '-'
Validates whether the value is composed of letters, digit , '_' or '-'h First character could not be digit or '-'
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intprotected static intprotected static Stringprotected Integerprotected IntegerFields inherited from class org.exoplatform.webui.form.validator.AbstractValidator
exceptionOnMissingMandatory, trimValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvalidate(String value, String label, org.exoplatform.web.application.CompoundApplicationMessage messages, UIFormInput uiInput) Methods inherited from class org.exoplatform.webui.form.validator.MultipleConditionsValidator
getMessageLocalizationKey, isValid, validateMethods inherited from class org.exoplatform.webui.form.validator.AbstractValidator
createMessageException, createMessageException, getLabelFor, getMessageArgs, trimmedValueOrNullIfBypassed
-
Field Details
-
DEFAULT_MIN_LENGTH
protected static int DEFAULT_MIN_LENGTH -
DEFAULT_MAX_LENGTH
protected static int DEFAULT_MAX_LENGTH -
min
-
max
-
IDENTIFER_VALIDATOR_REGEX
-
-
Constructor Details
-
ConfigurableIdentifierValidator
public ConfigurableIdentifierValidator() -
ConfigurableIdentifierValidator
public ConfigurableIdentifierValidator(int min, int max)
-
-
Method Details
-
validate
protected void validate(String value, String label, org.exoplatform.web.application.CompoundApplicationMessage messages, UIFormInput uiInput) - Specified by:
validatein classMultipleConditionsValidator
-