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 ofNamespaceinstances.(package private) final NamespaceContextFields inherited from class BaseNsContext
UNDECLARED_NS_URI -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMergedNsContext(NamespaceContext parentCtxt, List<Namespace> localNs) -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseNsContextconstruct(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.voidMethod called by the matching start element class to output all namespace declarations active in current namespace scope, if any.voidMethod called by the matching start element class to output all namespace declarations active in current namespace scope, if any.Methods inherited from class BaseNsContext
getNamespaceURI, getPrefix, getPrefixes
-
Field Details
-
mParentCtxt
-
mNamespaces
-
mNsByPrefix
-
mNsByURI
-
-
Constructor Details
-
MergedNsContext
-
-
Method Details
-
construct
-
doGetNamespaceURI
- Specified by:
doGetNamespaceURIin classBaseNsContext
-
doGetPrefix
- Specified by:
doGetPrefixin classBaseNsContext
-
doGetPrefixes
- Specified by:
doGetPrefixesin classBaseNsContext
-
getNamespaces
Method that returns information about namespace definition declared in this scope; not including ones declared in outer scopes.- Specified by:
getNamespacesin classBaseNsContext
-
outputNamespaceDeclarations
Description copied from class:BaseNsContextMethod called by the matching start element class to output all namespace declarations active in current namespace scope, if any.- Specified by:
outputNamespaceDeclarationsin 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:
outputNamespaceDeclarationsin classBaseNsContext- Throws:
XMLStreamException
-
buildByPrefixMap
-
buildByNsURIMap
-