CHANGE_PREFIX_MAPPING, CHARACTER_DATA, COMMENT, END_DOCUMENT, END_ELEMENT, END_PREFIX_MAPPING, ENTITY_REFERENCE, NULL_ELEMENT, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT, START_PREFIX_MAPPING, XML_EVENT
Constructor and Description |
---|
XmlEventBase() |
XmlEventBase(int type) |
Modifier and Type | Method and Description |
---|---|
int |
getType()
Get the event type of the current element,
returns an integer so that switch statements
can be written on the result
|
String |
getTypeAsString()
Get the string value of the type name
|
boolean |
isChangePrefixMapping() |
boolean |
isCharacterData() |
boolean |
isEndDocument() |
boolean |
isEndElement() |
boolean |
isEndPrefixMapping() |
boolean |
isEntityReference() |
boolean |
isNull() |
boolean |
isProcessingInstruction() |
boolean |
isSpace() |
boolean |
isStartDocument() |
boolean |
isStartElement()
Method access to the elements type
|
boolean |
isStartPrefixMapping() |
void |
setType(int type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLocation, getName, getSchemaType, hasName
public void setType(int type)
public int getType()
XMLEvent
public String getTypeAsString()
XMLEvent
getTypeAsString
in interface XMLEvent
public boolean isStartElement()
XMLEvent
isStartElement
in interface XMLEvent
public boolean isEndElement()
isEndElement
in interface XMLEvent
public boolean isEntityReference()
isEntityReference
in interface XMLEvent
public boolean isStartPrefixMapping()
isStartPrefixMapping
in interface XMLEvent
public boolean isEndPrefixMapping()
isEndPrefixMapping
in interface XMLEvent
public boolean isChangePrefixMapping()
isChangePrefixMapping
in interface XMLEvent
public boolean isProcessingInstruction()
isProcessingInstruction
in interface XMLEvent
public boolean isCharacterData()
isCharacterData
in interface XMLEvent
public boolean isStartDocument()
isStartDocument
in interface XMLEvent
public boolean isEndDocument()
isEndDocument
in interface XMLEvent