***  This API provides Binary Compatibility only, not Source Compatibility  ***

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

Constructor Summary
NamespaceMap()
           
 
Method Summary
 String addNSPrefix(String prefix, String namespaceURI)
          Sets a specific mapping from the prefix to the namespace URI.
 String getPrefixforURI(String namespaceURI)
          Returns a prefix that can be used for the given 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

NamespaceMap

public NamespaceMap()
Method Detail

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 prefix
namespaceURI - 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

***  This API provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:29:04