@Override public XmlStringBuilder toXML() { XmlStringBuilder xml = new XmlStringBuilder(this); xml.rightAngleBracket(); xml.optElement("password", getPassword()); xml.optElement(getHistory()); xml.closeElement(this); return xml; }
@Override protected void childrenElements(XmlStringBuilder builder) { if (nickName != null) { builder.halfOpenElement("member").attribute("nickname", nickName).closeEmptyElement(); } builder.optElement("reason", reason); super.childrenElements(builder); }