Package org.cyberneko.html.filters
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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.cyberneko.html.filters.NamespaceBinder.NamespaceSupport.Entry[]The entries.protected int[]The levels of the entries.protected intTop of the levels list.Fields inherited from interface org.apache.xerces.xni.NamespaceContext
XML_URI, XMLNS_URI -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandeclarePrefix(String prefix, String uri) Declare prefix.Get all prefixes.getDeclaredPrefixAt(int index) Get declared prefix at.intGet declared prefix count.org.apache.xerces.xni.NamespaceContextGet parent context.Get prefix.Get URI.voidPop context.voidPush context.voidreset()Reset.
-
Field Details
-
fTop
protected int fTopTop of the levels list. -
fLevels
protected int[] fLevelsThe levels of the entries. -
fEntries
protected org.cyberneko.html.filters.NamespaceBinder.NamespaceSupport.Entry[] fEntriesThe entries.
-
-
Constructor Details
-
NamespaceSupport
public NamespaceSupport()Default constructor.
-
-
Method Details
-
getURI
Get URI.- Specified by:
getURIin interfaceorg.apache.xerces.xni.NamespaceContext
-
getDeclaredPrefixCount
public int getDeclaredPrefixCount()Get declared prefix count.- Specified by:
getDeclaredPrefixCountin interfaceorg.apache.xerces.xni.NamespaceContext
-
getDeclaredPrefixAt
Get declared prefix at.- Specified by:
getDeclaredPrefixAtin interfaceorg.apache.xerces.xni.NamespaceContext
-
getParentContext
public org.apache.xerces.xni.NamespaceContext getParentContext()Get parent context. -
reset
public void reset()Reset.- Specified by:
resetin interfaceorg.apache.xerces.xni.NamespaceContext
-
pushContext
public void pushContext()Push context.- Specified by:
pushContextin interfaceorg.apache.xerces.xni.NamespaceContext
-
popContext
public void popContext()Pop context.- Specified by:
popContextin interfaceorg.apache.xerces.xni.NamespaceContext
-
declarePrefix
Declare prefix.- Specified by:
declarePrefixin interfaceorg.apache.xerces.xni.NamespaceContext
-
getPrefix
Get prefix.- Specified by:
getPrefixin interfaceorg.apache.xerces.xni.NamespaceContext
-
getAllPrefixes
Get all prefixes.- Specified by:
getAllPrefixesin interfaceorg.apache.xerces.xni.NamespaceContext
-