Class SetData

  • All Implemented Interfaces:
    org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.FullyQualifiedElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlLangElement
    Direct Known Subclasses:
    SetBoolData, SetDoubleData, SetIntData, SetLongData

    public abstract class SetData
    extends java.lang.Object
    implements org.jivesoftware.smack.packet.ExtensionElement
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SetData.Type  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SetData​(java.lang.String name, SetData.Type type, java.lang.String value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getElementName()
      Returns the root element name.
      java.lang.String getName()  
      java.lang.String getNamespace()  
      SetData.Type getType()  
      java.lang.String getValue()  
      org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
      Returns the XML representation of this Element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.jivesoftware.smack.packet.Element

        toXML, toXML
      • Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement

        getLanguage, getQName
    • Constructor Detail

      • SetData

        protected SetData​(java.lang.String name,
                          SetData.Type type,
                          java.lang.String value)
    • Method Detail

      • getName

        public final java.lang.String getName()
      • getValue

        public final java.lang.String getValue()
      • getElementName

        public final java.lang.String getElementName()
        Returns the root element name.
        Specified by:
        getElementName in interface org.jivesoftware.smack.packet.NamedElement
        Returns:
        the element name.
      • getNamespace

        public final java.lang.String getNamespace()
        Specified by:
        getNamespace in interface org.jivesoftware.smack.packet.FullyQualifiedElement
      • toXML

        public final org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
        Returns the XML representation of this Element.
        Specified by:
        toXML in interface org.jivesoftware.smack.packet.Element
        Returns:
        the stanza extension as XML.