HOPEX UML : HOPEX XML Schemas : XSD Reverse Generation : Modeling the XSD Schema tags : XSD reverse generation: Group
   
XSD reverse generation: Group
The "Group" tag defines a group of elements in the schema. The goal is to be able to reuse this group in different schemas through references. This avoids redundancies in the element group definitions.
The group is defined by a class of the "schema Group" stereotype. The group declaration 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. This functions similarly to the way it does for elements.
Attributes of "Group"
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. However, if this is a reference, the Id attribute for the class cannot be overloaded. It is then modeled by the XSD ID generation parameter defined in the generation tab for the class role.
MaxOccurs: modeled by the maximum multiplicity on the class role.
MinOccurs: modeled by the minimum multiplicity on the class role.
Ref: modeled by the reference link between class roles. This is the "Referenced Role/Referencing Role" link.
Child
A group may have as a child:
"XSD reverse generation: all"
"XSD reverse generation: Sequence"
"XSD reverse generation: Choice"
"XSD reverse generation: Annotation (Documentation - AppInfo)"