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 EmptyNamespaceContextvoidMethod called by the matching start element class to output all namespace declarations active in current namespace scope, if any.voidMethods 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:
getNamespacesin classBaseNsContext
-
outputNamespaceDeclarations
Method called by the matching start element class to output all namespace declarations active in current namespace scope, if any.- Specified by:
outputNamespaceDeclarationsin classBaseNsContext
-
outputNamespaceDeclarations
- Specified by:
outputNamespaceDeclarationsin classBaseNsContext
-
doGetNamespaceURI
- Specified by:
doGetNamespaceURIin classBaseNsContext
-
doGetPrefix
- Specified by:
doGetPrefixin classBaseNsContext
-
doGetPrefixes
- Specified by:
doGetPrefixesin classBaseNsContext
-