MCPcopy Create free account
hub / github.com/GateNLP/gate-core / fireDocumentAdded

Method fireDocumentAdded

src/main/java/gate/corpora/CorpusImpl.java:756–764  ·  view source on GitHub ↗
(CorpusEvent e)

Source from the content-addressed store, hash-verified

754 protected transient List<Document> documentsList;
755
756 protected void fireDocumentAdded(CorpusEvent e) {
757 if(corpusListeners != null) {
758 Vector<CorpusListener> listeners = corpusListeners;
759 int count = listeners.size();
760 for(int i = 0; i < count; i++) {
761 listeners.elementAt(i).documentAdded(e);
762 }
763 }
764 }
765
766 protected void fireDocumentRemoved(CorpusEvent e) {
767 if(corpusListeners != null) {

Callers 2

setMethod · 0.45
addMethod · 0.45

Calls 2

sizeMethod · 0.65
documentAddedMethod · 0.65

Tested by

no test coverage detected