public static AssociationValue createEmptyAssociationValue ( AssociationAttributeInfo attributeInfo ) { AssociationValue value = new AssociationValue ( ) ; Map < String , Attribute < ? > > attributes = new HashMap < String , Attribute < ? > > ( ) ; for ( AbstractAttributeInfo attrInfo : attributeInfo . getFeature ( ) . getAttributes ( ) ) { attributes . put ( attrInfo . getName ( ) , createEmptyAttribute ( attrInfo ) ) ; } value . setAllAttributes ( attributes ) ; value . setId ( createEmptyPrimitiveAttribute ( attributeInfo . getFeature ( ) . getIdentifier ( ) ) ) ; return value ; }
Creates an empty association value . An empty association value is a value for which the attributes and identifier are empty .