Package com.ctc.wstx.util
Class BaseNsContext
java.lang.Object
com.ctc.wstx.util.BaseNsContext
- All Implemented Interfaces:
NamespaceContext
- Direct Known Subclasses:
CompactNsContext
,EmptyNamespaceContext
,MergedNsContext
Abstract base class that defines extra features defined by most
NamespaceContext implementations Wodstox uses.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
This is the URI returned for default namespace, when it hasn't been explicitly declared; could be either "" or null. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
doGetNamespaceURI
(String prefix) abstract String
doGetPrefix
(String nsURI) doGetPrefixes
(String nsURI) final String
getNamespaceURI
(String prefix) final String
getPrefixes
(String nsURI) abstract void
Method called by the matching start element class to output all namespace declarations active in current namespace scope, if any.abstract void
-
Field Details
-
UNDECLARED_NS_URI
This is the URI returned for default namespace, when it hasn't been explicitly declared; could be either "" or null.- See Also:
-
-
Constructor Details
-
BaseNsContext
public BaseNsContext()
-
-
Method Details
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefix
in interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixes
in interfaceNamespaceContext
-
getNamespaces
-
outputNamespaceDeclarations
Method called by the matching start element class to output all namespace declarations active in current namespace scope, if any.- Throws:
IOException
-
outputNamespaceDeclarations
- Throws:
XMLStreamException
-
doGetNamespaceURI
-
doGetPrefix
-
doGetPrefixes
-