Examples of endInnerElement()


Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

        if (privateDataXML == null) {
            stanzaBuilder.startInnerElement(x.getName(), x.getNamespaceURI());
            for (Attribute a : x.getAttributes()) {
                stanzaBuilder.addAttribute(a);
            }
            stanzaBuilder.endInnerElement();
        } else {
            stanzaBuilder.addText(privateDataXML);
        }
        return stanzaBuilder.build();
    }
View Full Code Here

Examples of org.apache.vysper.xmpp.stanza.StanzaBuilder.endInnerElement()

        if (notes != null && notes.size() > 0) {
            for (Note note : notes) {
                iqStanza.startInnerElement("note");
                iqStanza.addAttribute("type", note.getType().name());
                if (note.getText() != null) iqStanza.addText(note.getText());
                iqStanza.endInnerElement();
            }
        }
        if (isNextAllowed || isPrevAllowed) {
            iqStanza.startInnerElement("action");
            if (isPrevAllowed) iqStanza.startInnerElement("prev").endInnerElement();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.