|
|
Context Pattern Editor – Relation Tokens |
Relation tokens allow you to specify a token relative to the previous token:
· from:
· to:
· references:
· type:
· owner:
· parent:
· requiredInterface:
· providedInterface:
Note that these are special tokens that already include a colon and so selecting the Target cell is not necessary (these tokens by their nature return the target of a relation).
When the preceding token is a relationship, the form/to token returns the element at the start / end of that relationship. This is useful if you want to capture both the relationship and the element at its end (if you only want the element at the end then it is easier to select the relationship type as the Metaclass and select the Target cell)
Equivalent to the references dialog in the Rhapsody features window, returns all other model elements that refer to the model element(s) that match the previous token.
Returns the type of the matched element instead of the element matched in the preceding token, for example in a table pattern:
Package,{Object},{blk}type:
Returns an Object and then the Block/Class that types it
Returns the owner of the model element matched by the preceding token
Returns the parent of the model element matched by the preceding token in a state machine / activity diagram
These are for processing UML ports which have provided and required interfaces. SysML proxy ports may simply use type: to get their contract.