Class NodeExtension

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addXml​(org.jivesoftware.smack.util.XmlStringBuilder xml)  
      java.lang.String getElementName()  
      java.lang.String getNamespace()  
      java.lang.String getNode()
      Gets the node id.
      PubSubNamespace getPubSubNamespace()  
      java.lang.String toString()  
      org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)  
      • Methods inherited from class java.lang.Object

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

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

        getLanguage, getQName
    • Constructor Detail

      • NodeExtension

        public NodeExtension​(PubSubElementType elem,
                             java.lang.String nodeId)
        Constructs a NodeExtension with an element name specified by PubSubElementType and the specified node id.
        Parameters:
        elem - Defines the element name and namespace
        nodeId - Specifies the id of the node
      • NodeExtension

        public NodeExtension​(PubSubElementType elem)
        Constructs a NodeExtension with an element name specified by PubSubElementType.
        Parameters:
        elem - Defines the element name and namespace
    • Method Detail

      • getNode

        public java.lang.String getNode()
        Gets the node id.
        Returns:
        The node id
      • getElementName

        public java.lang.String getElementName()
        Specified by:
        getElementName in interface org.jivesoftware.smack.packet.NamedElement
      • getNamespace

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

        public final org.jivesoftware.smack.util.XmlStringBuilder toXML​(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
        Specified by:
        toXML in interface org.jivesoftware.smack.packet.Element
      • addXml

        protected void addXml​(org.jivesoftware.smack.util.XmlStringBuilder xml)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object