This annotation can be used for size checks on java.util.Collection or
java.util.Map related classes (e.g a list, map, tree ..), can be specified on get methods
and fields.
Converts given value to given type, types supported are:
- java.lang.String
- java.lang.Byte
- java.lang.Short
- java.lang.Integer
- java.lang.Float
- java.lang.Double
- java.lang.Long
And for each listed one their primitive equivalent (byte, short, int etc.), except String.
Returns AnnotationStorage instance if the method must be validated either
by itself or in one of its parent classes (must have JvGroup),
in all other cases returns null (so skip this method).
This method is called only once, as soon as the extension is created (after its constructor
has been called) and provides you with the parameters you might have passed
to this extension.
Returns true if this message should be a global message (note that
this property is originally taken from annotation's globalMessage), there
it can be used to say that an error when validating for that annotation
must be shown as a global message instead of using the validation path.
Use this supportive annotation inside @Lookup to specify
you wish to use the JsfLookup to find a class to do validation with (or anything
else, depending on the situation where it is used exactly).
This annotation can be used as a lookup element in special validation
implementations (through the ValidateDefinition element)
Another use by annotations, for instance the LovConstraint annotation.
MODE_BEAN -
Static variable in annotation type org.javalid.annotations.core.JvParam
If valueRetrievalMode is set to this, it means a javabean must be used
(through property beanClass) as input parameter (either with a method call on it
returning the value or without, depending on requiresMethodCall property).
If valueRetrievalMode is set to this, it means a javabean must be used
(through property lookupName) as input parameter (either with a method call on it
returning the value or without, depending on requiresMethodCall property).
Use this supportive annotation inside @Lookup to specify
you wish to use the SpringLookup to find a class to do validation with (or anything
else, depending on the situation where it is used exactly).
This method is called by the JV framework (JsfAnnotationValidatorImpl)
if an object to validate has defined a JSF lookup and thus must be validated through a JSF bean.
This method is called by the JV framework (SpringAnnotationValidatorImpl)
if an object to validate has defined a spring lookup and thus must be validated through a spring bean.