public interface XMLEvent
CharacterData
,
ProcessingInstruction
,
StartElement
,
EndElement
,
CharacterData
,
XMLName
,
StartDocument
Modifier and Type | Field and Description |
---|---|
static int |
CHANGE_PREFIX_MAPPING
A constant which identifies a ChangePrefixMapping
|
static int |
CHARACTER_DATA
A constant which identifies a CharacterData Event
|
static int |
COMMENT
A constant which identifies a Comment
|
static int |
END_DOCUMENT
A constant which identifies an EndDocument
|
static int |
END_ELEMENT
A constant which identifies an EndElement
|
static int |
END_PREFIX_MAPPING
A constant which identifies a EndPrefixMapping
|
static int |
ENTITY_REFERENCE
A constant which identifies an EntityReference
|
static int |
NULL_ELEMENT
A constant which identifies a NullElement
|
static int |
PROCESSING_INSTRUCTION
A constant which identifies a ProcessingInstruction
|
static int |
SPACE
A constant which identifies a Space
|
static int |
START_DOCUMENT
A constant which identifies a StartDocument
|
static int |
START_ELEMENT
A constant which identifies a StartElement
|
static int |
START_PREFIX_MAPPING
A constant which identifies a StartPrefixMapping
|
static int |
XML_EVENT
A constant which identifies an XMLEvent
|
Modifier and Type | Method and Description |
---|---|
Location |
getLocation()
Return the location of this Element
|
XMLName |
getName()
Get the XMLName of the current element
|
XMLName |
getSchemaType()
Get the event type of the current element,
returns an integer so that switch statements
can be written on the result
|
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 |
hasName()
Check if this Element has a 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() |
static final int XML_EVENT
XMLEvent
,
Constant Field Valuesstatic final int START_ELEMENT
StartElement
,
Constant Field Valuesstatic final int END_ELEMENT
EndElement
,
Constant Field Valuesstatic final int PROCESSING_INSTRUCTION
ProcessingInstruction
,
Constant Field Valuesstatic final int CHARACTER_DATA
CharacterData
,
Constant Field Valuesstatic final int COMMENT
Comment
,
Constant Field Valuesstatic final int SPACE
Space
,
Constant Field Valuesstatic final int NULL_ELEMENT
static final int START_DOCUMENT
StartDocument
,
Constant Field Valuesstatic final int END_DOCUMENT
EndDocument
,
Constant Field Valuesstatic final int START_PREFIX_MAPPING
StartPrefixMapping
,
Constant Field Valuesstatic final int END_PREFIX_MAPPING
EndPrefixMapping
,
Constant Field Valuesstatic final int CHANGE_PREFIX_MAPPING
ChangePrefixMapping
,
Constant Field Valuesstatic final int ENTITY_REFERENCE
EntityReference
,
Constant Field Valuesint getType()
XMLName getSchemaType()
String getTypeAsString()
boolean hasName()
Location getLocation()
boolean isStartElement()
boolean isEndElement()
boolean isEntityReference()
boolean isStartPrefixMapping()
boolean isEndPrefixMapping()
boolean isChangePrefixMapping()
boolean isProcessingInstruction()
boolean isCharacterData()
boolean isSpace()
boolean isNull()
boolean isStartDocument()
boolean isEndDocument()