Java Reference
In-Depth Information
Table 4-37
Moment-Interval Archetype Mapping (continued)
Element
Property
Value
Node Mapping
Element
Attribute
StructuralFeature
Diagram Node
Diagram Label ListItem
Tool
Creation Tool Attribute
Feature Label Mapping
Diagram Label
Diagram Label ListItem
Features
NamedElement.name : String
Child Reference
Compartment
Compartment Mapping <Operations>
Containment Feature
Class.operations : Operation
Node Mapping
Element
Operation
StructuralFeature
Diagram Node
Diagram Label ListItem
Tool
Creation Tool Operation
Feature Label Mapping
Diagram Label
Diagram Label ListItem
Features
NamedElement.name : String
View Pattern
{0}()
Compartment Mapping
Children
Child Reference
<features:Attribute/ListItem>
Compartment
Compartment Attributes
(BasicRectangle)
Compartment Mapping
Children
Child Reference
<features:Operation/ListItem>
Compartment
Compartment Operations
(BasicRectangle)
* The use of the Feature Label Mapping element for our stereotype
labels in all archetypes, package, and annotation mappings is a workaround for
the fact that it's not possible to leave the feature blank, or provide a default string
value, if we want to use a regular Label Mapping or Design Label Mapping
element. With the Read Only property set to true and the View Pattern set
to the stereotype string we want displayed, it really doesn't matter what feature
is mapped, actually. This approach prevents us from having to create multiple
label definitions in our graphical definition model and would likely cause us to
create multiple archetype figure definitions.
Subsequent archetypes are mapped in a similar manner, each using the
Referenced Child property, as mentioned earlier. Table 4-38 shows the
Search WWH ::




Custom Search