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

Method wrap

src/main/java/gate/creole/annic/Parser.java:297–303  ·  view source on GitHub ↗

wraps the element into the following format @return <elementText>elementValue</elementText>

(String elementText, String elementValue)

Source from the content-addressed store, hash-verified

295 * @return <elementText>elementValue</elementText>
296 */
297 public static String wrap(String elementText, String elementValue) {
298 if(elementValue == null) {
299 return "<" + elementText + "> </" + elementText + ">\n";
300 }
301 return "<" + elementText + ">" + replaceAmpChars(elementValue) + "</"
302 + elementText + ">\n";
303 }
304
305 /**
306 * wraps the element into the following format

Callers 1

toXMLMethod · 0.95

Calls 1

replaceAmpCharsMethod · 0.95

Tested by

no test coverage detected