/** * Appends a tag that indicates end of text that is the code for a program. * * @return this. */ public XHTMLText appendCloseCodeTag() { text.closeElement(CODE); return this; }
/** * Appends a tag that indicates that an unordered list section ends. * * @return this. */ public XHTMLText appendCloseUnorderedListTag() { text.closeElement(UL); return this; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); xml.rightAngleBracket(); xml.openElement(reason.asString); xml.openElement(SID); xml.append(sessionId); xml.closeElement(SID); xml.closeElement(reason.asString); xml.closeElement(this); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this).rightAngleBracket(); addCommonXml(xml); xml.closeElement(this); return xml; }
@Override public CharSequence toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(); xml.openElement("always"); for (Jid jid : alwaysJids) { xml.element("jid", jid); } xml.closeElement("always"); return xml; } }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); xml.rightAngleBracket(); xml.optAppend(text); xml.closeElement(this); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); xml.rightAngleBracket(); xml.optAppend(text); xml.closeElement(this); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); xml.attribute("seqnr", Integer.toString(seqNr)); xml.attribute("done", done); xml.rightAngleBracket(); xml.append(nodes); xml.closeElement(this); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); addExtraAttributes(xml); xml.rightAngleBracket(); xml.append(payloads); xml.closeElement(this); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace); xml.rightAngleBracket(); xml.escape(getName()); xml.closeElement(this); return xml; } }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder().halfOpenElement(ELEMENT).xmlnsAttribute( NAMESPACE).rightAngleBracket(); xml.optAppend(data); xml.closeElement(ELEMENT); return xml; }
public CharSequence toXML() { XmlStringBuilder buf = new XmlStringBuilder(); buf.openElement(ELEMENT); // Loop through all the form items and append them to the string buffer for (FormField field : getFields()) { buf.append(field.toXML(null)); } buf.closeElement(ELEMENT); return buf; } }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this).rightAngleBracket(); for (MarkupChildElement child : getChildElements()) { xml.append(child.toXML(null)); } xml.closeElement(this); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder buf = new XmlStringBuilder(this); buf.optAttribute("label", getLabel()); buf.rightAngleBracket(); walkList(buf, getPageLayout()); buf.closeElement(this); return buf; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); xml.rightAngleBracket(); xml.optElement("password", getPassword()); xml.optElement(getHistory()); xml.closeElement(this); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); xml.rightAngleBracket(); xml.optElement(getDelayInformation()); xml.append(forwardedPacket.toXML(NAMESPACE)); xml.closeElement(this); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(); xml.openElement(ELEMENT); xml.halfOpenElement(condition.toString()).xmlnsAttribute(NAMESPACE).closeEmptyElement(); addDescriptiveTextsAndExtensions(xml); xml.closeElement(ELEMENT); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); xml.optAttribute("to", getTo()); xml.optAttribute("from", getFrom()); xml.rightAngleBracket(); xml.optElement("reason", getReason()); xml.closeElement(this); return xml; }
protected void addCommonXml(XmlStringBuilder xml) { for (Jid toJid : (to != null ? to : Collections.<Jid>emptySet())) { xml.halfOpenElement(ELEM_TO).attribute(ATTR_JID, toJid).closeEmptyElement(); } ensureTimestampStringSet(); xml.halfOpenElement(ELEM_TIME).attribute(ATTR_STAMP, timestampString).closeEmptyElement(); xml.openElement(ELEM_PAYLOAD); for (ExtensionElement element : payload.values()) { xml.append(element.toXML(getNamespace())); } xml.closeElement(ELEM_PAYLOAD); }
@Override public CharSequence toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(); xml.halfOpenElement(this); xml.xmlnsAttribute(NAMESPACE); xml.optAttribute("queryid", getQueryId()); xml.optAttribute("id", getId()); xml.rightAngleBracket(); xml.element(getForwarded()); xml.closeElement(this); return xml; }