return;
}
else if( Association.class.isAssignableFrom( memberClass ) )
{
Association association = (Association) qi4jField;
OgnlContext ognlContext = (OgnlContext) aContext;
Class<?> associationType = (Class) api.associationDescriptorFor( association ).type();
Object convertedValue = getConvertedType(
ognlContext, aTarget, null, fieldName, aPropertyValue, associationType );
if( convertedValue == OgnlRuntime.NoConversionPossible )
{
throw new OgnlException( "Could not convert value to association type" );
}
try
{
association.set( convertedValue );
}
catch( ConstraintViolationException e )
{
Collection<ConstraintViolation> violations = e.constraintViolations();
handleConstraintViolation( aContext, aTarget, fieldName, aPropertyValue, violations );