org.lexevs.registry.service
Class DelegatingDatabaseToXmlRegistry

java.lang.Object
  extended by org.lexevs.registry.service.DelegatingDatabaseToXmlRegistry
All Implemented Interfaces:
Registry

public class DelegatingDatabaseToXmlRegistry
extends java.lang.Object
implements Registry

The Class DelegatingDatabaseToXmlRegistry.

Author:
Kevin Peterson

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lexevs.registry.service.Registry
Registry.KnownTags, Registry.ResourceType
 
Constructor Summary
DelegatingDatabaseToXmlRegistry()
           
 
Method Summary
 void addNewItem(RegistryEntry entry)
          Adds the new item.
 boolean containsCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
          Contains coding scheme entry.
 boolean containsNonCodingSchemeEntry(java.lang.String uri)
          Contains non coding scheme entry.
 java.util.List<RegistryEntry> getAllRegistryEntries()
          Gets the all registry entries.
 java.util.List<RegistryEntry> getAllRegistryEntriesOfType(Registry.ResourceType type)
          Gets the all registry entries of type.
 java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeAndURI(Registry.ResourceType type, java.lang.String uri)
          Gets the all registry entries of type and URI.
 java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeURIAndVersion(Registry.ResourceType type, java.lang.String uri, java.lang.String version)
          Gets the all registry entries of type, URI and version.
 RegistryEntry getCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
          Gets the coding scheme entry.
 Registry getDatabaseRegistry()
          Gets the database registry.
 java.util.List<RegistryEntry> getEntriesForUri(java.lang.String uri)
          Gets the entries for uri.
 java.util.Date getLastUpdateTime()
          Gets the last update time.
 java.lang.String getNextDBIdentifier()
          Gets the next db identifier.
 java.lang.String getNextHistoryIdentifier()
          Gets the next history identifier.
 RegistryEntry getNonCodingSchemeEntry(java.lang.String uri)
          Gets the non coding scheme entry.
 Registry getXmlRegistry()
          Gets the xml registry.
 void removeEntry(RegistryEntry entry)
          Removes the entry.
 void setDatabaseRegistry(Registry databaseRegistry)
          Sets the database registry.
 void setXmlRegistry(Registry xmlRegistry)
          Sets the xml registry.
 void updateCodingSchemeEntryTag(AbsoluteCodingSchemeVersionReference codingScheme, java.lang.String newTag)
          Update coding scheme entry tag.
 void updateEntry(RegistryEntry entry)
          Update entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingDatabaseToXmlRegistry

public DelegatingDatabaseToXmlRegistry()
Method Detail

addNewItem

public void addNewItem(RegistryEntry entry)
                throws java.lang.Exception
Description copied from interface: Registry
Adds the new item.

Specified by:
addNewItem in interface Registry
Parameters:
entry - the entry
Throws:
java.lang.Exception - the exception

getAllRegistryEntries

public java.util.List<RegistryEntry> getAllRegistryEntries()
Description copied from interface: Registry
Gets the all registry entries.

Specified by:
getAllRegistryEntries in interface Registry
Returns:
the all registry entries

getAllRegistryEntriesOfType

public java.util.List<RegistryEntry> getAllRegistryEntriesOfType(Registry.ResourceType type)
Description copied from interface: Registry
Gets the all registry entries of type.

Specified by:
getAllRegistryEntriesOfType in interface Registry
Parameters:
type - the type
Returns:
the all registry entries of type

getAllRegistryEntriesOfTypeAndURI

public java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeAndURI(Registry.ResourceType type,
                                                                       java.lang.String uri)
Description copied from interface: Registry
Gets the all registry entries of type and URI.

Specified by:
getAllRegistryEntriesOfTypeAndURI in interface Registry
Parameters:
type - the resource type
uri - the resource uri
Returns:
the all registry entries of type and URI

getAllRegistryEntriesOfTypeURIAndVersion

public java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeURIAndVersion(Registry.ResourceType type,
                                                                              java.lang.String uri,
                                                                              java.lang.String version)
Description copied from interface: Registry
Gets the all registry entries of type, URI and version.

Specified by:
getAllRegistryEntriesOfTypeURIAndVersion in interface Registry
Parameters:
type - the resource type
uri - the resource uri
version - the verion
Returns:
the all registry entries of type and URI

getEntriesForUri

public java.util.List<RegistryEntry> getEntriesForUri(java.lang.String uri)
                                               throws LBParameterException
Description copied from interface: Registry
Gets the entries for uri.

Specified by:
getEntriesForUri in interface Registry
Parameters:
uri - the uri
Returns:
the entries for uri
Throws:
LBParameterException - the LB parameter exception

getLastUpdateTime

public java.util.Date getLastUpdateTime()
Description copied from interface: Registry
Gets the last update time.

Specified by:
getLastUpdateTime in interface Registry
Returns:
the last update time

getNextDBIdentifier

public java.lang.String getNextDBIdentifier()
                                     throws LBInvocationException
Description copied from interface: Registry
Gets the next db identifier.

Specified by:
getNextDBIdentifier in interface Registry
Returns:
the next db identifier
Throws:
LBInvocationException - the LB invocation exception

getNextHistoryIdentifier

public java.lang.String getNextHistoryIdentifier()
                                          throws LBInvocationException
Description copied from interface: Registry
Gets the next history identifier.

Specified by:
getNextHistoryIdentifier in interface Registry
Returns:
the next history identifier
Throws:
LBInvocationException - the LB invocation exception

containsCodingSchemeEntry

public boolean containsCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
Description copied from interface: Registry
Contains coding scheme entry.

Specified by:
containsCodingSchemeEntry in interface Registry
Parameters:
codingScheme - the coding scheme
Returns:
true, if successful

containsNonCodingSchemeEntry

public boolean containsNonCodingSchemeEntry(java.lang.String uri)
Description copied from interface: Registry
Contains non coding scheme entry.

Specified by:
containsNonCodingSchemeEntry in interface Registry
Parameters:
uri - the uri
Returns:
true, if successful

getCodingSchemeEntry

public RegistryEntry getCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
                                   throws LBParameterException
Description copied from interface: Registry
Gets the coding scheme entry.

Specified by:
getCodingSchemeEntry in interface Registry
Parameters:
codingScheme - the coding scheme
Returns:
the coding scheme entry
Throws:
LBParameterException - the LB parameter exception

getNonCodingSchemeEntry

public RegistryEntry getNonCodingSchemeEntry(java.lang.String uri)
                                      throws LBParameterException
Description copied from interface: Registry
Gets the non coding scheme entry.

Specified by:
getNonCodingSchemeEntry in interface Registry
Parameters:
uri - the uri
Returns:
the non coding scheme entry
Throws:
LBParameterException - the LB parameter exception

removeEntry

public void removeEntry(RegistryEntry entry)
                 throws LBParameterException
Description copied from interface: Registry
Removes the entry.

Specified by:
removeEntry in interface Registry
Parameters:
entry - the entry
Throws:
LBParameterException - the LB parameter exception

updateEntry

public void updateEntry(RegistryEntry entry)
                 throws LBParameterException
Description copied from interface: Registry
Update entry.

Specified by:
updateEntry in interface Registry
Parameters:
entry - the entry
Throws:
LBParameterException - the LB parameter exception

updateCodingSchemeEntryTag

public void updateCodingSchemeEntryTag(AbsoluteCodingSchemeVersionReference codingScheme,
                                       java.lang.String newTag)
                                throws LBParameterException
Update coding scheme entry tag.

Parameters:
codingScheme - the coding scheme
newTag - the new tag
Throws:
LBParameterException - the LB parameter exception

getDatabaseRegistry

public Registry getDatabaseRegistry()
Gets the database registry.

Returns:
the database registry

setDatabaseRegistry

public void setDatabaseRegistry(Registry databaseRegistry)
Sets the database registry.

Parameters:
databaseRegistry - the new database registry

getXmlRegistry

public Registry getXmlRegistry()
Gets the xml registry.

Returns:
the xml registry

setXmlRegistry

public void setXmlRegistry(Registry xmlRegistry)
Sets the xml registry.

Parameters:
xmlRegistry - the new xml registry

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.