|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.internal.beaneditor.PrimitiveFieldConstraintGenerator
public class PrimitiveFieldConstraintGenerator
Adds a "required" constraint for any property of whose type is a primitive (not a wrapper or reference) type.
Constructor Summary | |
---|---|
PrimitiveFieldConstraintGenerator()
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
buildConstraints(java.lang.Class propertyType,
AnnotationProvider annotationProvider)
For a given property, identify all the approprite validation constraints. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrimitiveFieldConstraintGenerator()
Method Detail |
---|
public java.util.List<java.lang.String> buildConstraints(java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |