List#

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

Definition#

Simple ordered Collection defined as a list of Members where the location of each Member in the list is given by the associated Position class.

Explanatory notes#

When a predefined or natural order is required, List, Position and Member can be used directly without the need to refer to a separate Collection.

Diagram#

Diagram

Inheritance#

Inheritance
    ᐊ── CollectionsPattern::List

Attributes#

Attributes
Attributes#

Name

Inherited from

Description

Data Type

Multiplicity

Default value

allowsDuplicates

CollectionsPattern::Collection

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

CollectionsPattern::Collection

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

CollectionsPattern::Collection

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

InternationalString

0..1

Associations#

Associations
Associations#

Direction

Association

Description

Multiplicity of List

Package of Other Class

Other Class

Multiplicity of other class

Aggregation Kind

Inherited from

from

Collection has Member

0..*

- own package -

Member

0..*

shared

CollectionsPattern::Collection

to

Comparison maps Collection

2..*

- own package -

Comparison

0..*

none

CollectionsPattern::Collection

to

Structure structures Collection

0..1

- own package -

Structure

0..*

none

CollectionsPattern::Collection

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

List has Position

The Position of the member in the list. Lifecycle dependency: position cannot exist without a list and can be related to one and only one list.

1..1

- own package -

Position

0..*

composite

own class