public class ValidateAnnotationConstraintGenerator extends Object implements ValidationConstraintGenerator
Validate
annotation, and extracts its value to form the result.Constructor and Description |
---|
ValidateAnnotationConstraintGenerator() |
Modifier and Type | Method and Description |
---|---|
List<String> |
buildConstraints(Class propertyType,
AnnotationProvider annotationProvider)
For a given property, identify all the approprite validation constraints.
|
public ValidateAnnotationConstraintGenerator()
public List<String> buildConstraints(Class propertyType, AnnotationProvider annotationProvider)
ValidationConstraintGenerator
validate specification
. These will ultimately be used to create FieldValidator
s for the field
that edits the property.buildConstraints
in interface ValidationConstraintGenerator
propertyType
- the type of the property for which constraints are neededannotationProvider
- provides access to any annotations concerning the property (for implementations that
are based on analysis of property annotations)FieldValidatorSource
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.