Java Code Examples for org.jivesoftware.smack.util.XmlStringBuilder#optTextChild()

The following examples show how to use org.jivesoftware.smack.util.XmlStringBuilder#optTextChild() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DelayInformation.java    From Smack with Apache License 2.0 5 votes vote down vote up
@Override
public XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) {
    XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
    xml.attribute("stamp", XmppDateTime.formatXEP0082Date(stamp));
    xml.optAttribute("from", from);
    xml.optTextChild(reason, this);
    return xml;
}
 
Example 2
Source File: AbstractHttpOverXmpp.java    From Smack with Apache License 2.0 4 votes vote down vote up
@Override
public XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) {
    XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
    xml.optTextChild(text, this);
    return xml;
}
 
Example 3
Source File: AbstractHttpOverXmpp.java    From Smack with Apache License 2.0 4 votes vote down vote up
@Override
public XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) {
    XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
    xml.optTextChild(text, this);
    return xml;
}
 
Example 4
Source File: AbstractHttpOverXmpp.java    From Smack with Apache License 2.0 4 votes vote down vote up
@Override
public XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) {
    XmlStringBuilder xml = new XmlStringBuilder(this, enclosingNamespace);
    xml.optTextChild(text, this);
    return xml;
}
 
Example 5
Source File: SaslNonza.java    From Smack with Apache License 2.0 4 votes vote down vote up
@Override
public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment) {
    XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment);
    xml.optTextChild(data, this);
    return xml;
}
 
Example 6
Source File: SaslNonza.java    From Smack with Apache License 2.0 4 votes vote down vote up
@Override
public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment) {
    XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment);
    xml.optTextChild(authenticationText, this);
    return xml;
}
 
Example 7
Source File: SaslNonza.java    From Smack with Apache License 2.0 4 votes vote down vote up
@Override
public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment) {
    XmlStringBuilder xml = new XmlStringBuilder(this, xmlEnvironment);
    xml.optTextChild(data, this);
    return xml;
}