Collection

Collection container (set or bag). It could have an optional order relation (total or partial) associated to it to model linear order, hierarchies and nesting. A Collection is also a subtype of Member to allow for nested collections.

Extends

Member

Properties

Name Type Cardinality
type CollectionType 0..1

type

Whether the collection is a bag or a set.

Graph

digraph G { fontname = "Bitstream Vera Sans" fontsize = 8 overlap=false; compound=true; node [ fontname = "Bitstream Vera Sans" fontsize = 8 shape = "record" ] edge [ fontname = "Bitstream Vera Sans" fontsize = 8 mode="ipsep" ] DDI4_Collection [ label = "{<id>Collection | + type : CollectionType \l \l \l| <Collectioncontains> contains \l| <CollectionisOrderedBy> isOrderedBy \l \l}" tooltip = "Collections:Collection" ] subgraph Collections { label = "Collections" node [ color = "#FF0044" ] DDI4_Member [ label = "{<id>Member | + label : Label \l + definition : StructuredString \l + description : StructuredString \l \l \l| \l \l}" tooltip = "Collections:Member" ]; DDI4_OrderRelation [ label = "{<id>OrderRelation | + type : OrderRelationshipType \l + criteria : StructuredString \l + isRegularHierarchy : xs:boolean \l + label : Label \l + definition : StructuredString \l + description : StructuredString \l \l \l| <OrderRelationpredecessor> predecessor \l| <OrderRelationsuccessor> successor \l \l}" tooltip = "Collections:OrderRelation" ]; } DDI4_Collection -> DDI4_Member [arrowhead=empty color="#000000" ]; DDI4_Member -> DDI4_Collection:Collectioncontains [arrowhead=odiamond labeldistance=1.9 taillabel="1..n" headlabel="0..n" edgetooltip="contains" fontcolor="black" color="#00000"]; DDI4_OrderRelation -> DDI4_Collection:CollectionisOrderedBy [arrowhead=odiamond labeldistance=1.9 taillabel="0..n" headlabel="1..n" edgetooltip="isOrderedBy" fontcolor="black" color="#00000"]; }