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, setWhiteSpace
addPattern, clearPatterns, getPatterns, hasPattern, isNillable, setNillable
public void validate(String value, ValidationContext context) throws ValidationException
validate
in class StringValidator
value
- the string to validatecontext
- the ValidationContextValidationException
- if the object fails validation.#setPattern
public void validate(Object object) throws ValidationException
validate
in class StringValidator
object
- the Object to validateValidationException
- if the object fails validation.public void validate(Object object, ValidationContext context) throws ValidationException
validate
in interface TypeValidator
validate
in class StringValidator
object
- the Object to validatecontext
- the ValidationContextValidationException
- if the object fails validation.Copyright © 2019. All rights reserved.