Prev Next

Reserved Names

When you write a Shape Script, there are certain terms that are reserved because they have special meaning in the script; use them for their specific purposes.

Elements

Elements (such as Class, State or Event) have these reserved names for parts of the shape.

Name

Description

See also

shape main

The main shape is the whole shape.

shape label

The shape label gives the shape a detached label.

decoration <identifier>

Decoration gives the shape a decoration as defined by the name in <identifier>.

shape ChildElement

Allows addition of custom compartments based on child elements belonging to the current element.

Add Custom Compartments to Element

shape RelatedElement

Allows addition of custom compartments based on related elements belonging to the current element.

Add Custom Compartments to Element

Connectors

Connectors (such as Association, Dependency or Generalization) have these reserved names for parts of the shape.

Name

Description

shape main

The main shape is the whole shape.

shape source

The source shape is an extra shape at the source end of the connector.

shape target

The target shape is an extra shape at the target end of the connector.

shape LeftTopLabel

Shapes defines a detached label for the connector in the left top corner.

shape MiddleTopLabel

Shapes defines a detached label for the connector in the middle top.

shape RightTopLabel

Shapes defines a detached label for the connector in the right top corner.

shape LeftBottomLabel

Shapes defines a detached label for the connector in the left bottom corner.

shape MiddleBottomLabel

Shapes defines a detached label for the connector in the middle bottom.

shape RightBottomLabel

Shapes defines a detached label for the connector in the right bottom corner.