Package com.ctc.wstx.evt
Class MergedNsContext
java.lang.Object
com.ctc.wstx.util.BaseNsContext
com.ctc.wstx.evt.MergedNsContext
- All Implemented Interfaces:
NamespaceContext
Hierarchic
NamespaceContext
implementation used when constructing
event and namespace information explicitly via
XMLEventFactory
,
not by a stream reader.
TODO:
- Figure out a way to check for namespace masking; tricky but not impossible to determine
-
Field Summary
FieldsModifier and TypeFieldDescriptionList ofNamespace
instances.(package private) final NamespaceContext
Fields inherited from class com.ctc.wstx.util.BaseNsContext
UNDECLARED_NS_URI
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MergedNsContext
(NamespaceContext parentCtxt, List<Namespace> localNs) -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseNsContext
construct
(NamespaceContext parentCtxt, List<Namespace> localNs) doGetNamespaceURI
(String prefix) doGetPrefix
(String nsURI) doGetPrefixes
(String nsURI) Method that returns information about namespace definition declared in this scope; not including ones declared in outer scopes.void
Method called by the matching start element class to output all namespace declarations active in current namespace scope, if any.void
Method called by the matching start element class to output all namespace declarations active in current namespace scope, if any.Methods inherited from class com.ctc.wstx.util.BaseNsContext
getNamespaceURI, getPrefix, getPrefixes
-
Field Details
-
mParentCtxt
-
mNamespaces
List ofNamespace
instances. -
mNsByPrefix
-
mNsByURI
-
-
Constructor Details
-
MergedNsContext
-
-
Method Details
-
construct
-
doGetNamespaceURI
- Specified by:
doGetNamespaceURI
in classBaseNsContext
-
doGetPrefix
- Specified by:
doGetPrefix
in classBaseNsContext
-
doGetPrefixes
- Specified by:
doGetPrefixes
in classBaseNsContext
-
getNamespaces
Method that returns information about namespace definition declared in this scope; not including ones declared in outer scopes.- Specified by:
getNamespaces
in classBaseNsContext
-
outputNamespaceDeclarations
Description copied from class:BaseNsContext
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
- Throws:
IOException
-
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
- Throws:
XMLStreamException
-
buildByPrefixMap
-
buildByNsURIMap
-