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

Method toString

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

String respresentation

()

Source from the content-addressed store, hash-verified

2357 // } // hashcode
2358 /** String respresentation */
2359 @Override
2360 public String toString() {
2361 String n = Strings.getNl();
2362 StringBuffer s = new StringBuffer("DocumentImpl: " + n);
2363 s.append(" content:" + content + n);
2364 s.append(" defaultAnnots:" + defaultAnnots + n);
2365 s.append(" encoding:" + encoding + n);
2366 s.append(" features:" + features + n);
2367 s.append(" markupAware:" + markupAware + n);
2368 s.append(" namedAnnotSets:" + namedAnnotSets + n);
2369 s.append(" nextAnnotationId:" + nextAnnotationId + n);
2370 s.append(" nextNodeId:" + nextNodeId + n);
2371 s.append(" sourceUrl:" + sourceUrl + n);
2372 s.append(" sourceUrlStartOffset:" + sourceUrlStartOffset + n);
2373 s.append(" sourceUrlEndOffset:" + sourceUrlEndOffset + n);
2374 s.append(n);
2375 return s.toString();
2376 } // toString
2377
2378 /** Freeze the serialization UID. */
2379 static final long serialVersionUID = -8456893608311510260L;

Callers 1

getOrderingStringMethod · 0.95

Calls 2

getNlMethod · 0.95
toStringMethod · 0.65

Tested by

no test coverage detected