Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Content layer
id431959380
Content column
id431959383
Content block
id431959382

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

Java ElementUML element
Annotation declarationUML Interface with stereotype «JavaAnnotation» (optional)
Annotation nameUML Interface name
Annotation documentationUML Interface Documentation
Visibility modifierUML Interface "Visibility" property
Tip
titleExample

Java source code

Code Block
languagejava
/**
* Comment of annotation
*/
public @interface Annotation
{
}


UML model

UML Interface representing Java annotation type



Content block
id431959379

Related Pages:

Children Display
pageMapping to UML Rules