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

Method getAnnotations

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

Get the default set of annotations. The set is created if it doesn't exist yet.

()

Source from the content-addressed store, hash-verified

695 * yet.
696 */
697 @Override
698 public AnnotationSet getAnnotations() {
699 if(defaultAnnots == null) {
700 defaultAnnots = new AnnotationSetImpl(this,"");
701 fireAnnotationSetAdded(new DocumentEvent(this,
702 DocumentEvent.ANNOTATION_SET_ADDED, ""));
703 }// if
704 return defaultAnnots;
705 } // getAnnotations()
706
707 /**
708 * Get a named set of annotations. Creates a new set if one with this name

Callers 4

toXmlMethod · 0.95
writeStartTagMethod · 0.95
writeEmptyTagMethod · 0.95

Calls 4

equalsMethod · 0.65
getMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected