javax.xml.stream.events
public interface XMLEvent extends XMLStreamConstants
| Method Summary | |
|---|---|
| Characters | asCharacters()
Returns this event as a text event. |
| EndElement | asEndElement()
Returns this event as an end-element event. |
| StartElement | asStartElement()
Returns this event as a start-element event. |
| int | getEventType()
Returns the type of this event. |
| Location | getLocation()
Returns the location of this event. |
| QName | getSchemaType()
Returns schema-related type information about this event, or null if
not available. |
| boolean | isAttribute()
Indicates whether this event is an attribute event. |
| boolean | isCharacters()
Indicates whether this event is a text event. |
| boolean | isEndDocument()
Indicates whether this event is an end-document event. |
| boolean | isEndElement()
Indicates whether this event is an end-element event. |
| boolean | isEntityReference()
Indicates whether this event is an entity reference event. |
| boolean | isNamespace()
Indicates whether this event is a namespace declaration event. |
| boolean | isProcessingInstruction()
Indicates whether this event is a processing instruction event. |
| boolean | isStartDocument()
Indicates whether this event is a start-document event. |
| boolean | isStartElement()
Indicates whether this event is a start-element event. |
| void | writeAsEncodedUnicode(Writer writer)
Writes this event to the specified writer. |