public class EventElement extends Object implements EmbeddedPacketExtension
getEventType()
. The
embedded event information, which is specific to the event type, can be retrieved by the getEvent()
method.Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT
The constant String "event".
|
static String |
NAMESPACE
The constant String "http://jabber.org/protocol/pubsub#event".
|
Constructor and Description |
---|
EventElement(EventElementType eventType,
NodeExtension eventExt) |
Modifier and Type | Method and Description |
---|---|
static EventElement |
from(Stanza stanza) |
String |
getElementName()
Returns the root element name.
|
NodeExtension |
getEvent() |
EventElementType |
getEventType() |
List<ExtensionElement> |
getExtensions()
Get the list of embedded
ExtensionElement objects. |
String |
getNamespace()
Returns the root element XML namespace.
|
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String ELEMENT
public EventElement(EventElementType eventType, NodeExtension eventExt)
public EventElementType getEventType()
public List<ExtensionElement> getExtensions()
EmbeddedPacketExtension
ExtensionElement
objects.getExtensions
in interface EmbeddedPacketExtension
ExtensionElement
public NodeExtension getEvent()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public XmlStringBuilder toXML(String enclosingNamespace)
Element
public static EventElement from(Stanza stanza)