/** * Makes an XML text representation. * * @param buffer */ public void makeTextElement(PrintWriter buffer) { int size; buffer.print("<legal"); if (id_ != null) { buffer.print(" id=\""); buffer.print(URelaxer.escapeAttrQuot(URelaxer.getString(getId()))); buffer.print("\""); } if (xmlLang_ != null) { buffer.print(" xml:lang=\""); buffer.print(URelaxer.escapeAttrQuot(URelaxer.getString(getXmlLang()))); buffer.print("\""); } size = this.content_.size(); for (int i = 0; i < size; i++) { IFtContentMixMixed value = (IFtContentMixMixed) this.content_.get(i); value.makeTextAttribute(buffer); } buffer.print(">"); size = this.content_.size(); for (int i = 0; i < size; i++) { IFtContentMixMixed value = (IFtContentMixMixed) this.content_.get(i); value.makeTextElement(buffer); } buffer.print("</legal>"); }
/** * Makes an XML text representation. * * @param buffer * @exception IOException */ public void makeTextElement(Writer buffer) throws IOException { int size; buffer.write("<fixme"); if (author_ != null) { buffer.write(" author=\""); buffer.write(URelaxer.escapeAttrQuot(URelaxer.getString(getAuthor()))); buffer.write("\""); } if (id_ != null) { buffer.write(" id=\""); buffer.write(URelaxer.escapeAttrQuot(URelaxer.getString(getId()))); buffer.write("\""); } if (xmlLang_ != null) { buffer.write(" xml:lang=\""); buffer.write(URelaxer.escapeAttrQuot(URelaxer.getString(getXmlLang()))); buffer.write("\""); } size = this.content_.size(); for (int i = 0; i < size; i++) { IFdContentMixMixed value = (IFdContentMixMixed) this.content_.get(i); value.makeTextAttribute(buffer); } buffer.write(">"); size = this.content_.size(); for (int i = 0; i < size; i++) { IFdContentMixMixed value = (IFdContentMixMixed) this.content_.get(i); value.makeTextElement(buffer); } buffer.write("</fixme>"); }
/** * Makes an XML text representation. * * @param buffer */ public void makeTextElement(PrintWriter buffer) { int size; buffer.print("<authors"); if (id_ != null) { buffer.print(" id=\""); buffer.print(URelaxer.escapeAttrQuot(URelaxer.getString(getId()))); buffer.print("\""); } if (xmlLang_ != null) { buffer.print(" xml:lang=\""); buffer.print(URelaxer.escapeAttrQuot(URelaxer.getString(getXmlLang()))); buffer.print("\""); } buffer.print(">"); size = this.person_.size(); for (int i = 0; i < size; i++) { FtPerson value = (FtPerson) this.person_.get(i); value.makeTextElement(buffer); } buffer.print("</authors>"); }
/** * Makes an XML text representation. * * @param buffer */ public void makeTextElement(PrintWriter buffer) { int size; buffer.print("<header"); if (id_ != null) { buffer.print(" id=\""); buffer.print(URelaxer.escapeAttrQuot(URelaxer.getString(getId()))); buffer.print("\""); } if (xmlLang_ != null) { buffer.print(" xml:lang=\""); buffer.print(URelaxer.escapeAttrQuot(URelaxer.getString(getXmlLang()))); buffer.print("\""); } buffer.print(">"); title_.makeTextElement(buffer); if (subtitle_ != null) { subtitle_.makeTextElement(buffer); } if (version_ != null) { version_.makeTextElement(buffer); } if (type_ != null) { type_.makeTextElement(buffer); } if (authors_ != null) { authors_.makeTextElement(buffer); } size = this.notice_.size(); for (int i = 0; i < size; i++) { FtNotice value = (FtNotice) this.notice_.get(i); value.makeTextElement(buffer); } if (abstract_ != null) { abstract_.makeTextElement(buffer); } buffer.print("</header>"); }
/** * Makes an XML text representation. * * @param buffer */ public void makeTextElement(PrintWriter buffer) { int size; buffer.print("<table"); if (id_ != null) { buffer.print(" id=\""); buffer.print(URelaxer.escapeAttrQuot(URelaxer.getString(getId()))); buffer.print("\""); } if (xmlLang_ != null) { buffer.print(" xml:lang=\""); buffer.print(URelaxer.escapeAttrQuot(URelaxer.getString(getXmlLang()))); buffer.print("\""); } buffer.print(">"); if (caption_ != null) { caption_.makeTextElement(buffer); } size = this.tr_.size(); for (int i = 0; i < size; i++) { FcTr value = (FcTr) this.tr_.get(i); value.makeTextElement(buffer); } buffer.print("</table>"); }
/** * Makes a XML text representation. * * @param buffer */ public void makeTextElement(PrintWriter buffer) { int size; String prefix = rNSContext_.getPrefixByUri("http://www.asahi-net.or.jp/~cs8k-cyu/bulletml"); buffer.print("<"); URelaxer.makeQName(prefix, "direction", buffer); rNSContext_.makeNSMappings(buffer); if (type_ != null) { buffer.print(" "); buffer.print("type"); buffer.print("=\""); buffer.print(URelaxer.escapeAttrQuot(getType())); buffer.print("\""); } buffer.print(">"); buffer.print("</"); URelaxer.makeQName(prefix, "direction", buffer); buffer.print(">"); }