Collection

Fully qualified class name: DDICDIModels::DesignPatterns::CollectionsPattern::Collection | Class is abstract.

Definition

Generic container that supports different types of groupings, from unordered sets to all sorts of hierarchies, nesting and ordered sets/bags.

Diagram

Inheritance
  ᐊ── CollectionsPattern::Collection
    ᐊ── CollectionsPattern::List
Attributes

Name

Inherited from

Description

Data Type

Multiplicity

Default value

allowsDuplicates

- own class -

If value is False, the members are unique within the collection - if True, there may be duplicates. (Note that a mathematical “bag” permits duplicates and is unordered - a “set” does not have duplicates and may be ordered.)

Boolean

1..1

name

- own class -

Human understandable name (liguistic signifier, word, phrase, or mnemonic). May follow ISO/IEC 11179-5 naming principles, and have context provided to specify usage.

ObjectName

0..*

purpose

- own class -

Intent or reason for the object/the description of the object.

InternationalString

0..1

Associations

Direction

Association

Description

Multiplicity of Collection

Package of Other Class

Other Class

Multiplicity of other class

Aggregation Kind

Inherited from

to

Collection has Member

0..*

- own package -

Collection

0..*

none

CollectionsPattern::Member

to

Map hasSource Member

0..*

- own package -

Map

0..*

none

CollectionsPattern::Member

to

Map hasTarget Member

0..*

- own package -

Map

0..*

none

CollectionsPattern::Member

to

MemberRelationship hasSource Member

0..*

- own package -

MemberRelationship

0..*

none

CollectionsPattern::Member

to

MemberRelationship hasTarget Member

0..*

- own package -

MemberRelationship

0..*

none

CollectionsPattern::Member

to

Position indexes Member

0..1

- own package -

Position

0..*

none

CollectionsPattern::Member

from

Collection has Member

0..*

- own package -

Member

0..*

shared

- own class -

to

Comparison maps Collection

2..*

- own package -

Comparison

0..*

none

- own class -

to

Structure structures Collection

0..1

- own package -

Structure

0..*

none

- own class -