public class DefaultEventType extends java.lang.Object implements EventType
DefaultEventType defines a simple EventType implementation that
only consists of a qualified event name consisting of namespace plus local
name.| Modifier and Type | Method and Description |
|---|---|
static EventType[] |
create(java.lang.String[] localNames,
Namespace namespace)
Factory method to create an array of new
EventType for the
specified localNames and the specified namespace. |
static EventType |
create(java.lang.String localName,
Namespace namespace)
Factory method to create a new
EventType. |
static EventType[] |
createFromXml(org.w3c.dom.Element eventType)
Retrieves one or multiple
EventTypes from the 'eventtype'
Xml element. |
java.lang.String |
getName() |
Namespace |
getNamespace() |
org.w3c.dom.Element |
toXml(org.w3c.dom.Document document)
Returns a single empty Xml element where namespace and local name of this
event type define the elements name.
|
public static EventType create(java.lang.String localName, Namespace namespace)
EventType.localName - namespace - public static EventType[] create(java.lang.String[] localNames, Namespace namespace)
EventType for the
specified localNames and the specified namespace.localNames - namespace - public static EventType[] createFromXml(org.w3c.dom.Element eventType)
EventTypes from the 'eventtype'
Xml element. While a subscription may register multiple types (thus
the 'eventtype' contains multiple child elements), a single event may only
refer to one single type.eventType - public java.lang.String getName()
getName in interface EventTypeEventType.getName()public Namespace getNamespace()
getNamespace in interface EventTypeEventType.getNamespace()public org.w3c.dom.Element toXml(org.w3c.dom.Document document)
EventType.create("someevent", Namespace.getNamespace("F", "http://www.foo.bar/eventtypes"));
returns the following element upon call of toXml:
<F:someevent xmlns:F="http://www.foo.bar/eventtypes" />
toXml in interface XmlSerializabledocument - to be used as factory.XmlSerializable.toXml(Document)"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"