XSD reverse generation: AttributeGroup
The "AttributeGroup" tag defines a group of attributes. It is declared at the schema level, then referenced from the types. This avoids redundant definitions.
The attribute group is defined by a class of the "schema Group" stereotype. The declaration of this group is represented by a UML composition. The group occurrence is modeled by the class role on the side of the class of the "schema Group" stereotype.
Attributes of "AttributeGroup"
• Name: modeled by the name of the class role and the name of the class: they both have the same name.
• ID: modeled by the XSD ID generation parameter for the class, if the group is defined at the schema level. If it is a reference, you cannot overload the Id attribute for the class, so it is modeled by the XSD ID generation parameter defined in the generation tab for the class role.
• Ref: modeled by the reference link between class roles. This is the "Referenced Role/Referencing Role" link.