public class MapNamespaceContext extends Object implements NamespaceContext
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
m_namespaces |
| Constructor and Description |
|---|
MapNamespaceContext(Map<String,String> namespaces) |
| Modifier and Type | Method and Description |
|---|---|
String |
getNamespaceURI(String prefix)
Queries our map for the prefix value; also handles the default "xml" prefix.
|
String |
getPrefix(String uri)
This method isn't necessary for XPath processing.
|
Iterator |
getPrefixes(String uri)
This method isn't necessary for XPath processing either.
|
public String getNamespaceURI(String prefix)
getNamespaceURI in interface NamespaceContextprefix - the prefixXMLConstants.NULL_NS_URI if there is no namespacepublic String getPrefix(String uri)
getPrefix in interface NamespaceContextpublic Iterator getPrefixes(String uri)
getPrefixes in interface NamespaceContext