com.ctc.wstx.util
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 |
---|---|
java.lang.String |
doGetNamespaceURI(java.lang.String prefix) |
java.lang.String |
doGetPrefix(java.lang.String nsURI) |
java.util.Iterator |
doGetPrefixes(java.lang.String nsURI) |
static EmptyNamespaceContext |
getInstance() |
java.util.Iterator |
getNamespaces() |
void |
outputNamespaceDeclarations(java.io.Writer w)
Method called by the matching start element class to
output all namespace declarations active in current namespace
scope, if any.
|
void |
outputNamespaceDeclarations(javax.xml.stream.XMLStreamWriter w) |
getNamespaceURI, getPrefix, getPrefixes
public static EmptyNamespaceContext getInstance()
public java.util.Iterator getNamespaces()
getNamespaces
in class BaseNsContext
public void outputNamespaceDeclarations(java.io.Writer w)
outputNamespaceDeclarations
in class BaseNsContext
public void outputNamespaceDeclarations(javax.xml.stream.XMLStreamWriter w)
outputNamespaceDeclarations
in class BaseNsContext
public java.lang.String doGetNamespaceURI(java.lang.String prefix)
doGetNamespaceURI
in class BaseNsContext
public java.lang.String doGetPrefix(java.lang.String nsURI)
doGetPrefix
in class BaseNsContext
public java.util.Iterator doGetPrefixes(java.lang.String nsURI)
doGetPrefixes
in class BaseNsContext