Class CompactStartElement

  • All Implemented Interfaces:
    javax.xml.stream.events.StartElement, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants, org.codehaus.stax2.evt.XMLEvent2

    public class CompactStartElement
    extends BaseStartElement
    Wstx StartElement implementation used when directly creating events from a stream reader.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.ArrayList<javax.xml.stream.events.Attribute> mAttrList
      Lazily created List that contains Attribute instances contained in this list.
      (package private) ElemAttrs mAttrs
      Container object that has enough information about attributes to be able to implement attribute accessor methods of this class.
      (package private) java.lang.String[] mRawAttrs
      Array needed for accessing actual String components of the attributes
      private static int OFFSET_NS_PREFIX  
      private static int OFFSET_NS_URI  
      private static int OFFSET_VALUE  
      • 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 CompactStartElement​(javax.xml.stream.Location loc, javax.xml.namespace.QName name, BaseNsContext nsCtxt, ElemAttrs attrs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.xml.stream.events.Attribute constructAttr​(java.lang.String[] raw, int rawIndex, boolean isDef)  
      javax.xml.stream.events.Attribute getAttributeByName​(javax.xml.namespace.QName name)  
      java.util.Iterator<javax.xml.stream.events.Attribute> getAttributes()  
      protected void outputNsAndAttr​(java.io.Writer w)  
      protected void outputNsAndAttr​(javax.xml.stream.XMLStreamWriter 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

      • mAttrs

        final ElemAttrs mAttrs
        Container object that has enough information about attributes to be able to implement attribute accessor methods of this class.
      • mRawAttrs

        final java.lang.String[] mRawAttrs
        Array needed for accessing actual String components of the attributes
      • mAttrList

        private java.util.ArrayList<javax.xml.stream.events.Attribute> mAttrList
        Lazily created List that contains Attribute instances contained in this list. Created only if there are at least 2 attributes.
    • Constructor Detail

      • CompactStartElement

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

      • getAttributeByName

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

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

        protected void outputNsAndAttr​(java.io.Writer w)
                                throws java.io.IOException
        Specified by:
        outputNsAndAttr in class BaseStartElement
        Throws:
        java.io.IOException
      • outputNsAndAttr

        protected void outputNsAndAttr​(javax.xml.stream.XMLStreamWriter w)
                                throws javax.xml.stream.XMLStreamException
        Specified by:
        outputNsAndAttr in class BaseStartElement
        Throws:
        javax.xml.stream.XMLStreamException
      • constructAttr

        protected javax.xml.stream.events.Attribute constructAttr​(java.lang.String[] raw,
                                                                  int rawIndex,
                                                                  boolean isDef)