Customizing the metamodel > Keywords for USRPROPS > OF DEFINITION AND SUPERS REFERENCED IN
  
OF DEFINITION AND SUPERS REFERENCED IN
OF DEFINITION AND SUPERS REFERENCED IN specifies a restricted list of definitions that you can choose from when you click Choices for a property. This restricted list references elements of a particular definition and elements of any other definition that it inherits from (is attached to through an inheritance line). It is used to add further refinement to an EDIT LISTOF or EDIT ONEOF statement, and is used in UML modeling.
Syntax
This can be combined with the WHERE clause, but this syntax must precede it:
OF DEFINITION AND SUPERS REFERENCED IN "property name" [WHERE ...]
Example
In the following example, when you click Choices in the message definition, you get methods of the class that the message line is attached to (the “To Class”, not the “From Class”), and any methods of any class that is a superclass of that class (connected to that class through an inheritance line).
DEFINITION "Message/Stimulus"
{
PROPERTY "To Package"
{ KEY EDIT OneOf "Package" RELATE BY "is keyed by" READONLY}
PROPERTY "To Class"
{ KEY EDIT OneOf "Class" KEYED BY { "Package":"To Package", Name } }
PROPERTY "To Object"
{ KEY EDIT OneOf "Object" KEYED BY{ "Package":"To Package", "Class":"To Class",Name} }
PROPERTY "Operation"
{ EDIT ParmOneOf "Method"
OF DEFINITION AND SUPERS REFERENCED IN "To Class"
KEYED BY { "Package" QUALIFIABLE,"Class Name"
QUALIFIABLE,"Formal Parameters" QUALIFIABLE ,Name}
LENGTH 1000
DISPLAY {FORMAT COMPONENT_SCRIPT _FmtNewUMLEventOperation LEGEND "$$NONE$$" }
LABEL "Method"
HELP "Choose a method from the proper class"
}
See also
OF DEFINITION REFERENCED IN
Keywords for USRPROPS