com.ctc.wstx.evt
Class WEvent
java.lang.Object
com.ctc.wstx.evt.WEvent
- All Implemented Interfaces:
- javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants, XMLEvent2
- Direct Known Subclasses:
- CompactStartElement, SimpleStartElement, WAttribute, WCharacters, WComment, WDTD, WEndDocument, WEndElement, WEntityDeclaration, WEntityReference, WNotationDeclaration, WProcInstr, WStartDocument
public abstract class WEvent
- extends java.lang.Object
- implements XMLEvent2
|
Field Summary |
protected javax.xml.stream.Location |
mLocation
Location where token started; exact definition may depends
on event type. |
| 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 |
protected |
WEvent(javax.xml.stream.Location loc)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
mLocation
protected final javax.xml.stream.Location mLocation
- Location where token started; exact definition may depends
on event type.
WEvent
protected WEvent(javax.xml.stream.Location loc)
asCharacters
public javax.xml.stream.events.Characters asCharacters()
- Specified by:
asCharacters in interface javax.xml.stream.events.XMLEvent
asEndElement
public javax.xml.stream.events.EndElement asEndElement()
- Specified by:
asEndElement in interface javax.xml.stream.events.XMLEvent
asStartElement
public javax.xml.stream.events.StartElement asStartElement()
- Specified by:
asStartElement in interface javax.xml.stream.events.XMLEvent
getEventType
public abstract int getEventType()
- Specified by:
getEventType in interface javax.xml.stream.events.XMLEvent
getLocation
public javax.xml.stream.Location getLocation()
- Specified by:
getLocation in interface javax.xml.stream.events.XMLEvent
getSchemaType
public javax.xml.namespace.QName getSchemaType()
- Specified by:
getSchemaType in interface javax.xml.stream.events.XMLEvent
isAttribute
public boolean isAttribute()
- Specified by:
isAttribute in interface javax.xml.stream.events.XMLEvent
isCharacters
public boolean isCharacters()
- Specified by:
isCharacters in interface javax.xml.stream.events.XMLEvent
isEndDocument
public boolean isEndDocument()
- Specified by:
isEndDocument in interface javax.xml.stream.events.XMLEvent
isEndElement
public boolean isEndElement()
- Specified by:
isEndElement in interface javax.xml.stream.events.XMLEvent
isEntityReference
public boolean isEntityReference()
- Specified by:
isEntityReference in interface javax.xml.stream.events.XMLEvent
isNamespace
public boolean isNamespace()
- Specified by:
isNamespace in interface javax.xml.stream.events.XMLEvent
isProcessingInstruction
public boolean isProcessingInstruction()
- Specified by:
isProcessingInstruction in interface javax.xml.stream.events.XMLEvent
isStartDocument
public boolean isStartDocument()
- Specified by:
isStartDocument in interface javax.xml.stream.events.XMLEvent
isStartElement
public boolean isStartElement()
- Specified by:
isStartElement in interface javax.xml.stream.events.XMLEvent
writeAsEncodedUnicode
public abstract void writeAsEncodedUnicode(java.io.Writer w)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeAsEncodedUnicode in interface javax.xml.stream.events.XMLEvent
- Throws:
javax.xml.stream.XMLStreamException
writeUsing
public abstract void writeUsing(javax.xml.stream.XMLStreamWriter w)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeUsing in interface XMLEvent2
- Throws:
javax.xml.stream.XMLStreamException
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
throwFromIOE
protected void throwFromIOE(java.io.IOException ioe)
throws WstxException
- Throws:
WstxException