com.att.gs.codip.resource
Class namespaceResolver

java.lang.Object
  |
  +--com.att.gs.codip.resource.namespaceResolver

public class namespaceResolver
extends java.lang.Object


Constructor Summary
namespaceResolver()
          Default no arg constructor.
namespaceResolver(java.lang.String aNamespace)
          Constructor that sets the resolverNamespace.
 
Method Summary
 java.lang.String getDefaultNamespace()
          Getter for the default namespace.
 java.lang.String getNS_URI(java.lang.String thePrefix)
          Gets a namespace from it's associated prefix.
 java.lang.String getPrefix(java.lang.String theNS_URI)
          Gets a prefix from it's associated namespace.
 java.lang.String getPrefixName(LogicalResource LogicalResource)
          Determines the prefexed name of the provided resource with in the default namespace.
 java.lang.String getRecords()
          Get records for all aliases and namespaces.
 java.lang.String getUniqueID()
          Generates unique ID for DAML resources in the namespace.
 java.lang.String getUniqueTag()
           
 void putNamespace(java.lang.String thePrefix, java.lang.String theNS_URI)
          Adds a namespace and its associated prefix.
 void setUniqueTag(java.lang.String tag)
          Getter/Setter for the default tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

namespaceResolver

public namespaceResolver()
Default no arg constructor. Defines the default, 'well known', aliases for common namespaces.


namespaceResolver

public namespaceResolver(java.lang.String aNamespace)
Constructor that sets the resolverNamespace.

Method Detail

getDefaultNamespace

public java.lang.String getDefaultNamespace()
Getter for the default namespace.


setUniqueTag

public void setUniqueTag(java.lang.String tag)
Getter/Setter for the default tag.


getUniqueTag

public java.lang.String getUniqueTag()

getUniqueID

public java.lang.String getUniqueID()
Generates unique ID for DAML resources in the namespace.


putNamespace

public void putNamespace(java.lang.String thePrefix,
                         java.lang.String theNS_URI)
Adds a namespace and its associated prefix.


getNS_URI

public java.lang.String getNS_URI(java.lang.String thePrefix)
Gets a namespace from it's associated prefix.


getPrefix

public java.lang.String getPrefix(java.lang.String theNS_URI)
Gets a prefix from it's associated namespace.


getRecords

public java.lang.String getRecords()
Get records for all aliases and namespaces.


getPrefixName

public java.lang.String getPrefixName(LogicalResource LogicalResource)
Determines the prefexed name of the provided resource with in the default namespace.



CODIP AT&T Government Solutions, Inc.