org.apache.ws.commons.schema.utils
Class NamespaceMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.apache.ws.commons.schema.utils.NamespaceMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,Object>, NamespaceContext, NamespacePrefixList
public class NamespaceMap
- extends HashMap<String,Object>
- implements NamespacePrefixList
This class maps from a prefix to an object that is either a String or a URI.
In fact, it will work with anything with a toString result that is useful
as a namespace URI.
- See Also:
- Serialized Form
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
NamespaceMap
public NamespaceMap()
NamespaceMap
public NamespaceMap(Map<String,Object> map)
add
public void add(String prefix,
String namespaceURI)
getDeclaredPrefixes
public String[] getDeclaredPrefixes()
- Description copied from interface:
NamespacePrefixList
- Returns the list of currently defined namespace prefixes.
- Specified by:
getDeclaredPrefixes
in interface NamespacePrefixList
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interface NamespaceContext
getPrefix
public String getPrefix(String namespaceURI)
- Specified by:
getPrefix
in interface NamespaceContext
getPrefixes
public Iterator<String> getPrefixes(String namespaceURI)
- Specified by:
getPrefixes
in interface NamespaceContext
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.