public interface EventNode
extends java.lang.Iterable<org.simpleframework.xml.stream.Attribute>
EventNode object is used to represent an event
that has been extracted from the XML document. Events provide a
framework neutral way to represent a token from the source XML.
It provides the name and value of the event, if applicable, and
also provides namespace information. Some nodes will have
associated Attribute objects, typically these will
be the XML element events. Also, if available, the event will
provide the line number the event was encountered in the XML.EventReader| Modifier and Type | Method and Description |
|---|---|
int |
getLine()
This is used to provide the line number the XML event was
encountered at within the XML document.
|
java.lang.String |
getName()
This provides the name of the event.
|
java.lang.String |
getPrefix()
This is used to acquire the namespace prefix associated with
this node.
|
java.lang.String |
getReference()
This is used to acquire the namespace reference that this
node is in.
|
java.lang.Object |
getSource()
This is used to return the source of the event.
|
java.lang.String |
getValue()
This returns the value of the event.
|
boolean |
isEnd()
This is true when the node represents an element close.
|
boolean |
isStart()
This is true when the node represents a new element.
|
boolean |
isText()
This is true when the node represents a text token.
|
int getLine()
java.lang.String getName()
java.lang.String getValue()
java.lang.String getReference()
java.lang.String getPrefix()
java.lang.Object getSource()
boolean isEnd()
boolean isStart()
boolean isText()