org.bounce.xml
Class NamespaceContextMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,String>
org.bounce.xml.NamespaceContextMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,String>, NamespaceContext
public class NamespaceContextMap
- extends HashMap<String,String>
- implements NamespaceContext
Implementation of the a Namespace Context as a HashMap.
- Version:
- $Revision: 1.1 $, $Date: 2008/05/20 20:19:20 $
- Author:
- Edwin Dankert
- See Also:
- Serialized Form
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
NamespaceContextMap
public NamespaceContextMap()
getNamespaceURI
public String getNamespaceURI(String prefix)
- Get Namespace URI bound to a prefix in the current scope.
- Specified by:
getNamespaceURI
in interface NamespaceContext
- Parameters:
prefix
- the namespace prefix.
- Returns:
- the URI found for the prefix.
- See Also:
NamespaceContext.getNamespaceURI(java.lang.String)
getPrefix
public String getPrefix(String namespaceURI)
- Return the prefix bound to the namespace uri, null if no prefix could be found.
- Specified by:
getPrefix
in interface NamespaceContext
- Parameters:
namespaceURI
- the namespace URI.
- Returns:
- the prefix found for the URI.
- See Also:
NamespaceContext.getPrefix(java.lang.String)
getPrefixes
public Iterator<String> getPrefixes(String namespaceURI)
- Return the list of prefixes bound to the namespace uri, null if no prefix
could be found.
- Specified by:
getPrefixes
in interface NamespaceContext
- Parameters:
namespaceURI
- the namespace URI.
- Returns:
- the prefixs bound to the URI.
- See Also:
NamespaceContext.getPrefix(java.lang.String)
Copyright © 2002-2011 Edwin Dankert. All Rights Reserved.