Attributes Supported by Main XML Element Nodes
The table below lists the three main types of object you can define in an XML Profile document. These are the:
· | Stereotype, which creates a visible entry in the UML Profile folder in the Resources window |
· | Tagged Values, which are additional properties that an element or connector support |
· | Constraints that apply to the model element. |
Type |
Attribute |
Optional |
Notes |
stereotype |
name |
No |
Stereotype name. |
|
notes |
Yes |
Notes visible in browser. |
|
metafile |
Yes |
Filename of associated metafile; this MUST be in same directory as the Profile XML. |
|
cx |
Yes |
Initial x coordinate of element (deprecated). |
|
cy |
Yes |
Initial y coordinate of element (deprecated). |
|
_sizeX |
Yes |
Initial width of the element, in pixels at 100% zoom. |
|
_sizeY |
Yes |
Initial height of the element, in pixels at 100% zoom. |
|
_imageFile |
Yes |
Location of image file (.wmf). |
|
_image |
Yes |
Shape script definition. |
tag |
name |
No |
Tag name. |
|
description |
Yes |
A description of the tag; appears in the tag tab and for elements in the Properties window setting notes. |
|
values |
Yes |
List of possible values; values separated by ' | ' (<space>|<space>). eg. 'true | false'. For elements, populates the drop combo in the tag section of the docked Properties window. |
|
default |
Yes |
A default value; eg. 'true'. |
constraint |
name |
Yes |
Constraint name. |
|
type |
Yes |
Constraint type (eg. 'pre' for precondition, 'post' for postcondition). |
|
notes |
No |
Additional explanatory notes. |