Class DefaultEventType
java.lang.Object
org.apache.jackrabbit.webdav.observation.DefaultEventType
- All Implemented Interfaces:
EventType,XmlSerializable
DefaultEventType defines a simple EventType implementation that
only consists of a qualified event name consisting of namespace plus local
name.-
Method Summary
Modifier and TypeMethodDescriptionstatic EventType[]Factory method to create an array of newEventTypefor the specified localNames and the specified namespace.static EventTypeFactory method to create a newEventType.static EventType[]createFromXml(Element eventType) Retrieves one or multipleEventTypes from the 'eventtype' Xml element.getName()Returns a single empty Xml element where namespace and local name of this event type define the elements name.
-
Method Details
-
create
Factory method to create a newEventType.- Parameters:
localName-namespace-- Returns:
-
create
Factory method to create an array of newEventTypefor the specified localNames and the specified namespace.- Parameters:
localNames-namespace-- Returns:
- An array of event types.
-
createFromXml
Retrieves one or multipleEventTypes 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.- Parameters:
eventType-- Returns:
-
getName
-
getNamespace
- Specified by:
getNamespacein interfaceEventType- See Also:
-
toXml
Returns a single empty Xml element where namespace and local name of this event type define the elements name.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" />- Specified by:
toXmlin interfaceXmlSerializable- Parameters:
document- to be used as factory.- Returns:
- a w3c element representing this object
- See Also:
-