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 int
Top of the levels list.Fields inherited from interface org.apache.xerces.xni.NamespaceContext
XML_URI, XMLNS_URI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
declarePrefix
(String prefix, String uri) Declare prefix.Get all prefixes.getDeclaredPrefixAt
(int index) Get declared prefix at.int
Get declared prefix count.org.apache.xerces.xni.NamespaceContext
Get parent context.Get prefix.Get URI.void
Pop context.void
Push context.void
reset()
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:
getURI
in interfaceorg.apache.xerces.xni.NamespaceContext
-
getDeclaredPrefixCount
public int getDeclaredPrefixCount()Get declared prefix count.- Specified by:
getDeclaredPrefixCount
in interfaceorg.apache.xerces.xni.NamespaceContext
-
getDeclaredPrefixAt
Get declared prefix at.- Specified by:
getDeclaredPrefixAt
in interfaceorg.apache.xerces.xni.NamespaceContext
-
getParentContext
public org.apache.xerces.xni.NamespaceContext getParentContext()Get parent context. -
reset
public void reset()Reset.- Specified by:
reset
in interfaceorg.apache.xerces.xni.NamespaceContext
-
pushContext
public void pushContext()Push context.- Specified by:
pushContext
in interfaceorg.apache.xerces.xni.NamespaceContext
-
popContext
public void popContext()Pop context.- Specified by:
popContext
in interfaceorg.apache.xerces.xni.NamespaceContext
-
declarePrefix
Declare prefix.- Specified by:
declarePrefix
in interfaceorg.apache.xerces.xni.NamespaceContext
-
getPrefix
Get prefix.- Specified by:
getPrefix
in interfaceorg.apache.xerces.xni.NamespaceContext
-
getAllPrefixes
Get all prefixes.- Specified by:
getAllPrefixes
in interfaceorg.apache.xerces.xni.NamespaceContext
-