Package org.jivesoftware.smackx.pubsub
Class EventElement
java.lang.Object
org.jivesoftware.smackx.pubsub.EventElement
- All Implemented Interfaces:
Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement,EmbeddedPacketExtension
Represents the top level element of a PubSub event extension. All types of PubSub events are
represented by this class. The specific type can be found by
getEventType(). The
embedded event information, which is specific to the event type, can be retrieved by the getEvent()
method.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EventElementReturns the root element name.getEvent()Get the list of embeddedExtensionElementobjects.Returns the root element XML namespace.toXML(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT
The constant String "event".- See Also:
-
NAMESPACE
The constant String "http://jabber.org/protocol/pubsub#event". -
QNAME
-
-
Constructor Details
-
EventElement
-
-
Method Details
-
getEventType
-
getExtensions
Description copied from interface:EmbeddedPacketExtensionGet the list of embeddedExtensionElementobjects.- Specified by:
getExtensionsin interfaceEmbeddedPacketExtension- Returns:
- List of embedded
ExtensionElement
-
getEvent
-
getElementName
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
toXML
-
from
-