Package org.apache.xmlbeans.xml.stream
Interface XMLEvent
- All Known Subinterfaces:
ChangePrefixMapping,CharacterData,Comment,EndDocument,EndElement,EndPrefixMapping,EntityReference,ProcessingInstruction,Space,StartDocument,StartElement,StartPrefixMapping
- All Known Implementing Classes:
XmlEventBase
public interface XMLEvent
This is the base element interface for handling markup events.
- Since:
- Weblogic XML Input Stream 1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA constant which identifies a ChangePrefixMappingstatic final intA constant which identifies a CharacterData Eventstatic final intA constant which identifies a Commentstatic final intA constant which identifies an EndDocumentstatic final intA constant which identifies an EndElementstatic final intA constant which identifies a EndPrefixMappingstatic final intA constant which identifies an EntityReferencestatic final intA constant which identifies a NullElementstatic final intA constant which identifies a ProcessingInstructionstatic final intA constant which identifies a Spacestatic final intA constant which identifies a StartDocumentstatic final intA constant which identifies a StartElementstatic final intA constant which identifies a StartPrefixMappingstatic final intA constant which identifies an XMLEvent -
Method Summary
Modifier and TypeMethodDescriptionReturn the location of this ElementgetName()Get the XMLName of the current elementGet the event type of the current element, returns an integer so that switch statements can be written on the resultintgetType()Get the event type of the current element, returns an integer so that switch statements can be written on the resultGet the string value of the type namebooleanhasName()Check if this Element has a namebooleanbooleanbooleanbooleanbooleanbooleanbooleanisNull()booleanbooleanisSpace()booleanbooleanMethod access to the elements typeboolean
-
Field Details
-
XML_EVENT
static final int XML_EVENTA constant which identifies an XMLEvent- See Also:
-
START_ELEMENT
static final int START_ELEMENTA constant which identifies a StartElement- See Also:
-
END_ELEMENT
static final int END_ELEMENTA constant which identifies an EndElement- See Also:
-
PROCESSING_INSTRUCTION
static final int PROCESSING_INSTRUCTIONA constant which identifies a ProcessingInstruction- See Also:
-
CHARACTER_DATA
static final int CHARACTER_DATAA constant which identifies a CharacterData Event- See Also:
-
COMMENT
static final int COMMENTA constant which identifies a Comment- See Also:
-
SPACE
static final int SPACEA constant which identifies a Space- See Also:
-
NULL_ELEMENT
static final int NULL_ELEMENTA constant which identifies a NullElement- See Also:
-
START_DOCUMENT
static final int START_DOCUMENTA constant which identifies a StartDocument- See Also:
-
END_DOCUMENT
static final int END_DOCUMENTA constant which identifies an EndDocument- See Also:
-
START_PREFIX_MAPPING
static final int START_PREFIX_MAPPINGA constant which identifies a StartPrefixMapping- See Also:
-
END_PREFIX_MAPPING
static final int END_PREFIX_MAPPINGA constant which identifies a EndPrefixMapping- See Also:
-
CHANGE_PREFIX_MAPPING
static final int CHANGE_PREFIX_MAPPINGA constant which identifies a ChangePrefixMapping- See Also:
-
ENTITY_REFERENCE
static final int ENTITY_REFERENCEA constant which identifies an EntityReference- See Also:
-
-
Method Details
-
getType
int getType()Get the event type of the current element, returns an integer so that switch statements can be written on the result -
getSchemaType
XMLName getSchemaType()Get the event type of the current element, returns an integer so that switch statements can be written on the result -
getTypeAsString
String getTypeAsString()Get the string value of the type name -
getName
XMLName getName()Get the XMLName of the current element- See Also:
-
hasName
boolean hasName()Check if this Element has a name -
getLocation
Location getLocation()Return the location of this Element -
isStartElement
boolean isStartElement()Method access to the elements type -
isEndElement
boolean isEndElement() -
isEntityReference
boolean isEntityReference() -
isStartPrefixMapping
boolean isStartPrefixMapping() -
isEndPrefixMapping
boolean isEndPrefixMapping() -
isChangePrefixMapping
boolean isChangePrefixMapping() -
isProcessingInstruction
boolean isProcessingInstruction() -
isCharacterData
boolean isCharacterData() -
isSpace
boolean isSpace() -
isNull
boolean isNull() -
isStartDocument
boolean isStartDocument() -
isEndDocument
boolean isEndDocument()
-