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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EventElement
Returns the root element name.getEvent()
Get the list of embeddedExtensionElement
objects.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, wait
Methods 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:EmbeddedPacketExtension
Get the list of embeddedExtensionElement
objects.- Specified by:
getExtensions
in interfaceEmbeddedPacketExtension
- Returns:
- List of embedded
ExtensionElement
-
getEvent
-
getElementName
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
toXML
-
from
-