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 NamespaceContext
prefix
- the prefixXMLConstants.NULL_NS_URI
if there is no namespacepublic String getPrefix(String uri)
getPrefix
in interface NamespaceContext
public Iterator getPrefixes(String uri)
getPrefixes
in interface NamespaceContext