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