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 StringThis 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 StringdoGetNamespaceURI(String prefix) abstract StringdoGetPrefix(String nsURI) doGetPrefixes(String nsURI) final StringgetNamespaceURI(String prefix) final StringgetPrefixes(String nsURI) abstract voidMethod 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:
getNamespaceURIin interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefixin interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixesin 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
-