Class NamespaceBinder.NamespaceSupport

java.lang.Object
org.cyberneko.html.filters.NamespaceBinder.NamespaceSupport
All Implemented Interfaces:
org.apache.xerces.xni.NamespaceContext
Enclosing class:
NamespaceBinder

public static class NamespaceBinder.NamespaceSupport extends Object implements org.apache.xerces.xni.NamespaceContext
This namespace context object implements the old and new XNI NamespaceContext interface methods so that it can be used across all versions of Xerces2.
  • Field Details

    • fTop

      protected int fTop
      Top of the levels list.
    • fLevels

      protected int[] fLevels
      The levels of the entries.
    • fEntries

      protected org.cyberneko.html.filters.NamespaceBinder.NamespaceSupport.Entry[] fEntries
      The entries.
  • Constructor Details

    • NamespaceSupport

      public NamespaceSupport()
      Default constructor.
  • Method Details

    • getURI

      public String getURI(String prefix)
      Get URI.
      Specified by:
      getURI in interface org.apache.xerces.xni.NamespaceContext
    • getDeclaredPrefixCount

      public int getDeclaredPrefixCount()
      Get declared prefix count.
      Specified by:
      getDeclaredPrefixCount in interface org.apache.xerces.xni.NamespaceContext
    • getDeclaredPrefixAt

      public String getDeclaredPrefixAt(int index)
      Get declared prefix at.
      Specified by:
      getDeclaredPrefixAt in interface org.apache.xerces.xni.NamespaceContext
    • getParentContext

      public org.apache.xerces.xni.NamespaceContext getParentContext()
      Get parent context.
    • reset

      public void reset()
      Reset.
      Specified by:
      reset in interface org.apache.xerces.xni.NamespaceContext
    • pushContext

      public void pushContext()
      Push context.
      Specified by:
      pushContext in interface org.apache.xerces.xni.NamespaceContext
    • popContext

      public void popContext()
      Pop context.
      Specified by:
      popContext in interface org.apache.xerces.xni.NamespaceContext
    • declarePrefix

      public boolean declarePrefix(String prefix, String uri)
      Declare prefix.
      Specified by:
      declarePrefix in interface org.apache.xerces.xni.NamespaceContext
    • getPrefix

      public String getPrefix(String uri)
      Get prefix.
      Specified by:
      getPrefix in interface org.apache.xerces.xni.NamespaceContext
    • getAllPrefixes

      public Enumeration getAllPrefixes()
      Get all prefixes.
      Specified by:
      getAllPrefixes in interface org.apache.xerces.xni.NamespaceContext