com.sun.xml.stream.events
Class NamedEvent

java.lang.Object
  extended by com.sun.xml.stream.events.DummyEvent
      extended by com.sun.xml.stream.events.NamedEvent
All Implemented Interfaces:
javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants

public class NamedEvent
extends DummyEvent

Author:
Neeraj Bajaj, Sun Microsystems

Field Summary
 
Fields inherited from class com.sun.xml.stream.events.DummyEvent
fLocation
 
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
NamedEvent()
           
NamedEvent(javax.xml.namespace.QName qname)
           
NamedEvent(java.lang.String prefix, java.lang.String uri, java.lang.String localpart)
           
 
Method Summary
 javax.xml.namespace.QName getName()
           
 java.lang.String getNamespace()
           
 java.lang.String getPrefix()
           
 java.lang.String nameAsString()
           
 void setName(javax.xml.namespace.QName qname)
           
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, toString, wait, wait, wait
 

Constructor Detail

NamedEvent

public NamedEvent()

NamedEvent

public NamedEvent(javax.xml.namespace.QName qname)

NamedEvent

public NamedEvent(java.lang.String prefix,
                  java.lang.String uri,
                  java.lang.String localpart)
Method Detail

getPrefix

public java.lang.String getPrefix()

getName

public javax.xml.namespace.QName getName()

setName

public void setName(javax.xml.namespace.QName qname)

nameAsString

public java.lang.String nameAsString()

getNamespace

public java.lang.String getNamespace()

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


Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.