Class DOMStreamReader.Scope

  • Enclosing class:
    DOMStreamReader

    protected static final class DOMStreamReader.Scope
    extends java.lang.Object
    Namespace declarations on one element. Instances are reused.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int getNamespaceCount()  
      (package private) java.lang.String getNamespacePrefix​(int index)  
      (package private) java.lang.String getNamespaceURI​(int index)  
      (package private) java.lang.String getNamespaceURI​(java.lang.String prefix)
      Returns the namespace URI bound by the given prefix.
      (package private) java.lang.String getPrefix​(java.lang.String nsUri)
      Returns the prefix bound to the given URI, or null.
      (package private) void reset()  
      • Methods inherited from class java.lang.Object

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

      • currentNamespaces

        final FinalArrayList<org.w3c.dom.Attr> currentNamespaces
        List of namespace declarations extracted from _namedNodeMap
      • additionalNamespaces

        final FinalArrayList<java.lang.String> additionalNamespaces
        Additional namespace declarations obtained as a result of "fixing" DOM tree, which were not part of the original DOM tree. One entry occupies two spaces (prefix followed by URI.)
    • Method Detail

      • reset

        void reset()
      • getNamespaceCount

        int getNamespaceCount()
      • getNamespacePrefix

        java.lang.String getNamespacePrefix​(int index)
      • getNamespaceURI

        java.lang.String getNamespaceURI​(int index)
      • getPrefix

        java.lang.String getPrefix​(java.lang.String nsUri)
        Returns the prefix bound to the given URI, or null. This method recurses to the parent.
      • getNamespaceURI

        java.lang.String getNamespaceURI​(java.lang.String prefix)
        Returns the namespace URI bound by the given prefix.
        Parameters:
        prefix - Prefix to look up.