Package org.jivesoftware.smackx.pubsub
Class NodeExtension
java.lang.Object
org.jivesoftware.smackx.pubsub.NodeExtension
- All Implemented Interfaces:
Element,NamedElement,XmlElement,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
Modifier and TypeMethodDescriptionprotected voidaddXml(XmlStringBuilder xml) Returns the root element name.final StringReturns the root element XML namespace.getNode()Gets the node id.toString()final XmlStringBuildertoXML(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getPubSubNamespace
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
toXML
-
addXml
-
toString
-