DSL relationships may have special rules to describe which elements can be connected. Use the following properties to define the relationships:
Property | Description | |
---|---|---|
Types for Source | Specifies metaclasses or stereotypes allowed to connect as the source of the relationship. Types cannot conflict with UML permitted types for this relationship.
| |
Types for Target | Specifies metaclasses or stereotypes allowed to connect as the target of the relationship. Types cannot conflict with UML permitted types for this relationship.
|
Subtypes of a specified end type are allowed only if the type is abstract (for example, the Classifier metaclass), otherwise only concrete types must be used. For example:
|
In the following table, see properties that are used for customizing non-relationships:
Property | Description |
---|---|
Allowed Relationships | Specifies types of relationships that are allowed to be connected to the DSL element. |
Disallowed Relationships | Specifies types of relationships that are not allowed to be connected to the DSL element. |
Subtypes of specified allowed or disallowed relationships are analyzed only when a specified relationship type is an abstract metaclass (for example, DirectedRelationship). In other cases, only concrete types are checked.
|