protected class WSRPManagedBean.DefaultPropertyValidator extends Object implements WSRPManagedBean.PropertyValidator
| Modifier | Constructor and Description |
|---|---|
protected |
WSRPManagedBean.DefaultPropertyValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkForDuplicates()
Determines whether this PropertyValidator checks for duplicated values.
|
String |
checkForInvalidCharacters(String value)
Checks whether the specified value contains '.' or '/'.
|
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.
|
protected WSRPManagedBean.DefaultPropertyValidator()
public boolean checkForDuplicates()
WSRPManagedBean.PropertyValidatorcheckForDuplicates in interface WSRPManagedBean.PropertyValidatortrue if this PropertyValidator checks for duplicated values, false otherwisepublic String getTypeOfValidatedValues()
WSRPManagedBean.PropertyValidatorgetTypeOfValidatedValues in interface WSRPManagedBean.PropertyValidatorpublic boolean isAlreadyExisting(String value)
WSRPManagedBean.PropertyValidatorisAlreadyExisting in interface WSRPManagedBean.PropertyValidatorpublic String checkForInvalidCharacters(String value)
checkForInvalidCharacters in interface WSRPManagedBean.PropertyValidatorvalue - the value which format we want to checkpublic org.gatein.common.util.ParameterValidation.ValidationErrorHandler getValidationErrorHandler(String name, String targetForErrorMessage)
WSRPManagedBean.PropertyValidatorParameterValidation.ValidationErrorHandler associated with this PropertyValidator. Allows implementations to vary how error
messages are presented to client code, depending on the context they run in.getValidationErrorHandler in interface WSRPManagedBean.PropertyValidatorname - the name of the property being validatedtargetForErrorMessage - the UI component target for the potential error messagepublic Pattern getValidationPattern()
WSRPManagedBean.PropertyValidatorgetValidationPattern in interface WSRPManagedBean.PropertyValidatorpublic String getErrorKey()
WSRPManagedBean.PropertyValidatorgetErrorKey in interface WSRPManagedBean.PropertyValidatorCopyright © 2006-2014 GateIn. All Rights Reserved.