public class DelegatingDatabaseToXmlRegistry extends java.lang.Object implements Registry
Registry.KnownTags, Registry.ResourceType
Constructor and Description |
---|
DelegatingDatabaseToXmlRegistry() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void addNewItem(RegistryEntry entry) throws java.lang.Exception
Registry
addNewItem
in interface Registry
entry
- the entryjava.lang.Exception
- the exceptionpublic java.util.List<RegistryEntry> getAllRegistryEntries()
Registry
getAllRegistryEntries
in interface Registry
public java.util.List<RegistryEntry> getAllRegistryEntriesOfType(Registry.ResourceType type)
Registry
getAllRegistryEntriesOfType
in interface Registry
type
- the typepublic java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeAndURI(Registry.ResourceType type, java.lang.String uri)
Registry
getAllRegistryEntriesOfTypeAndURI
in interface Registry
type
- the resource typeuri
- the resource uripublic java.util.List<RegistryEntry> getAllRegistryEntriesOfTypeURIAndVersion(Registry.ResourceType type, java.lang.String uri, java.lang.String version)
Registry
getAllRegistryEntriesOfTypeURIAndVersion
in interface Registry
type
- the resource typeuri
- the resource uriversion
- the verionpublic java.util.List<RegistryEntry> getEntriesForUri(java.lang.String uri) throws LBParameterException
Registry
getEntriesForUri
in interface Registry
uri
- the uriLBParameterException
- the LB parameter exceptionpublic java.util.Date getLastUpdateTime()
Registry
getLastUpdateTime
in interface Registry
public java.lang.String getNextDBIdentifier() throws LBInvocationException
Registry
getNextDBIdentifier
in interface Registry
LBInvocationException
- the LB invocation exceptionpublic java.lang.String getNextHistoryIdentifier() throws LBInvocationException
Registry
getNextHistoryIdentifier
in interface Registry
LBInvocationException
- the LB invocation exceptionpublic boolean containsCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme)
Registry
containsCodingSchemeEntry
in interface Registry
codingScheme
- the coding schemepublic boolean containsNonCodingSchemeEntry(java.lang.String uri)
Registry
containsNonCodingSchemeEntry
in interface Registry
uri
- the uripublic RegistryEntry getCodingSchemeEntry(AbsoluteCodingSchemeVersionReference codingScheme) throws LBParameterException
Registry
getCodingSchemeEntry
in interface Registry
codingScheme
- the coding schemeLBParameterException
- the LB parameter exceptionpublic RegistryEntry getNonCodingSchemeEntry(java.lang.String uri) throws LBParameterException
Registry
getNonCodingSchemeEntry
in interface Registry
uri
- the uriLBParameterException
- the LB parameter exceptionpublic void removeEntry(RegistryEntry entry) throws LBParameterException
Registry
removeEntry
in interface Registry
entry
- the entryLBParameterException
- the LB parameter exceptionpublic void updateEntry(RegistryEntry entry) throws LBParameterException
Registry
updateEntry
in interface Registry
entry
- the entryLBParameterException
- the LB parameter exceptionpublic void updateCodingSchemeEntryTag(AbsoluteCodingSchemeVersionReference codingScheme, java.lang.String newTag) throws LBParameterException
codingScheme
- the coding schemenewTag
- the new tagLBParameterException
- the LB parameter exceptionpublic Registry getDatabaseRegistry()
public void setDatabaseRegistry(Registry databaseRegistry)
databaseRegistry
- the new database registrypublic Registry getXmlRegistry()
public void setXmlRegistry(Registry xmlRegistry)
xmlRegistry
- the new xml registry