public 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 and Description |
---|---|
protected |
MergedNsContext(NamespaceContext parentCtxt,
List<Namespace> localNs) |
Modifier and Type | Method and 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, getPrefixes
protected MergedNsContext(NamespaceContext parentCtxt, List<Namespace> localNs)
public static BaseNsContext construct(NamespaceContext parentCtxt, List<Namespace> localNs)
public String doGetNamespaceURI(String prefix)
doGetNamespaceURI
in class BaseNsContext
public String doGetPrefix(String nsURI)
doGetPrefix
in class BaseNsContext
public Iterator<String> doGetPrefixes(String nsURI)
doGetPrefixes
in class BaseNsContext
public Iterator<Namespace> getNamespaces()
getNamespaces
in class BaseNsContext
public void outputNamespaceDeclarations(Writer w) throws IOException
BaseNsContext
outputNamespaceDeclarations
in class BaseNsContext
IOException
public void outputNamespaceDeclarations(XMLStreamWriter w) throws XMLStreamException
outputNamespaceDeclarations
in class BaseNsContext
XMLStreamException
Copyright © 2018 FasterXML. All rights reserved.