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, waitgetLocation, getName, getSchemaType, hasNamepublic void setType(int type)
public int getType()
XMLEventpublic String getTypeAsString()
XMLEventgetTypeAsString in interface XMLEventpublic boolean isStartElement()
XMLEventisStartElement in interface XMLEventpublic boolean isEndElement()
isEndElement in interface XMLEventpublic boolean isEntityReference()
isEntityReference in interface XMLEventpublic boolean isStartPrefixMapping()
isStartPrefixMapping in interface XMLEventpublic boolean isEndPrefixMapping()
isEndPrefixMapping in interface XMLEventpublic boolean isChangePrefixMapping()
isChangePrefixMapping in interface XMLEventpublic boolean isProcessingInstruction()
isProcessingInstruction in interface XMLEventpublic boolean isCharacterData()
isCharacterData in interface XMLEventpublic boolean isStartDocument()
isStartDocument in interface XMLEventpublic boolean isEndDocument()
isEndDocument in interface XMLEvent