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, getPrefixespublic static EmptyNamespaceContext getInstance()
public Iterator<Namespace> getNamespaces()
getNamespaces in class BaseNsContextpublic void outputNamespaceDeclarations(Writer w)
outputNamespaceDeclarations in class BaseNsContextpublic void outputNamespaceDeclarations(XMLStreamWriter w)
outputNamespaceDeclarations in class BaseNsContextpublic String doGetNamespaceURI(String prefix)
doGetNamespaceURI in class BaseNsContextpublic String doGetPrefix(String nsURI)
doGetPrefix in class BaseNsContextpublic Iterator<String> doGetPrefixes(String nsURI)
doGetPrefixes in class BaseNsContextCopyright © 2022 FasterXML. All rights reserved.