public abstract class BaseNsContext extends Object implements NamespaceContext
| Modifier and Type | Field and Description |
|---|---|
protected static String |
UNDECLARED_NS_URI
This is the URI returned for default namespace, when it hasn't
been explicitly declared; could be either "" or null.
|
| Constructor and Description |
|---|
BaseNsContext() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
doGetNamespaceURI(String prefix) |
abstract String |
doGetPrefix(String nsURI) |
abstract Iterator<String> |
doGetPrefixes(String nsURI) |
abstract Iterator<Namespace> |
getNamespaces() |
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String nsURI) |
Iterator<String> |
getPrefixes(String nsURI) |
abstract void |
outputNamespaceDeclarations(Writer w)
Method called by the matching start element class to
output all namespace declarations active in current namespace
scope, if any.
|
abstract void |
outputNamespaceDeclarations(XMLStreamWriter w) |
protected static final String UNDECLARED_NS_URI
public final String getNamespaceURI(String prefix)
getNamespaceURI in interface NamespaceContextpublic final String getPrefix(String nsURI)
getPrefix in interface NamespaceContextpublic final Iterator<String> getPrefixes(String nsURI)
getPrefixes in interface NamespaceContextpublic abstract void outputNamespaceDeclarations(Writer w) throws IOException
IOExceptionpublic abstract void outputNamespaceDeclarations(XMLStreamWriter w) throws XMLStreamException
XMLStreamExceptionCopyright © 2020 FasterXML. All rights reserved.