Stereotype tags are used to store UML Stereotype values. They can be used for all UML elements, such as class, interface, property, dependency etc. Each UML artifact may have a list of stereotypes. The list of stereotypes is defined by the annotation @UML.Stereotypes.
package com.soyatec.uml.annotations;
public @interface UML {
public @interface Stereotypes {
com.soyatec.uml.annotations.Stereotype[] value();
}
...
}
Each stereotype is defined by an annotation @Stereotype, which has two attributes:
public @interface Stereotypes {
String value(); // name
com.soyatec.uml.annotations.Property[] properties() default {};
}
Attribute |
Value Type |
Cardinality |
Default value |
Description |
value |
String |
(1…1) |
|
It is the stereotype id from UML Profile. |
properties |
Property[] |
(0…*) |
{} |
Stereotype properties. |
Each UML element may have more than one stereotype tags. But the attribute “ uml_id” must have unique value.