public class DocumentEvent extends GateEvent
Document
.Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION_SET_ADDED
Event type used to mark the addition of an
AnnotationSet |
static int |
ANNOTATION_SET_REMOVED
Event type used to mark the removal of an
AnnotationSet |
static int |
CONTENT_EDITED
Event type used to mark the editing of the document content
|
FEATURES_UPDATED, type
source
Constructor and Description |
---|
DocumentEvent(Document source,
int type,
Long editStart,
Long editEnd)
Constructor.
|
DocumentEvent(Document source,
int type,
String setName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAnnotationSetName()
Gets the name of the
AnnotationSet that has been added or
removed. |
Long |
getEditEnd() |
Long |
getEditStart() |
getSource, toString
public static final int ANNOTATION_SET_ADDED
AnnotationSet
public static final int ANNOTATION_SET_REMOVED
AnnotationSet
public static final int CONTENT_EDITED
public DocumentEvent(Document source, int type, String setName)
source
- the document that has been changedtype
- the type of the eventsetName
- the name of the AnnotationSet
that has been
added or removed.public String getAnnotationSetName()
AnnotationSet
that has been added or
removed.public Long getEditEnd()
public Long getEditStart()
Copyright © 2024 GATE. All rights reserved.