Displaying Element Properties
The commands print, println, and printwrapped all take a string parameter representing the text to be printed. Element properties can be added to the text using the substitution macro #propertyname#.
For example: println("name: #NAME#");
In addition to the properties listed below, tagged values can also be displayed by prefixing the tagged value name with "TAG:".
For example: print("#TAG:condition#");
Element Properties Visible to Shape Scripts
Properties for Element Shape Scripts
| · | alias |
| · | author |
| · | cardinality |
| · | classifier |
| · | classifier.alias |
| · | classifier.metatype |
| · | classifier.name |
| · | classifier.stereotype |
| · | complexity |
| · | concurrency |
| · | datecreated |
| · | datemodified |
| · | diagram.name |
| · | diagram.stereotype |
| · | diagram.type |
| · | haslinkeddocument |
| · | isabstract |
| · | isactive |
| · | isembedded |
| · | isleaf |
| · | islocked |
| · | isroot |
| · | isspec |
| · | istagged |
| · | keywords |
| · | language |
| · | multiplicity |
| · | name |
| · | notes |
| · | packagename |
| · | parentedge |
| · | persistence |
| · | phase |
| · | propertytype |
| · | propertytype.alias |
| · | propertytype.metatype |
| · | propertytype.name |
| · | propertytype.stereotype |
| · | scope |
| · | status |
| · | stereotype |
| · | type |
| · | version |
| · | visibility |
Properties for Connector Shape Scripts
| · | diagram.name |
| · | diagram.stereotype |
| · | diagram.type |
| · | direction |
| · | isroot |
| · | isleaf |
| · | name |
| · | notes |
| · | source.aggregation |
| · | source.changable |
| · | source.constraints |
| · | source.element.name |
| · | source.element.stereotype |
| · | source.metatype |
| · | source.multiplicity |
| · | source.multiplicityisordered |
| · | source.qualifiers |
| · | source.stereotype |
| · | source.targetscope |
| · | stereotype |
| · | subtype |
| · | target.aggregation |
| · | target.changable |
| · | target.constraints |
| · | target.element.name |
| · | target.element.stereotype |
| · | target.metatype |
| · | target.multiplicity |
| · | target.multiplicityisordered |
| · | target.qualifiers |
| · | target.stereotype |
| · | target.targetscope |
| · | type |


