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, getPrefixes
protected MergedNsContext(NamespaceContext parentCtxt, List localNs)
public static BaseNsContext construct(NamespaceContext parentCtxt, List localNs)
public String doGetNamespaceURI(String prefix)
doGetNamespaceURI
in class BaseNsContext
public String doGetPrefix(String nsURI)
doGetPrefix
in class BaseNsContext
public Iterator doGetPrefixes(String nsURI)
doGetPrefixes
in class BaseNsContext
public Iterator 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 © 2015 Codehaus. All Rights Reserved.