|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLEvent
This is the base element interface for handling markup events.
CharacterData
,
ProcessingInstruction
,
StartElement
,
EndElement
,
CharacterData
,
XMLName
,
StartDocument
Field Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
java.lang.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()
|
Field Detail |
---|
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 ValuesMethod Detail |
---|
int getType()
XMLName getSchemaType()
java.lang.String getTypeAsString()
XMLName getName()
XMLName
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |