Java Reference
In-Depth Information
Table 4-3
Mindmap Subtopic Link Mapping
Element
Property
Value
Mapping
Link Mapping
Target Feature
Topic.subtopics : Topic
Diagram Link
Connection TopicSubtopics
Tool
Creation Tool TopicSubtopics
The Relationship Link Mapping is more involved than our
TopicSubtopics Link Mapping because we are mapping a domain class to the
link, not just a reference within a class, as seen in Table 4-4. In this case, the
Relationship class in our domain model is the domain Element , with the
element 's Containment Feature of our Map being where we will store new
Relationship instances created with each link. Using a class to represent a
relationship in our domain model essentially gives us what an EAssociation in
Ecore itself would provide. The Source and Target Feature properties map
in a straightforward manner to our source : Topic and target : Topic
references, respectively. As with the TopicSubtopic link mapping, we map our
Diagram Link and Tool properties to their corresponding graphical and tool-
ing model elements. Again, Appearance Style and Context Menu go unused;
Section 4.5, “Developing the Scenario Diagram,” discusses the Related
Diagrams property.
Table 4-4
Mindmap Relationship Link Mapping
Element
Property
Value
Mapping
Link Mapping
Containment Feature
Map.elements : MapElement
Element
Relationship -> MapElement
Source Feature
Relationship.source : Topic
Target Feature
Relationship.target : Topic
Diagram Link
Connection Relationship
Tool
Creation Tool Relationship
Feature Label Mapping
Diagram Label
Diagram Label RelationshipName
Features
MapElement.name : EString
(continues)
 
Search WWH ::




Custom Search