Class DOMStreamReader.Scope

java.lang.Object
org.jvnet.staxex.util.DOMStreamReader.Scope
Enclosing class:
DOMStreamReader

protected static final class DOMStreamReader.Scope extends Object
Namespace declarations on one element. Instances are reused.
  • Field Details

    • parent

      final DOMStreamReader.Scope parent
      Scope for the parent element.
    • currentNamespaces

      final FinalArrayList<Attr> currentNamespaces
      List of namespace declarations extracted from _namedNodeMap
    • additionalNamespaces

      final FinalArrayList<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.)
  • Constructor Details

  • Method Details

    • reset

      void reset()
    • getNamespaceCount

      int getNamespaceCount()
    • getNamespacePrefix

      String getNamespacePrefix(int index)
    • getNamespaceURI

      String getNamespaceURI(int index)
    • getPrefix

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

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