Package org.apache.xmlbeans.impl.common
Class XmlEventBase
java.lang.Object
org.apache.xmlbeans.impl.common.XmlEventBase
- All Implemented Interfaces:
XMLEvent
public abstract class XmlEventBase extends Object implements XMLEvent
Abstract base class which implements the type part XMLEvent.
-
Field Summary
Fields inherited from interface org.apache.xmlbeans.xml.stream.XMLEvent
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 Summary
Constructors Constructor Description XmlEventBase()XmlEventBase(int type) -
Method Summary
Modifier and Type Method Description intgetType()Get the event type of the current element, returns an integer so that switch statements can be written on the resultStringgetTypeAsString()Get the string value of the type namebooleanisChangePrefixMapping()booleanisCharacterData()booleanisEndDocument()booleanisEndElement()booleanisEndPrefixMapping()booleanisEntityReference()booleanisNull()booleanisProcessingInstruction()booleanisSpace()booleanisStartDocument()booleanisStartElement()Method access to the elements typebooleanisStartPrefixMapping()voidsetType(int type)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.xmlbeans.xml.stream.XMLEvent
getLocation, getName, getSchemaType, hasName
-
Constructor Details
-
XmlEventBase
public XmlEventBase() -
XmlEventBase
public XmlEventBase(int type)
-
-
Method Details
-
setType
public void setType(int type) -
getType
public int getType()Description copied from interface:XMLEventGet the event type of the current element, returns an integer so that switch statements can be written on the result -
getTypeAsString
Description copied from interface:XMLEventGet the string value of the type name- Specified by:
getTypeAsStringin interfaceXMLEvent
-
isStartElement
public boolean isStartElement()Description copied from interface:XMLEventMethod access to the elements type- Specified by:
isStartElementin interfaceXMLEvent
-
isEndElement
public boolean isEndElement()- Specified by:
isEndElementin interfaceXMLEvent
-
isEntityReference
public boolean isEntityReference()- Specified by:
isEntityReferencein interfaceXMLEvent
-
isStartPrefixMapping
public boolean isStartPrefixMapping()- Specified by:
isStartPrefixMappingin interfaceXMLEvent
-
isEndPrefixMapping
public boolean isEndPrefixMapping()- Specified by:
isEndPrefixMappingin interfaceXMLEvent
-
isChangePrefixMapping
public boolean isChangePrefixMapping()- Specified by:
isChangePrefixMappingin interfaceXMLEvent
-
isProcessingInstruction
public boolean isProcessingInstruction()- Specified by:
isProcessingInstructionin interfaceXMLEvent
-
isCharacterData
public boolean isCharacterData()- Specified by:
isCharacterDatain interfaceXMLEvent
-
isSpace
public boolean isSpace() -
isNull
public boolean isNull() -
isStartDocument
public boolean isStartDocument()- Specified by:
isStartDocumentin interfaceXMLEvent
-
isEndDocument
public boolean isEndDocument()- Specified by:
isEndDocumentin interfaceXMLEvent
-