Package com.ctc.wstx.util
Class EmptyNamespaceContext
java.lang.Object
com.ctc.wstx.util.BaseNsContext
com.ctc.wstx.util.EmptyNamespaceContext
- All Implemented Interfaces:
NamespaceContext
Dummy
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.
-
Field Summary
FieldsFields inherited from class com.ctc.wstx.util.BaseNsContext
UNDECLARED_NS_URI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoGetNamespaceURI
(String prefix) doGetPrefix
(String nsURI) doGetPrefixes
(String nsURI) static EmptyNamespaceContext
void
Method called by the matching start element class to output all namespace declarations active in current namespace scope, if any.void
Methods inherited from class com.ctc.wstx.util.BaseNsContext
getNamespaceURI, getPrefix, getPrefixes
-
Field Details
-
sInstance
-
-
Constructor Details
-
EmptyNamespaceContext
private EmptyNamespaceContext()
-
-
Method Details
-
getInstance
-
getNamespaces
- Specified by:
getNamespaces
in classBaseNsContext
-
outputNamespaceDeclarations
Method called by the matching start element class to output all namespace declarations active in current namespace scope, if any.- Specified by:
outputNamespaceDeclarations
in classBaseNsContext
-
outputNamespaceDeclarations
- Specified by:
outputNamespaceDeclarations
in classBaseNsContext
-
doGetNamespaceURI
- Specified by:
doGetNamespaceURI
in classBaseNsContext
-
doGetPrefix
- Specified by:
doGetPrefix
in classBaseNsContext
-
doGetPrefixes
- Specified by:
doGetPrefixes
in classBaseNsContext
-