Package org.jivesoftware.smackx.pubsub
Class NodeExtension
java.lang.Object
org.jivesoftware.smackx.pubsub.NodeExtension
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.NamedElement,org.jivesoftware.smack.packet.XmlElement,org.jivesoftware.smack.packet.XmlLangElement
- Direct Known Subclasses:
AffiliationsExtension,ConfigurationEvent,FormNode,GetItemsRequest,Item,ItemsExtension,OptionsExtension,PublishItem,SubscribeExtension,Subscription,SubscriptionsExtension,UnsubscribeExtension
A class which represents a common element within the pubsub defined
schemas. One which has a node as an attribute. This class is
used on its own as well as a base class for many others, since the
node is a central concept to most pubsub functionality.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aNodeExtensionwith an element name specified byPubSubElementType.NodeExtension(PubSubElementType elem, String nodeId) Constructs aNodeExtensionwith an element name specified byPubSubElementTypeand the specified node id. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Constructor Details
-
NodeExtension
Constructs aNodeExtensionwith an element name specified byPubSubElementTypeand the specified node id.- Parameters:
elem- Defines the element name and namespacenodeId- Specifies the id of the node
-
NodeExtension
Constructs aNodeExtensionwith an element name specified byPubSubElementType.- Parameters:
elem- Defines the element name and namespace
-
-
Method Details
-
getNode
Gets the node id.- Returns:
- The node id
-
getElementName
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getPubSubNamespace
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
public final org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace) - Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
addXml
protected void addXml(org.jivesoftware.smack.util.XmlStringBuilder xml) -
toString
-