|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
gate.event.GateEvent
gate.event.AnnotationSetEvent
public class AnnotationSetEvent
This class models events fired by an AnnotationSet
.
Field Summary | |
---|---|
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 |
Fields inherited from class gate.event.GateEvent |
---|
FEATURES_UPDATED, type |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
AnnotationSetEvent(AnnotationSet source,
int type,
Document sourceDocument,
Annotation annotation)
Constructor. |
Method Summary | |
---|---|
Annotation |
getAnnotation()
Gets the annotation that has been added or removed |
Document |
getSourceDocument()
Gets the document that has had an annotation added or removed. |
Methods inherited from class gate.event.GateEvent |
---|
getType |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ANNOTATION_ADDED
public static final int ANNOTATION_REMOVED
Constructor Detail |
---|
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.Method Detail |
---|
public Document getSourceDocument()
Document
public Annotation getAnnotation()
Annotation
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |