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, populate
getDataStore, getLRPersistenceId, getParent, isModified, setDataStore, setLRPersistenceId, setParent, sync
cleanup, getParameterValue, init, setParameterValue, setParameterValues
getFeatures, setFeatures
getName, setName
add, 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, toArray
parallelStream, removeIf, stream
void 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.