org.lexevs.dao.database.prefix
Class DefaultPrefixResolver

java.lang.Object
  extended by org.lexevs.dao.database.prefix.DefaultPrefixResolver
All Implemented Interfaces:
PrefixResolver

public class DefaultPrefixResolver
extends java.lang.Object
implements PrefixResolver

The Class DefaultPrefixResolver.

Author:
Kevin Peterson

Constructor Summary
DefaultPrefixResolver()
           
 
Method Summary
 DatabaseServiceManager getDatabaseServiceManager()
           
 java.lang.String getHistoryPrefix()
          Gets the history prefix.
 java.lang.String getNextCodingSchemePrefix()
          Gets the next coding scheme prefix.
 Registry getRegistry()
          Gets the registry.
 SystemVariables getSystemVariables()
          Gets the system variables.
 java.lang.String resolveDefaultPrefix()
          Resolve default prefix.
 java.lang.String resolveHistoryPrefix()
          Resolve history prefix.
 java.lang.String resolvePrefixForCodingScheme(java.lang.String codingSchemeId)
          Resolve prefix for coding scheme.
 java.lang.String resolvePrefixForCodingScheme(java.lang.String codingSchemeUri, java.lang.String version)
          Resolve prefix for coding scheme.
 java.lang.String resolvePrefixForHistoryCodingScheme(java.lang.String codingSchemeId)
          Resolve prefix for history coding scheme.
 void setDatabaseServiceManager(DatabaseServiceManager databaseServiceManager)
           
 void setHistoryPrefix(java.lang.String historyPrefix)
          Sets the history prefix.
 void setRegistry(Registry registry)
          Sets the registry.
 void setSystemVariables(SystemVariables systemVariables)
          Sets the system variables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPrefixResolver

public DefaultPrefixResolver()
Method Detail

resolveDefaultPrefix

public java.lang.String resolveDefaultPrefix()
Description copied from interface: PrefixResolver
Resolve default prefix.

Specified by:
resolveDefaultPrefix in interface PrefixResolver
Returns:
the string

resolveHistoryPrefix

public java.lang.String resolveHistoryPrefix()
Description copied from interface: PrefixResolver
Resolve history prefix.

Specified by:
resolveHistoryPrefix in interface PrefixResolver
Returns:
the string

resolvePrefixForCodingScheme

public java.lang.String resolvePrefixForCodingScheme(java.lang.String codingSchemeUri,
                                                     java.lang.String version)
Description copied from interface: PrefixResolver
Resolve prefix for coding scheme.

Specified by:
resolvePrefixForCodingScheme in interface PrefixResolver
Parameters:
codingSchemeUri - the coding scheme uri
version - the version
Returns:
the string

resolvePrefixForCodingScheme

public java.lang.String resolvePrefixForCodingScheme(java.lang.String codingSchemeId)
Description copied from interface: PrefixResolver
Resolve prefix for coding scheme.

Specified by:
resolvePrefixForCodingScheme in interface PrefixResolver
Parameters:
codingSchemeId - the coding scheme id
Returns:
the string

resolvePrefixForHistoryCodingScheme

public java.lang.String resolvePrefixForHistoryCodingScheme(java.lang.String codingSchemeId)
Description copied from interface: PrefixResolver
Resolve prefix for history coding scheme.

Specified by:
resolvePrefixForHistoryCodingScheme in interface PrefixResolver
Parameters:
codingSchemeId - the coding scheme id
Returns:
the string

getNextCodingSchemePrefix

public java.lang.String getNextCodingSchemePrefix()
Description copied from interface: PrefixResolver
Gets the next coding scheme prefix.

Specified by:
getNextCodingSchemePrefix in interface PrefixResolver
Returns:
the next coding scheme prefix

getRegistry

public Registry getRegistry()
Gets the registry.

Returns:
the registry

setRegistry

public void setRegistry(Registry registry)
Sets the registry.

Parameters:
registry - the new registry

getSystemVariables

public SystemVariables getSystemVariables()
Gets the system variables.

Returns:
the system variables

setSystemVariables

public void setSystemVariables(SystemVariables systemVariables)
Sets the system variables.

Parameters:
systemVariables - the new system variables

setHistoryPrefix

public void setHistoryPrefix(java.lang.String historyPrefix)
Sets the history prefix.

Parameters:
historyPrefix - the new history prefix

getHistoryPrefix

public java.lang.String getHistoryPrefix()
Gets the history prefix.

Returns:
the history prefix

setDatabaseServiceManager

public void setDatabaseServiceManager(DatabaseServiceManager databaseServiceManager)

getDatabaseServiceManager

public DatabaseServiceManager getDatabaseServiceManager()

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.