org.bounce.xml
Class NamespaceContextMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,java.lang.String>
org.bounce.xml.NamespaceContextMap
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.String>, javax.xml.namespace.NamespaceContext
public class NamespaceContextMap
- extends java.util.HashMap<java.lang.String,java.lang.String>
- implements javax.xml.namespace.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
| Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
|
Method Summary |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Get Namespace URI bound to a prefix in the current scope. |
java.lang.String |
getPrefix(java.lang.String namespaceURI)
Return the prefix bound to the namespace uri, null if no prefix could be found. |
java.util.Iterator<java.lang.String> |
getPrefixes(java.lang.String namespaceURI)
Return the list of prefixes bound to the namespace uri, null if no prefix
could be found. |
| 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 |
NamespaceContextMap
public NamespaceContextMap()
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
- Get Namespace URI bound to a prefix in the current scope.
- Specified by:
getNamespaceURI in interface javax.xml.namespace.NamespaceContext
- Parameters:
prefix - the namespace prefix.
- Returns:
- the URI found for the prefix.
- See Also:
NamespaceContext.getNamespaceURI(java.lang.String)
getPrefix
public java.lang.String getPrefix(java.lang.String namespaceURI)
- Return the prefix bound to the namespace uri, null if no prefix could be found.
- Specified by:
getPrefix in interface javax.xml.namespace.NamespaceContext
- Parameters:
namespaceURI - the namespace URI.
- Returns:
- the prefix found for the URI.
- See Also:
NamespaceContext.getPrefix(java.lang.String)
getPrefixes
public java.util.Iterator<java.lang.String> getPrefixes(java.lang.String namespaceURI)
- Return the list of prefixes bound to the namespace uri, null if no prefix
could be found.
- Specified by:
getPrefixes in interface javax.xml.namespace.NamespaceContext
- Parameters:
namespaceURI - the namespace URI.
- Returns:
- the prefixs bound to the URI.
- See Also:
NamespaceContext.getPrefix(java.lang.String)
Copyright 2002-2002-2010 Edwin Dankert. All Rights Reserved.