public class PrimitiveFieldConstraintGenerator extends Object implements ValidationConstraintGenerator
Constructor and Description |
---|
PrimitiveFieldConstraintGenerator() |
Modifier and Type | Method and Description |
---|---|
List<String> |
buildConstraints(Class propertyType,
AnnotationProvider annotationProvider)
For a given property, identify all the approprite validation constraints.
|
public PrimitiveFieldConstraintGenerator()
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
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.