NEW RELEASE! The 2022x Refresh2 Hot Fix 3 was released on February 28, 2025. For more information, see 2022x Refresh2 Hot Fix 3 Version News.

A Java annotation declaration is mapped directly to the UML Interface with the stereotype «JavaAnnotation». Annotation modifiers are mapped into UML Interface properties. Annotation members are mapped to the UML Interface operations with the stereotype «JavaAnnotationMember».

Annotation mapping table

Annotation declarationUML Interface with stereotype «JavaAnnotation» (optional)
Annotation nameUML Interface name
Annotation documentationUML Interface Documentation
Visibility modifierUML Interface "Visibility" property

Example

Java source code

/**
* Comment of annotation
*/
public @interface Annotation
{
}

UML model

UML Interface representing Java annotation type

Activity

All
Personal filters
All