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 localNs) |
| Modifier and Type | Method and Description |
|---|---|
static BaseNsContext |
construct(NamespaceContext parentCtxt,
List localNs) |
String |
doGetNamespaceURI(String prefix) |
String |
doGetPrefix(String nsURI) |
Iterator |
doGetPrefixes(String nsURI) |
Iterator |
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 localNs)
public static BaseNsContext construct(NamespaceContext parentCtxt, List localNs)
public String doGetNamespaceURI(String prefix)
doGetNamespaceURI in class BaseNsContextpublic String doGetPrefix(String nsURI)
doGetPrefix in class BaseNsContextpublic Iterator doGetPrefixes(String nsURI)
doGetPrefixes in class BaseNsContextpublic Iterator 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 © 2012 Codehaus. All Rights Reserved.