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 |
doGetPrefixes(String nsURI) |
abstract Iterator |
getNamespaces() |
String |
getNamespaceURI(String prefix) |
String |
getPrefix(String nsURI) |
Iterator |
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 NamespaceContext
public final String getPrefix(String nsURI)
getPrefix
in interface NamespaceContext
public final Iterator getPrefixes(String nsURI)
getPrefixes
in interface NamespaceContext
public abstract Iterator getNamespaces()
public abstract void outputNamespaceDeclarations(Writer w) throws IOException
IOException
public abstract void outputNamespaceDeclarations(XMLStreamWriter w) throws XMLStreamException
XMLStreamException
Copyright © 2015 Codehaus. All Rights Reserved.