com.ctc.wstx.evt
Class MergedNsContext
java.lang.Object
com.ctc.wstx.util.BaseNsContext
com.ctc.wstx.evt.MergedNsContext
- All Implemented Interfaces:
- NamespaceContext
public class MergedNsContext
- extends BaseNsContext
Hierarchic NamespaceContext
implementation used when constructing
event and namespace information explicitly via
XMLEventFactory
,
not by a stream reader.
TODO:
- Figure out a way to check for namespace masking; tricky but not
impossible to determine
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MergedNsContext
protected MergedNsContext(NamespaceContext parentCtxt,
List localNs)
construct
public static BaseNsContext construct(NamespaceContext parentCtxt,
List localNs)
doGetNamespaceURI
public String doGetNamespaceURI(String prefix)
- Specified by:
doGetNamespaceURI
in class BaseNsContext
doGetPrefix
public String doGetPrefix(String nsURI)
- Specified by:
doGetPrefix
in class BaseNsContext
doGetPrefixes
public Iterator doGetPrefixes(String nsURI)
- Specified by:
doGetPrefixes
in class BaseNsContext
getNamespaces
public Iterator getNamespaces()
- Method that returns information about namespace definition declared
in this scope; not including ones declared in outer scopes.
- Specified by:
getNamespaces
in class BaseNsContext
outputNamespaceDeclarations
public void outputNamespaceDeclarations(Writer w)
throws IOException
- Description copied from class:
BaseNsContext
- Method called by the matching start element class to
output all namespace declarations active in current namespace
scope, if any.
- Specified by:
outputNamespaceDeclarations
in class BaseNsContext
- Throws:
IOException
outputNamespaceDeclarations
public void outputNamespaceDeclarations(XMLStreamWriter w)
throws XMLStreamException
- Method called by the matching start element class to
output all namespace declarations active in current namespace
scope, if any.
- Specified by:
outputNamespaceDeclarations
in class BaseNsContext
- Throws:
XMLStreamException