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