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

Method getString

src/main/java/gate/gui/docview/CorefEditor.java:1171–1176  ·  view source on GitHub ↗

Given an annotation, this method returns the string of that annotation

(Annotation ann)

Source from the content-addressed store, hash-verified

1169 * Given an annotation, this method returns the string of that annotation
1170 */
1171 public String getString(Annotation ann) {
1172 return document.getContent().toString().substring(ann.
1173 getStartNode().getOffset().intValue(),
1174 ann.getEndNode().getOffset().intValue()
1175 ).replaceAll("\\r\\n|\\r|\\n", " ");
1176 }
1177
1178 /**
1179 * Removes the reference of this annotation from the current chain.

Callers 10

featureMapUpdatedMethod · 0.95
createChainMethod · 0.95
initLocalDataMethod · 0.45
actionPerformedMethod · 0.45
initGuiComponentsMethod · 0.45
actionPerformedMethod · 0.45
actionPerformedMethod · 0.45
actionPerformedMethod · 0.45
actionPerformedMethod · 0.45
restoreSettingsMethod · 0.45

Calls 5

toStringMethod · 0.65
getContentMethod · 0.65
getOffsetMethod · 0.65
getStartNodeMethod · 0.65
getEndNodeMethod · 0.65

Tested by

no test coverage detected