Package org.xwiki.annotation.renderer
Class AnnotationEvent
- java.lang.Object
-
- org.xwiki.annotation.renderer.AnnotationEvent
-
public class AnnotationEvent extends Object
Class to hold information about an annotation event, namely its type (annotation start or end) and the annotation for which the event takes place.- Since:
- 2.3M1
- Version:
- $Id: a418599f85554b504ed10e8492d479b7c1960a0d $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotationEvent.AnnotationEventType
The type of annotation event that can occur during the processing.
-
Constructor Summary
Constructors Constructor Description AnnotationEvent(AnnotationEvent.AnnotationEventType type, Annotation ann)
Builds an annotation event for the passed annotation and type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotation
getAnnotation()
AnnotationEvent.AnnotationEventType
getType()
-
-
-
Constructor Detail
-
AnnotationEvent
public AnnotationEvent(AnnotationEvent.AnnotationEventType type, Annotation ann)
Builds an annotation event for the passed annotation and type.- Parameters:
type
- the type of the annotation eventann
- the annotation for which the event took place
-
-
Method Detail
-
getType
public AnnotationEvent.AnnotationEventType getType()
- Returns:
- the type
-
getAnnotation
public Annotation getAnnotation()
- Returns:
- the annotation
-
-