Skip navigation links
oracle.stellent.ridc.common.xml
Class MapNamespaceContext
java.lang.Object
oracle.stellent.ridc.common.xml.MapNamespaceContext
- All Implemented Interfaces:
- NamespaceContext
-
public class MapNamespaceContext
- extends Object
- implements NamespaceContext
An XML namespace context that queries a Map
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_namespaces
protected Map<String,String> m_namespaces
MapNamespaceContext
public MapNamespaceContext(Map<String,String> namespaces)
getNamespaceURI
public String getNamespaceURI(String prefix)
- Queries our map for the prefix value; also handles the default "xml" prefix.
-
- Specified by:
getNamespaceURI
in interface NamespaceContext
-
- Parameters:
prefix
- the prefix
- Returns:
- the XML namespace or
XMLConstants.NULL_NS_URI
if there is no namespace
getPrefix
public String getPrefix(String uri)
- This method isn't necessary for XPath processing.
-
- Specified by:
getPrefix
in interface NamespaceContext
getPrefixes
public Iterator getPrefixes(String uri)
- This method isn't necessary for XPath processing either.
-
- Specified by:
getPrefixes
in interface NamespaceContext
Skip navigation links
Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.