com.sas.services.webdav
Class NamespaceMap
java.lang.Object
|
+--java.util.AbstractMap
|
+--java.util.HashMap
|
+--com.sas.services.webdav.NamespaceMap
- All Implemented Interfaces:
- public class NamespaceMap
- extends HashMap
Implements a specific map from prefixes to namespace URI's. Prefixes
will automatically be generated and a record maintained of the
namespace URI associated with it. One may also specify an explicit prefix
to namespace URI mapping to use.
- Since:
- 1.1
- 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()
addNSPrefix
public String addNSPrefix(String prefix,
String namespaceURI)
- Sets a specific mapping from the prefix to the namespace URI. This would
be used if there was a preferred prefix (eg. predefined).
- Parameters:
prefix - The preferred prefixnamespaceURI - The namespace URI- Returns:
- String Returns the prefix mapped to the namespace URI
getPrefixforURI
public String getPrefixforURI(String namespaceURI)
- Returns a prefix that can be used for the given namespaceURI. If a
previous mapping did not exist then a new prefix is created for this
namespace URI and returned.
- Parameters:
namespaceURI - The namespace URI for which a prefix is required- Returns:
- String The prefix to be used for the specified namespace URI
Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:29:04