public class IdValidator extends StringValidator implements TypeValidator
resourceBundle| Constructor and Description |
|---|
IdValidator()
Creates a new IdValidator with no restrictions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
validate(Object object)
Validates the given Object.
|
void |
validate(Object object,
ValidationContext context)
Validates the given Object.
|
void |
validate(String value,
ValidationContext context)
Validates the given Object.
|
clearFixed, normalize, setFixed, setFixedValue, setLength, setMaxLength, setMinLength, setRequired, setWhiteSpaceaddPattern, clearPatterns, getPatterns, hasPattern, isNillable, setNillablepublic void validate(String value, ValidationContext context) throws ValidationException
validate in class StringValidatorvalue - the string to validatecontext - the ValidationContextValidationException - if the object fails validation.#setPatternpublic void validate(Object object) throws ValidationException
validate in class StringValidatorobject - the Object to validateValidationException - if the object fails validation.public void validate(Object object, ValidationContext context) throws ValidationException
validate in interface TypeValidatorvalidate in class StringValidatorobject - the Object to validatecontext - the ValidationContextValidationException - if the object fails validation.Copyright © 2016. All rights reserved.