public class TestXmlEvent extends Object implements XmlEvent<TestXmlEvent,TestXmlEvent.TestXmlEventType,SourceType>
Modifier and Type | Class and Description |
---|---|
protected static class |
TestXmlEvent.DataXmlEvent
A subclass of
TestXmlEvent for carrying data. |
protected static class |
TestXmlEvent.ErrorXmlEvent
A subclass of
TestXmlEvent for carrying errors. |
protected static class |
TestXmlEvent.ReceiverXmlVerifier
An instantiation of
AbstractTestVerifier.AbstractReceiverVerifier . |
protected static class |
TestXmlEvent.SenderXmlVerifier
An instantiation of
AbstractTestVerifier.AbstractSenderVerifier . |
protected static class |
TestXmlEvent.SequenceXmlEvent
A subclass of
TestXmlEvent for holding sequence numbers. |
static class |
TestXmlEvent.TestXmlEventType
An enumeration of
TestXmlEvent types. |
Modifier | Constructor and Description |
---|---|
protected |
TestXmlEvent(TestXmlEvent.TestXmlEventType type,
Source<TestXmlEvent,SourceType> source)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
getContents(Node contentNode)
Transfers the contents of this event into the given DOM
Node . |
Source<TestXmlEvent,SourceType> |
getSource()
Gets the
Source from which this event originated. |
TestXmlEvent.TestXmlEventType |
getType()
Gets the
Event type. |
static TestXmlEvent |
parse(Element rootElement,
Source<TestXmlEvent,SourceType> source)
Parses a
TestXmlEvent from the given root DOM Element . |
Element |
toDom()
Transforms this event into an XML DOM
Element . |
protected TestXmlEvent(TestXmlEvent.TestXmlEventType type, Source<TestXmlEvent,SourceType> source)
protected void getContents(Node contentNode)
Node
.public Element toDom()
XmlEvent
Element
.toDom
in interface XmlEvent<TestXmlEvent,TestXmlEvent.TestXmlEventType,SourceType>
public Source<TestXmlEvent,SourceType> getSource()
Event
Source
from which this event originated.getSource
in interface Event<TestXmlEvent,TestXmlEvent.TestXmlEventType,SourceType>
public TestXmlEvent.TestXmlEventType getType()
Event
Event
type.getType
in interface EnumType<TestXmlEvent.TestXmlEventType>
getType
in interface Event<TestXmlEvent,TestXmlEvent.TestXmlEventType,SourceType>
public static final TestXmlEvent parse(Element rootElement, Source<TestXmlEvent,SourceType> source)
TestXmlEvent
from the given root DOM Element
.