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
Inheritance
Attributes
Name |
Inherited from |
Description |
Data Type |
Multiplicity |
Default value |
---|---|---|---|---|---|
allowsDuplicates |
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 |
Human understandable name (liguistic signifier, word, phrase, or mnemonic). May follow ISO/IEC 11179-5 naming principles, and have context provided to specify usage. |
0..* |
|||
purpose |
Intent or reason for the object/the description of the object. |
0..1 |
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 - |
0..* |
shared |
|||
to |
Comparison maps Collection |
2..* |
- own package - |
0..* |
none |
|||
to |
Structure structures Collection |
0..1 |
- own package - |
0..* |
none |
|||
to |
Collection has Member |
0..* |
- own package - |
0..* |
none |
|||
to |
Map hasSource Member |
0..* |
- own package - |
0..* |
none |
|||
to |
Map hasTarget Member |
0..* |
- own package - |
0..* |
none |
|||
to |
MemberRelationship hasSource Member |
0..* |
- own package - |
0..* |
none |
|||
to |
MemberRelationship hasTarget Member |
0..* |
- own package - |
0..* |
none |
|||
to |
Position indexes Member |
0..1 |
- own package - |
0..* |
none |
|||
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 - |
0..* |
composite |
- own class - |