Java Reference
In-Depth Information
Notice from the mapping that the link also has a Constraint and Feature
Seq Initializer element. Constraint s specify conditions for which the
underlying relationship is valid, or remove ambiguity if multiple links are
mapped for a single element. In this case, the isDirected property is set to
true . The initializer mapping element that follows sets the property itself. The
language defaults to OCL, and the expression is simply true .
A link can also have a label mapping. Naturally, the label will be of the
“external” variety, able to be associated with an end of the link, as specified in
the graphical definition model. Table 11-9 is our dependency link mapping from
Section 4.3.5, “Updating the Mapping Definition,” where two link mappings are
required: one for the link name and the other for the stereotype.
Table 11-9
Relationship Link Mapping
Element
Property
Value
Link Mapping
Containment Feature
elements : MapElement
Element
Relationship
MapElement
Source Feature
source : Topic
Target Feature
target : Topic
Diagram Link
Connection Relationship
Tool
Creation Tool Dependency
Feature Label Mapping
Diagram Label
Diagram Label RelationshipName
Features
name : EString
Feature Label Mapping
Diagram Label
Diagram Label RelationshipType
Features
type : Type
View Pattern
«{0}»
11.3.7 Audits and Metrics
The root of the mapping model allows for the creation of an Audit Container
and a Metric Container , as shown in Figure 11-16. An Audit Container
contains audit rules or child containers. An audit rule has several properties,
including name, ID, message, description, severity, and whether to use “live”
mode. The alternative to live is batch, in which the Practitioner must explicitly
run audits on models. An audit rule requires two child elements: a constraint, or
the rule itself defined in OCL, Java, regexp, or nregexp, and a context. The
Search WWH ::




Custom Search