|
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.CorpusEvent
public class CorpusEvent
Models events fired by corpora when documents are added or removed.
Field Summary | |
---|---|
static int |
DOCUMENT_ADDED
Event type that is fired when a new document is added to a corpus |
static int |
DOCUMENT_REMOVED
Event type that is fired when a document is removed from a corpus |
Fields inherited from class gate.event.GateEvent |
---|
FEATURES_UPDATED, type |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
CorpusEvent(Corpus source,
Document doc,
int index,
int type)
Creates a new CorpusEvent. |
Method Summary | |
---|---|
Document |
getDocument()
Gets the dcument this event refers to |
int |
getDocumentIndex()
Gets the index of the dcument this event refers to |
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 DOCUMENT_ADDED
public static final int DOCUMENT_REMOVED
Constructor Detail |
---|
public CorpusEvent(Corpus source, Document doc, int index, int type)
source
- the corpus that fires the eventdoc
- the document this event refers totype
- the type of event (DOCUMENT_ADDED
or
DOCUMENT_REMOVED
).Method Detail |
---|
public Document getDocument()
public int getDocumentIndex()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |