private AnnotationInstance parserAttributeOverride(JaxbAttributeOverride attributeOverride, AnnotationTarget target) { if ( attributeOverride == null ) { return null; } List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", attributeOverride.getName(), annotationValueList ); if ( attributeOverride instanceof JaxbAttributeOverrideProxy ) { JaxbAttributeOverrideProxy proxy = (JaxbAttributeOverrideProxy) attributeOverride; MockHelper.addToCollectionIfNotNull( annotationValueList, proxy.getColumnAnnotationValue() ); } else { MockHelper.nestedAnnotationValue( "column", parserColumn( attributeOverride.getColumn(), null ), annotationValueList ); } return create( ATTRIBUTE_OVERRIDE, target, annotationValueList ); }
private AnnotationInstance parserAttributeOverride(JaxbAttributeOverride attributeOverride, AnnotationTarget target) { if ( attributeOverride == null ) { return null; } List<AnnotationValue> annotationValueList = new ArrayList<AnnotationValue>(); MockHelper.stringValue( "name", attributeOverride.getName(), annotationValueList ); if ( attributeOverride instanceof JaxbAttributeOverrideProxy ) { JaxbAttributeOverrideProxy proxy = (JaxbAttributeOverrideProxy) attributeOverride; MockHelper.addToCollectionIfNotNull( annotationValueList, proxy.getColumnAnnotationValue() ); } else { MockHelper.nestedAnnotationValue( "column", parserColumn( attributeOverride.getColumn(), null ), annotationValueList ); } return create( ATTRIBUTE_OVERRIDE, target, annotationValueList ); }