Java 类org.jivesoftware.smackx.pubsub.util.XmlUtils 实例源码

项目:EIM    文件:OptionsExtension.java   
@Override
public String toXML()
{
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}
项目:EIM    文件:UnsubscribeExtension.java   
@Override
public String toXML()
{
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}
项目:androidPN-client.    文件:OptionsExtension.java   
@Override
public String toXML()
{
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}
项目:androidPN-client.    文件:UnsubscribeExtension.java   
@Override
public String toXML()
{
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}
项目:java-bells    文件:OptionsExtension.java   
@Override
public String toXML()
{
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}
项目:java-bells    文件:UnsubscribeExtension.java   
@Override
public String toXML()
{
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}
项目:telegraph    文件:OptionsExtension.java   
@Override
public String toXML()
{
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}
项目:telegraph    文件:UnsubscribeExtension.java   
@Override
public String toXML()
{
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}
项目:NewCommunication-Android    文件:OptionsExtension.java   
@Override
public String toXML()
{
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}
项目:NewCommunication-Android    文件:UnsubscribeExtension.java   
@Override
public String toXML()
{
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}
项目:xmppsupport_v2    文件:OptionsExtension.java   
@Override
public String toXML() {
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}
项目:xmppsupport_v2    文件:UnsubscribeExtension.java   
@Override
public String toXML() {
    StringBuilder builder = new StringBuilder("<");
    builder.append(getElementName());
    XmlUtils.appendAttribute(builder, "jid", jid);

    if (getNode() != null)
        XmlUtils.appendAttribute(builder, "node", getNode());

    if (id != null)
        XmlUtils.appendAttribute(builder, "subid", id);

    builder.append("/>");
    return builder.toString();
}