com.sun.xml.stream.events
Class EndElementEvent
java.lang.Object
com.sun.xml.stream.events.DummyEvent
com.sun.xml.stream.events.EndElementEvent
- All Implemented Interfaces:
- javax.xml.stream.events.EndElement, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
public class EndElementEvent
- extends DummyEvent
- implements javax.xml.stream.events.EndElement
Implementation of EndElement event.
- Author:
- Neeraj Bajaj Sun Microsystems,Inc., K.Venugopal Sun Microsystems,Inc.
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 |
Method Summary |
javax.xml.namespace.QName |
getName()
|
java.util.Iterator |
getNamespaces()
Returns an Iterator of namespaces that have gone out
of scope. |
protected void |
init()
|
java.lang.String |
nameAsString()
|
void |
setName(javax.xml.namespace.QName qname)
|
java.lang.String |
toString()
|
protected void |
writeAsEncodedUnicodeEx(java.io.Writer writer)
Helper method in order to expose IOException. |
Methods inherited from class com.sun.xml.stream.events.DummyEvent |
asCharacters, asEndElement, asStartElement, charEncode, getEventType, getLocation, getSchemaType, isAttribute, isCharacterData, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, writeAsEncodedUnicode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.stream.events.XMLEvent |
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode |
EndElementEvent
public EndElementEvent()
EndElementEvent
public EndElementEvent(java.lang.String prefix,
java.lang.String uri,
java.lang.String localpart)
EndElementEvent
public EndElementEvent(javax.xml.namespace.QName qname)
init
protected void init()
getName
public javax.xml.namespace.QName getName()
- Specified by:
getName
in interface javax.xml.stream.events.EndElement
setName
public void setName(javax.xml.namespace.QName qname)
writeAsEncodedUnicodeEx
protected void writeAsEncodedUnicodeEx(java.io.Writer writer)
throws java.io.IOException
- Description copied from class:
DummyEvent
- Helper method in order to expose IOException.
- Specified by:
writeAsEncodedUnicodeEx
in class DummyEvent
- Parameters:
writer
- The writer that will output the data
- Throws:
java.io.IOException
- if there is an IO error
getNamespaces
public java.util.Iterator getNamespaces()
- Returns an Iterator of namespaces that have gone out
of scope. Returns an empty iterator if no namespaces have gone
out of scope.
- Specified by:
getNamespaces
in interface javax.xml.stream.events.EndElement
- Returns:
- an Iterator over Namespace interfaces, or an
empty iterator
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
nameAsString
public java.lang.String nameAsString()
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.