Class NamespaceMap

  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by
All Implemented Interfaces:
Serializable, Cloneable, Map, javax.xml.namespace.NamespaceContext, NamespacePrefixList

public class NamespaceMap
extends HashMap
implements NamespacePrefixList

See Also:
Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor Summary
NamespaceMap(Map map)
Method Summary
 void add(String prefix, String namespaceURI)
 String[] getDeclaredPrefixes()
          Returns the list of currently defined namespace prefixes.
 String getNamespaceURI(String prefix)
 String getPrefix(String namespaceURI)
 Iterator getPrefixes(String namespaceURI)
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
equals, hashCode

Constructor Detail


public NamespaceMap()


public NamespaceMap(Map map)
Method Detail


public void add(String prefix,
                String namespaceURI)


public String[] getDeclaredPrefixes()
Description copied from interface: NamespacePrefixList
Returns the list of currently defined namespace prefixes.

Specified by:
getDeclaredPrefixes in interface NamespacePrefixList


public String getNamespaceURI(String prefix)
Specified by:
getNamespaceURI in interface javax.xml.namespace.NamespaceContext


public String getPrefix(String namespaceURI)
Specified by:
getPrefix in interface javax.xml.namespace.NamespaceContext


public Iterator getPrefixes(String namespaceURI)
Specified by:
getPrefixes in interface javax.xml.namespace.NamespaceContext

Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.