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(javax.xml.namespace.NamespaceContext parentCtxt,
java.util.List localNs) |
| Modifier and Type | Method and Description |
|---|---|
static BaseNsContext |
construct(javax.xml.namespace.NamespaceContext parentCtxt,
java.util.List localNs) |
java.lang.String |
doGetNamespaceURI(java.lang.String prefix) |
java.lang.String |
doGetPrefix(java.lang.String nsURI) |
java.util.Iterator |
doGetPrefixes(java.lang.String nsURI) |
java.util.Iterator |
getNamespaces()
Method that returns information about namespace definition declared
in this scope; not including ones declared in outer scopes.
|
void |
outputNamespaceDeclarations(java.io.Writer w)
Method called by the matching start element class to
output all namespace declarations active in current namespace
scope, if any.
|
void |
outputNamespaceDeclarations(javax.xml.stream.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(javax.xml.namespace.NamespaceContext parentCtxt,
java.util.List localNs)
public static BaseNsContext construct(javax.xml.namespace.NamespaceContext parentCtxt, java.util.List localNs)
public java.lang.String doGetNamespaceURI(java.lang.String prefix)
doGetNamespaceURI in class BaseNsContextpublic java.lang.String doGetPrefix(java.lang.String nsURI)
doGetPrefix in class BaseNsContextpublic java.util.Iterator doGetPrefixes(java.lang.String nsURI)
doGetPrefixes in class BaseNsContextpublic java.util.Iterator getNamespaces()
getNamespaces in class BaseNsContextpublic void outputNamespaceDeclarations(java.io.Writer w)
throws java.io.IOException
BaseNsContextoutputNamespaceDeclarations in class BaseNsContextjava.io.IOExceptionpublic void outputNamespaceDeclarations(javax.xml.stream.XMLStreamWriter w)
throws javax.xml.stream.XMLStreamException
outputNamespaceDeclarations in class BaseNsContextjavax.xml.stream.XMLStreamException