forked from comsysto/livingdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlantUmlNote.java
More file actions
35 lines (28 loc) · 944 Bytes
/
PlantUmlNote.java
File metadata and controls
35 lines (28 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.comsysto.livingdoc.annotation.plantuml;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation that models a note to be included in a class diagram. Multiple
* notes may be attached to the same type.
*/
@Retention(RetentionPolicy.SOURCE)
@Target({ ElementType.TYPE, ElementType.FIELD, ElementType.METHOD })
@Repeatable(PlantUmlNotes.class)
public @interface PlantUmlNote {
/**
* The note body. The body may be formatted using
* <a href="http://plantuml.com/creole">Creole</a>, the markup language used
* by PlantUML.
*/
String body() default "";
/**
* The note's position in relation to the rendered type.
*/
Position position() default Position.TOP;
enum Position {
TOP, BOTTOM, LEFT, RIGHT;
}
}