@Override protected void addExtraAttributes(XmlStringBuilder xml) { xml.optAttribute(ATTR_DSTADDR, dstAddr); xml.optAttribute(ATTR_MODE, mode); xml.attribute(ATTR_SID, streamId); }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); xml.optAttribute("node", node); xml.optAttribute("jid", jid); xml.optAttribute("affiliation", affiliation); xml.closeEmptyElement(); return xml; } }
public XmlStringBuilder toXML() { XmlStringBuilder xml = new XmlStringBuilder(); xml.halfOpenElement("item"); xml.attribute("jid", entityID); xml.optAttribute("name", name); xml.optAttribute("node", node); xml.optAttribute("action", action); xml.closeEmptyElement(); return xml; } }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder builder = new XmlStringBuilder(this); builder.attribute("jid", jid); builder.optAttribute("node", getNode()); builder.optAttribute("subid", id); builder.optAttribute("subscription", state.toString()); builder.closeEmptyElement(); return builder; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); xml.optAttribute("id", id); xml.closeEmptyElement(); return xml; }
/** * Appends a tag that indicates that a blockquote section begins. * * @param style the XHTML style of the blockquote * @return this. */ public XHTMLText appendOpenBlockQuoteTag(String style) { text.halfOpenElement(BLOCKQUOTE); text.optAttribute(STYLE, style); text.rightAngleBracket(); return this; }
@Override public CharSequence toXML(String enclosingNamespace) { XmlStringBuilder sb = new XmlStringBuilder(this); sb.optAttribute(ATTR_CREATOR, creator); sb.optAttribute(ATTR_NAME, name); sb.rightAngleBracket(); sb.element(file); sb.closeElement(this); return sb; }
public XmlStringBuilder toXML() { XmlStringBuilder xml = new XmlStringBuilder(); xml.halfOpenElement("identity"); xml.xmllangAttribute(lang); xml.attribute("category", category); xml.optAttribute("name", name); xml.optAttribute("type", type); xml.closeEmptyElement(); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(); xml.halfOpenElement(getElementName()); xml.attribute("jid", jid); xml.optAttribute("node", getNode()); xml.optAttribute("subid", id); xml.closeEmptyElement(); return xml; } }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(); xml.halfOpenElement(getElementName()); xml.attribute("jid", jid); xml.optAttribute("node", getNode()); xml.optAttribute("subid", id); xml.closeEmptyElement(); 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; }
@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; }
@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; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this) .optAttribute(ATTR_DATE, date) .rightAngleBracket() .element(getDataElement()) .closeElement(this); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); xml.attribute("namespace", getEncryptionNamespace()); xml.optAttribute("name", getName()); xml.closeEmptyElement(); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); xml.attribute("stamp", XmppDateTime.formatXEP0082Date(stamp)); xml.optAttribute("from", from); xml.rightAngleBracket(); xml.optAppend(reason); 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 buf = new XmlStringBuilder(this); buf.optAttribute("datatype", datatype); buf.rightAngleBracket(); appendXML(buf); buf.optAppend(getListRange()); buf.closeElement(this); return buf; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(this); // Add attribute xml.optAttribute("label", getLabel()); xml.rightAngleBracket(); // Add element xml.element("value", getValue()); xml.closeElement(this); return xml; }
@Override public XmlStringBuilder toXML(String enclosingNamespace) { XmlStringBuilder xml = new XmlStringBuilder(); xml.halfOpenElement(getElementName()); xml.attribute("node", getNode()); xml.optAttribute("subid", getSubscriptionId()); xml.optIntAttribute("max_items", getMaxItems()); xml.closeEmptyElement(); return xml; } }