public interface Corpus extends SimpleCorpus
CORPUS_DOCLIST_PARAMETER_NAME, CORPUS_NAME_PARAMETER_NAME| Modifier and Type | Method and Description |
|---|---|
void |
addCorpusListener(CorpusListener l)
Registers a new
CorpusListener with this corpus. |
boolean |
isDocumentLoaded(int index)
This method returns true when the document is already loaded in memory.
|
void |
removeCorpusListener(CorpusListener l)
Removes one of the listeners registered with this corpus.
|
void |
unloadDocument(Document doc)
Unloads the document from memory.
|
getDocumentName, getDocumentNames, populate, populate, populategetDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, synccleanup, getParameterValue, init, setParameterValue, setParameterValuesgetFeatures, setFeaturesgetName, setNameadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamvoid unloadDocument(Document doc)
Transient Corpus objects do nothing, because there would be no way to get the document back again afterwards.
doc - Document to be unloaded from memory.boolean isDocumentLoaded(int index)
void removeCorpusListener(CorpusListener l)
l - the listener to be removed.void addCorpusListener(CorpusListener l)
CorpusListener with this corpus.l - the listener to be added.Copyright © 2024 GATE. All rights reserved.