ConvertGroup.List groupConversionList = null;
boolean requiresUnwrapping = false;
if ( annotationProcessingOptions.areParameterConstraintsIgnoredFor( executable.getMember(), i ) ) {
metaData.add(
new ConstrainedParameter(
ConfigurationSource.ANNOTATION,
ConstraintLocation.forParameter( executable, i ),
ReflectionHelper.typeOf( executable, i ),
i,
parameterName,
parameterConstraints,
getGroupConversions( groupConversion, groupConversionList ),
false,
false
)
);
i++;
continue;
}
for ( Annotation parameterAnnotation : parameterAnnotations ) {
//1. mark parameter as cascading if this annotation is the @Valid annotation
if ( parameterAnnotation.annotationType().equals( Valid.class ) ) {
parameterIsCascading = true;
}
//2. determine group conversions
else if ( parameterAnnotation.annotationType().equals( ConvertGroup.class ) ) {
groupConversion = (ConvertGroup) parameterAnnotation;
}
else if ( parameterAnnotation.annotationType().equals( ConvertGroup.List.class ) ) {
groupConversionList = (ConvertGroup.List) parameterAnnotation;
}
//3. unwrapping required?
else if ( parameterAnnotation.annotationType().equals( UnwrapValidatedValue.class ) ) {
requiresUnwrapping = true;
}
//4. collect constraints if this annotation is a constraint annotation
List<ConstraintDescriptorImpl<?>> constraints = findConstraintAnnotations(
executable.getMember(), parameterAnnotation, ElementType.PARAMETER
);
for ( ConstraintDescriptorImpl<?> constraintDescriptorImpl : constraints ) {
parameterConstraints.add(
createParameterMetaConstraint( executable, i, constraintDescriptorImpl )
);
}
}
metaData.add(
new ConstrainedParameter(
ConfigurationSource.ANNOTATION,
ConstraintLocation.forParameter( executable, i ),
ReflectionHelper.typeOf( executable, i ),
i,
parameterName,