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

Method cleanup

src/main/java/gate/corpora/DocumentImpl.java:510–520  ·  view source on GitHub ↗

Clear all the data members of the object.

()

Source from the content-addressed store, hash-verified

508
509 /** Clear all the data members of the object. */
510 @Override
511 public void cleanup() {
512 defaultAnnots = null;
513 if((namedAnnotSets != null) && (!namedAnnotSets.isEmpty()))
514 namedAnnotSets.clear();
515 if(DEBUG) Out.prln("Document cleanup called");
516 if(this.lrPersistentId != null)
517 Gate.getCreoleRegister().removeCreoleListener(this);
518 if(this.getDataStore() != null)
519 this.getDataStore().removeDatastoreListener(this);
520 } // cleanup()
521
522
523 /** Get the specific MIME type for this document, if set */

Callers

nothing calls this directly

Calls 7

prlnMethod · 0.95
getCreoleRegisterMethod · 0.95
removeCreoleListenerMethod · 0.65
getDataStoreMethod · 0.65
isEmptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected