com.caucho.xml.stream.events
Class XMLEventImpl

java.lang.Object
  extended by com.caucho.xml.stream.events.XMLEventImpl
All Implemented Interfaces:
XMLEvent, XMLStreamConstants
Direct Known Subclasses:
AttributeImpl, CharactersImpl, CommentImpl, DTDImpl, EndDocumentImpl, EndElementImpl, EntityDeclarationImpl, EntityReferenceImpl, NotationDeclarationImpl, ProcessingInstructionImpl, StartDocumentImpl, StartElementImpl

public abstract class XMLEventImpl
extends java.lang.Object
implements XMLEvent


Field Summary
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Constructor Summary
XMLEventImpl()
           
 
Method Summary
 Characters asCharacters()
           
 EndElement asEndElement()
           
 StartElement asStartElement()
           
abstract  int getEventType()
           
 Location getLocation()
           
 javax.xml.namespace.QName getSchemaType()
           
 boolean isAttribute()
           
 boolean isCharacters()
           
 boolean isEndDocument()
           
 boolean isEndElement()
           
 boolean isEntityReference()
           
 boolean isNamespace()
           
 boolean isProcessingInstruction()
           
 boolean isStartDocument()
           
 boolean isStartElement()
           
abstract  void writeAsEncodedUnicode(java.io.Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLEventImpl

public XMLEventImpl()
Method Detail

asCharacters

public Characters asCharacters()
Specified by:
asCharacters in interface XMLEvent

asEndElement

public EndElement asEndElement()
Specified by:
asEndElement in interface XMLEvent

asStartElement

public StartElement asStartElement()
Specified by:
asStartElement in interface XMLEvent

getEventType

public abstract int getEventType()
Specified by:
getEventType in interface XMLEvent

getLocation

public Location getLocation()
Specified by:
getLocation in interface XMLEvent

getSchemaType

public javax.xml.namespace.QName getSchemaType()
Specified by:
getSchemaType in interface XMLEvent

isAttribute

public boolean isAttribute()
Specified by:
isAttribute in interface XMLEvent

isCharacters

public boolean isCharacters()
Specified by:
isCharacters in interface XMLEvent

isEndDocument

public boolean isEndDocument()
Specified by:
isEndDocument in interface XMLEvent

isEndElement

public boolean isEndElement()
Specified by:
isEndElement in interface XMLEvent

isEntityReference

public boolean isEntityReference()
Specified by:
isEntityReference in interface XMLEvent

isNamespace

public boolean isNamespace()
Specified by:
isNamespace in interface XMLEvent

isProcessingInstruction

public boolean isProcessingInstruction()
Specified by:
isProcessingInstruction in interface XMLEvent

isStartDocument

public boolean isStartDocument()
Specified by:
isStartDocument in interface XMLEvent

isStartElement

public boolean isStartElement()
Specified by:
isStartElement in interface XMLEvent

writeAsEncodedUnicode

public abstract void writeAsEncodedUnicode(java.io.Writer writer)
                                    throws XMLStreamException
Specified by:
writeAsEncodedUnicode in interface XMLEvent
Throws:
XMLStreamException