Class BaseStartElement

  • All Implemented Interfaces:
    javax.xml.stream.events.StartElement, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants, org.codehaus.stax2.evt.XMLEvent2
    Direct Known Subclasses:
    CompactStartElement, SimpleStartElement

    abstract class BaseStartElement
    extends org.codehaus.stax2.ri.evt.BaseEventImpl
    implements javax.xml.stream.events.StartElement
    Shared base class of StartElement implementations Wstx uses.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.xml.namespace.QName mName  
      protected BaseNsContext mNsCtxt  
      • Fields inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl

        mLocation
      • 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

      Constructors 
      Modifier Constructor Description
      protected BaseStartElement​(javax.xml.stream.Location loc, javax.xml.namespace.QName name, BaseNsContext nsCtxt)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      javax.xml.stream.events.StartElement asStartElement()  
      boolean equals​(java.lang.Object o)  
      abstract javax.xml.stream.events.Attribute getAttributeByName​(javax.xml.namespace.QName name)  
      abstract java.util.Iterator<javax.xml.stream.events.Attribute> getAttributes()  
      int getEventType()  
      javax.xml.namespace.QName getName()  
      javax.xml.namespace.NamespaceContext getNamespaceContext()  
      java.util.Iterator<javax.xml.stream.events.Namespace> getNamespaces()  
      java.lang.String getNamespaceURI​(java.lang.String prefix)  
      int hashCode()  
      boolean isStartElement()  
      protected abstract void outputNsAndAttr​(java.io.Writer w)  
      protected abstract void outputNsAndAttr​(javax.xml.stream.XMLStreamWriter w)  
      void writeAsEncodedUnicode​(java.io.Writer w)  
      void writeUsing​(org.codehaus.stax2.XMLStreamWriter2 w)  
      • Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl

        addHash, asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface javax.xml.stream.events.XMLEvent

        asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument
    • Field Detail

      • mName

        protected final javax.xml.namespace.QName mName
    • Constructor Detail

      • BaseStartElement

        protected BaseStartElement​(javax.xml.stream.Location loc,
                                   javax.xml.namespace.QName name,
                                   BaseNsContext nsCtxt)
    • Method Detail

      • getAttributeByName

        public abstract javax.xml.stream.events.Attribute getAttributeByName​(javax.xml.namespace.QName name)
        Specified by:
        getAttributeByName in interface javax.xml.stream.events.StartElement
      • getAttributes

        public abstract java.util.Iterator<javax.xml.stream.events.Attribute> getAttributes()
        Specified by:
        getAttributes in interface javax.xml.stream.events.StartElement
      • getName

        public final javax.xml.namespace.QName getName()
        Specified by:
        getName in interface javax.xml.stream.events.StartElement
      • getNamespaces

        public java.util.Iterator<javax.xml.stream.events.Namespace> getNamespaces()
        Specified by:
        getNamespaces in interface javax.xml.stream.events.StartElement
      • getNamespaceContext

        public javax.xml.namespace.NamespaceContext getNamespaceContext()
        Specified by:
        getNamespaceContext in interface javax.xml.stream.events.StartElement
      • getNamespaceURI

        public java.lang.String getNamespaceURI​(java.lang.String prefix)
        Specified by:
        getNamespaceURI in interface javax.xml.stream.events.StartElement
      • asStartElement

        public javax.xml.stream.events.StartElement asStartElement()
        Specified by:
        asStartElement in interface javax.xml.stream.events.XMLEvent
        Overrides:
        asStartElement in class org.codehaus.stax2.ri.evt.BaseEventImpl
      • getEventType

        public int getEventType()
        Specified by:
        getEventType in interface javax.xml.stream.events.XMLEvent
        Specified by:
        getEventType in class org.codehaus.stax2.ri.evt.BaseEventImpl
      • isStartElement

        public boolean isStartElement()
        Specified by:
        isStartElement in interface javax.xml.stream.events.XMLEvent
        Overrides:
        isStartElement in class org.codehaus.stax2.ri.evt.BaseEventImpl
      • writeAsEncodedUnicode

        public void writeAsEncodedUnicode​(java.io.Writer w)
                                   throws javax.xml.stream.XMLStreamException
        Specified by:
        writeAsEncodedUnicode in interface javax.xml.stream.events.XMLEvent
        Specified by:
        writeAsEncodedUnicode in class org.codehaus.stax2.ri.evt.BaseEventImpl
        Throws:
        javax.xml.stream.XMLStreamException
      • writeUsing

        public void writeUsing​(org.codehaus.stax2.XMLStreamWriter2 w)
                        throws javax.xml.stream.XMLStreamException
        Specified by:
        writeUsing in interface org.codehaus.stax2.evt.XMLEvent2
        Specified by:
        writeUsing in class org.codehaus.stax2.ri.evt.BaseEventImpl
        Throws:
        javax.xml.stream.XMLStreamException
      • outputNsAndAttr

        protected abstract void outputNsAndAttr​(java.io.Writer w)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • outputNsAndAttr

        protected abstract void outputNsAndAttr​(javax.xml.stream.XMLStreamWriter w)
                                         throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in class org.codehaus.stax2.ri.evt.BaseEventImpl
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class org.codehaus.stax2.ri.evt.BaseEventImpl