$beanValidation

( documentation for Telosys generator version 3.3.0 )


Object providing a set of utility functions for Java Bean Validation (JSR-303) annotations


Since : 2.0.7

Attributes and methods
.annotations(int leftMargin, AttributeInContext attribute) : String

Returns the 'Bean Validation' JSR-303 annotations for the given field (with a left margin)

Parameters :
   leftMargin : the left margin (number of blanks)
   attribute : the attribute to be annotated

Example :
   $beanValidation.annotations( 4, $attribute )

Since : 2.0.7

.annotationsForWrapperType(int leftMargin, AttributeInContext attribute) : String

Returns the 'Bean Validation' JSR-303 annotations for the given field (with a left margin)
The wrapper type is used (instead of the actual field type) to determined the annotations
e.g. considering the wrapper type, the '@NotNull' annotation is used
even if the actual field type is a primitive type

Parameters :
   leftMargin : the left margin (number of blanks)
   attribute : the attribute to be annotated

Example :
   $beanValidation.annotationsForWrapperType( 4, $attribute )

Since : 3.0.0