public final class EmptyNamespaceContext extends BaseNsContext
NamespaceContext
(and BaseNsContext
)
implementation that is usually used in
non-namespace-aware mode.
Note: differs from Stax2 reference implementation's version slightly, since it needs to support Woodstox specific extensions for efficient namespace declaration serialization.
UNDECLARED_NS_URI
Modifier and Type | Method and Description |
---|---|
String |
doGetNamespaceURI(String prefix) |
String |
doGetPrefix(String nsURI) |
Iterator<String> |
doGetPrefixes(String nsURI) |
static EmptyNamespaceContext |
getInstance() |
Iterator<Namespace> |
getNamespaces() |
void |
outputNamespaceDeclarations(Writer w)
Method called by the matching start element class to
output all namespace declarations active in current namespace
scope, if any.
|
void |
outputNamespaceDeclarations(XMLStreamWriter w) |
getNamespaceURI, getPrefix, getPrefixes
public static EmptyNamespaceContext getInstance()
public Iterator<Namespace> getNamespaces()
getNamespaces
in class BaseNsContext
public void outputNamespaceDeclarations(Writer w)
outputNamespaceDeclarations
in class BaseNsContext
public void outputNamespaceDeclarations(XMLStreamWriter w)
outputNamespaceDeclarations
in class BaseNsContext
public String doGetNamespaceURI(String prefix)
doGetNamespaceURI
in class BaseNsContext
public String doGetPrefix(String nsURI)
doGetPrefix
in class BaseNsContext
public Iterator<String> doGetPrefixes(String nsURI)
doGetPrefixes
in class BaseNsContext
Copyright © 2012–2015 FasterXML. All rights reserved.