com.caucho.xml.stream.events
Class StartElementImpl

java.lang.Object
  extended by com.caucho.xml.stream.events.XMLEventImpl
      extended by com.caucho.xml.stream.events.StartElementImpl
All Implemented Interfaces:
StartElement, XMLEvent, XMLStreamConstants

public class StartElementImpl
extends XMLEventImpl
implements StartElement


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
StartElementImpl(javax.xml.namespace.QName name, java.util.HashMap<javax.xml.namespace.QName,Attribute> attributes, java.util.HashMap<java.lang.String,Namespace> namespaces, javax.xml.namespace.NamespaceContext namespaceContext)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Attribute getAttributeByName(javax.xml.namespace.QName name)
           
 java.util.Iterator getAttributes()
           
 int getEventType()
           
 javax.xml.namespace.QName getName()
           
 javax.xml.namespace.NamespaceContext getNamespaceContext()
           
 java.util.Iterator getNamespaces()
           
 java.lang.String getNamespaceURI(java.lang.String prefix)
           
 java.lang.String toString()
           
 void writeAsEncodedUnicode(java.io.Writer writer)
           
 
Methods inherited from class com.caucho.xml.stream.events.XMLEventImpl
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
 

Constructor Detail

StartElementImpl

public StartElementImpl(javax.xml.namespace.QName name,
                        java.util.HashMap<javax.xml.namespace.QName,Attribute> attributes,
                        java.util.HashMap<java.lang.String,Namespace> namespaces,
                        javax.xml.namespace.NamespaceContext namespaceContext)
Method Detail

getAttributeByName

public Attribute getAttributeByName(javax.xml.namespace.QName name)
Specified by:
getAttributeByName in interface StartElement

getAttributes

public java.util.Iterator getAttributes()
Specified by:
getAttributes in interface StartElement

getName

public javax.xml.namespace.QName getName()
Specified by:
getName in interface StartElement

getNamespaceContext

public javax.xml.namespace.NamespaceContext getNamespaceContext()
Specified by:
getNamespaceContext in interface StartElement

getNamespaces

public java.util.Iterator getNamespaces()
Specified by:
getNamespaces in interface StartElement

getNamespaceURI

public java.lang.String getNamespaceURI(java.lang.String prefix)
Specified by:
getNamespaceURI in interface StartElement

getEventType

public int getEventType()
Specified by:
getEventType in interface XMLEvent
Specified by:
getEventType in class XMLEventImpl

writeAsEncodedUnicode

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object