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

com.sas.services.webdav
Class NamespaceMap

com.sas.services.webdav.NamespaceMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class NamespaceMap

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

Constructor Detail

NamespaceMap

public NamespaceMap()
Method Detail

addNSPrefix

public java.lang.String addNSPrefix(java.lang.String prefix,
                                    java.lang.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 java.lang.String getPrefixforURI(java.lang.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 class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.