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 java.lang.Object implements org.apache.xerces.xni.NamespaceContext
This namespace context object implements the old and new XNINamespaceContext
interface methods so that it can be used across all versions of Xerces2.
-
-
Constructor Summary
Constructors Constructor Description NamespaceSupport()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
declarePrefix(java.lang.String prefix, java.lang.String uri)
Declare prefix.java.util.Enumeration
getAllPrefixes()
Get all prefixes.java.lang.String
getDeclaredPrefixAt(int index)
Get declared prefix at.int
getDeclaredPrefixCount()
Get declared prefix count.org.apache.xerces.xni.NamespaceContext
getParentContext()
Get parent context.java.lang.String
getPrefix(java.lang.String uri)
Get prefix.java.lang.String
getURI(java.lang.String prefix)
Get URI.void
popContext()
Pop context.void
pushContext()
Push context.void
reset()
Reset.
-
-
-
Method Detail
-
getURI
public java.lang.String getURI(java.lang.String prefix)
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
public java.lang.String getDeclaredPrefixAt(int index)
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
public boolean declarePrefix(java.lang.String prefix, java.lang.String uri)
Declare prefix.- Specified by:
declarePrefix
in interfaceorg.apache.xerces.xni.NamespaceContext
-
getPrefix
public java.lang.String getPrefix(java.lang.String uri)
Get prefix.- Specified by:
getPrefix
in interfaceorg.apache.xerces.xni.NamespaceContext
-
getAllPrefixes
public java.util.Enumeration getAllPrefixes()
Get all prefixes.- Specified by:
getAllPrefixes
in interfaceorg.apache.xerces.xni.NamespaceContext
-
-