public static class NamespaceBinder.NamespaceSupport extends Object implements NamespaceContext
NamespaceContext interface methods so that it can
be used across all versions of Xerces2.| Modifier and Type | Field and Description |
|---|---|
protected net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.NamespaceSupport.Entry[] |
fEntries
The entries.
|
protected int[] |
fLevels
The levels of the entries.
|
protected int |
fTop
Top of the levels list.
|
XML_URI, XMLNS_URI| Constructor and Description |
|---|
NamespaceSupport()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
declarePrefix(String prefix,
String uri)
Declare prefix.
|
Iterator<String> |
getAllPrefixes()
Get all prefixes.
|
String |
getDeclaredPrefixAt(int index)
Get declared prefix at.
|
int |
getDeclaredPrefixCount()
Get declared prefix count.
|
NamespaceContext |
getParentContext() |
String |
getPrefix(String uri)
Get prefix.
|
String |
getURI(String prefix)
Get URI.
|
void |
popContext()
Pop context.
|
void |
pushContext()
Push context.
|
void |
reset()
Reset.
|
protected int fTop
protected int[] fLevels
protected net.sourceforge.htmlunit.cyberneko.filters.NamespaceBinder.NamespaceSupport.Entry[] fEntries
public String getURI(String prefix)
getURI in interface NamespaceContextprefix - The prefix to look up.public int getDeclaredPrefixCount()
getDeclaredPrefixCount in interface NamespaceContextpublic String getDeclaredPrefixAt(int index)
getDeclaredPrefixAt in interface NamespaceContextindex - the index pospublic NamespaceContext getParentContext()
public void reset()
reset in interface NamespaceContextpublic void pushContext()
pushContext in interface NamespaceContextNamespaceContext.popContext()public void popContext()
popContext in interface NamespaceContextNamespaceContext.pushContext()public boolean declarePrefix(String prefix, String uri)
declarePrefix in interface NamespaceContextprefix - The prefix to declare, or null for the empty
string.uri - The Namespace URI to associate with the prefix.NamespaceContext.getURI(java.lang.String),
NamespaceContext.getDeclaredPrefixAt(int)public String getPrefix(String uri)
getPrefix in interface NamespaceContexturi - The namespace URI to look up.NamespaceContext.getPrefix(java.lang.String)public Iterator<String> getAllPrefixes()
getAllPrefixes in interface NamespaceContextCopyright © 2023 Gargoyle Software Inc.. All rights reserved.