|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.observation.DefaultEventType
public class DefaultEventType
DefaultEventType defines a simple EventType implementation that
only consists of a qualified event name consisting of namespace plus local
name.
| Method Summary | |
|---|---|
static EventType[] |
create(String[] localNames,
Namespace namespace)
Factory method to create an array of new EventType for the
specified localNames and the specified namespace. |
static EventType |
create(String localName,
Namespace namespace)
Factory method to create a new EventType. |
static EventType[] |
createFromXml(Element eventType)
Retrieves one or multiple EventTypes from the 'eventtype'
Xml element. |
String |
getName()
|
Namespace |
getNamespace()
|
Element |
toXml(Document document)
Returns a single empty Xml element where namespace and local name of this event type define the elements name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static EventType create(String localName,
Namespace namespace)
EventType.
localName - namespace -
public static EventType[] create(String[] localNames,
Namespace namespace)
EventType for the
specified localNames and the specified namespace.
localNames - namespace -
public static EventType[] createFromXml(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 String getName()
getName in interface EventTypeEventType.getName()public Namespace getNamespace()
getNamespace in interface EventTypeEventType.getNamespace()public Element toXml(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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||