Class Element


  • final class Element
    extends java.lang.Object
    Container for information collected regarding a single (start) element instance.

    This class is not exposed outside of the package and is considered part of internal implementation.

    Since:
    4.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int mChildCount
      Count of child elements
      protected java.lang.String mDefaultNsURI
      Default namespace for this element.
      protected java.lang.String mLocalName  
      protected java.lang.String mNamespaceURI
      Namespace this element is in
      protected int mNsOffset
      Offset within namespace array, maintained by InputElementStack that owns this element.
      protected Element mParent
      Parent element, if any; null for root
      protected java.lang.String mPrefix
      Prefix this element has, if any; null if none
    • Constructor Summary

      Constructors 
      Constructor Description
      Element​(Element parent, int nsOffset, java.lang.String prefix, java.lang.String ln)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void relink​(Element next)
      Method called to temporarily "store" this Element for later reuse.
      void reset​(Element parent, int nsOffset, java.lang.String prefix, java.lang.String ln)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mLocalName

        protected java.lang.String mLocalName
      • mPrefix

        protected java.lang.String mPrefix
        Prefix this element has, if any; null if none
      • mNamespaceURI

        protected java.lang.String mNamespaceURI
        Namespace this element is in
      • mDefaultNsURI

        protected java.lang.String mDefaultNsURI
        Default namespace for this element.
      • mNsOffset

        protected int mNsOffset
        Offset within namespace array, maintained by InputElementStack that owns this element.
      • mParent

        protected Element mParent
        Parent element, if any; null for root
      • mChildCount

        protected int mChildCount
        Count of child elements
    • Constructor Detail

      • Element

        public Element​(Element parent,
                       int nsOffset,
                       java.lang.String prefix,
                       java.lang.String ln)
    • Method Detail

      • reset

        public void reset​(Element parent,
                          int nsOffset,
                          java.lang.String prefix,
                          java.lang.String ln)
      • relink

        public void relink​(Element next)
        Method called to temporarily "store" this Element for later reuse.