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
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. |
0..* |
||
purpose |
- own class - |
Intent or reason for the object/the description of the object. |
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 - |
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 |
Collection has Member |
0..* |
- own package - |
0..* |
shared |
- own class - |
||
to |
Comparison maps Collection |
2..* |
- own package - |
0..* |
none |
- own class - |
||
to |
Structure structures Collection |
0..1 |
- own package - |
0..* |
none |
- own class - |