EventType

Enum representing the type of an xml node/event.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

Can this event type be ignored without losing meaning.

Link copied to clipboard

Is this an event for elements that have text content.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun createEvent(reader: XmlReader): XmlEvent

Create an XmlEvent corresponding to the event type. The parameters are taken from the reader. The reader is expected to just have read the event with this type.

Link copied to clipboard
fun valueOf(value: String): EventType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Link copied to clipboard
open fun writeEvent(writer: XmlWriter, textEvent: XmlEvent.TextEvent)

Shortcut to allow writing text events (only for text event types). The reader is expected to just have read the event with this type.

abstract fun writeEvent(writer: XmlWriter, reader: XmlReader)

Read the rest of the event from the reader and write it to the writer. The reader is expected to just have read the event with this type.