/** * Writes a chunk of raw XML (and line-breaks are normalized to platform specific ones). * If a tag is open, it is closed automatically before the data are written. * Use {@link #appendRawXML(String)} to output without preliminary closing. * @param xmlData the data to output. No escaping is performed, but the line-breaks are * converted to the line-break type of the output. */ public void writeRawXML (String xmlData) { closeStartTag(); appendRawXML(xmlData); }
/** * Writes a string. The text is automatically escaped. * @param text the text to output. */ public void writeString (String text) { closeStartTag(); appendRawXML(Util.escapeToXML(text, 0, false, null)); }
/** * Writes a comment. * @param text the text of the comment. * @param withLineBreak add a line break at the end of the comment. */ public void writeComment (String text, boolean withLineBreak) { closeStartTag(); write("<!--"); appendRawXML(text); write("-->"); if ( withLineBreak ) write(lineBreak); }
StringBuilder tmp = new StringBuilder(); itsContForAltTrgCont.outputAnnotations(alt.getTarget().getAnnotation(GenericAnnotations.class), tmp, false, false, false, null); writer.appendRawXML(tmp.toString());
(GenericAnnotations)tu.getAnnotation(ITSProvenanceAnnotations.class), sbITS, false, false, false, trgLoc); writer.appendRawXML(sbITS.toString()); (GenericAnnotations)tc.getAnnotation(ITSProvenanceAnnotations.class), sbITS, false, false, false, null); writer.appendRawXML(sbITS.toString()); (GenericAnnotations)tc.getAnnotation(ITSProvenanceAnnotations.class), sbITS, false, false, false, null); writer.appendRawXML(sbITS.toString());