NamespaceContextpublic class MergedNsContext extends BaseNsContext
NamespaceContext implementation used when constructing
event and namespace information explicitly via
XMLEventFactory,
not by a stream reader.
TODO:
UNDECLARED_NS_URI| Modifier | Constructor | Description |
|---|---|---|
protected |
MergedNsContext(NamespaceContext parentCtxt,
List<Namespace> localNs) |
| Modifier and Type | Method | Description |
|---|---|---|
static BaseNsContext |
construct(NamespaceContext parentCtxt,
List<Namespace> localNs) |
|
String |
doGetNamespaceURI(String prefix) |
|
String |
doGetPrefix(String nsURI) |
|
Iterator<String> |
doGetPrefixes(String nsURI) |
|
Iterator<Namespace> |
getNamespaces() |
Method that returns information about namespace definition declared
in this scope; not including ones declared in outer scopes.
|
void |
outputNamespaceDeclarations(Writer w) |
Method called by the matching start element class to
output all namespace declarations active in current namespace
scope, if any.
|
void |
outputNamespaceDeclarations(XMLStreamWriter w) |
Method called by the matching start element class to
output all namespace declarations active in current namespace
scope, if any.
|
getNamespaceURI, getPrefix, getPrefixesprotected MergedNsContext(NamespaceContext parentCtxt, List<Namespace> localNs)
public static BaseNsContext construct(NamespaceContext parentCtxt, List<Namespace> localNs)
public String doGetNamespaceURI(String prefix)
doGetNamespaceURI in class BaseNsContextpublic String doGetPrefix(String nsURI)
doGetPrefix in class BaseNsContextpublic Iterator<String> doGetPrefixes(String nsURI)
doGetPrefixes in class BaseNsContextpublic Iterator<Namespace> getNamespaces()
getNamespaces in class BaseNsContextpublic void outputNamespaceDeclarations(Writer w) throws IOException
BaseNsContextoutputNamespaceDeclarations in class BaseNsContextIOExceptionpublic void outputNamespaceDeclarations(XMLStreamWriter w) throws XMLStreamException
outputNamespaceDeclarations in class BaseNsContextXMLStreamExceptionCopyright © 2019 FasterXML. All rights reserved.