public static interface WSRPManagedBean.PropertyValidator extends Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkForDuplicates()
Determines whether this PropertyValidator checks for duplicated values.
|
String |
checkForInvalidCharacters(String value)
Performs a quick check that the specified value doesn't contain any invalid characters to be able to fail fast before performing a full regex validation.
|
String |
getErrorKey()
Retrieves the key associated to the error message in the localization resource bundle.
|
String |
getTypeOfValidatedValues()
Retrieves the name of the type of objects this PropertyValidator can validate.
|
org.gatein.common.util.ParameterValidation.ValidationErrorHandler |
getValidationErrorHandler(String name,
String targetForErrorMessage)
Retrieves the
ParameterValidation.ValidationErrorHandler associated with this PropertyValidator. |
Pattern |
getValidationPattern()
Retrieves the regular expression this PropertyValidator uses to validate values.
|
boolean |
isAlreadyExisting(String value)
Determines whether the specified property value already exists.
|
boolean checkForDuplicates()
true if this PropertyValidator checks for duplicated values, false otherwiseString getTypeOfValidatedValues()
boolean isAlreadyExisting(String value)
value - String checkForInvalidCharacters(String value)
value - the value we want to checknull if it doesn't conform to the expected formatorg.gatein.common.util.ParameterValidation.ValidationErrorHandler getValidationErrorHandler(String name, String targetForErrorMessage)
ParameterValidation.ValidationErrorHandler associated with this PropertyValidator. Allows implementations to vary how error
messages are presented to client code, depending on the context they run in.name - the name of the property being validatedtargetForErrorMessage - the UI component target for the potential error messagePattern getValidationPattern()
String getErrorKey()
Copyright © 2006-2014 GateIn. All Rights Reserved.