public class AnnotationSetEvent extends GateEvent
|Modifier and Type||Field and Description|
Event type used for situations when a new annotation has been added
Event type used for situations when an annotation has been removed
|Constructor and Description|
|Modifier and Type||Method and Description|
Gets the annotation that has been added or removed
Gets the document that has had an annotation added or removed.
public static final int ANNOTATION_ADDED
public static final int ANNOTATION_REMOVED
public AnnotationSetEvent(AnnotationSet source, int type, Document sourceDocument, Annotation annotation)
AnnotationSetthat fired the event
type- the type of the event
Documentfor wich the annotation was added or removed.
annotation- the annotation added or removed.
public Document getSourceDocument()
public Annotation getAnnotation()
Copyright © 2023 GATE. All rights reserved.