gov.nih.nlm.umls.meta
Interface ReleaseMetadata

All Superinterfaces:
Comparable
All Known Implementing Classes:
ReleaseMetadataImpl

public interface ReleaseMetadata
extends Comparable

Represents information about a release of the Metathesaurus. Corresponds to release.dat, plus some data in MRSAB, MRRANK, MRDOC, MRCUI, MRAUI.

Author:
Brian Carlsen, Deborah Shapiro

Method Summary
 void addAncillaryFile(String file_name, Reader reader)
          Adds ancillary file to a list of ancillary files.
 void addAtomMapping(AtomMapping cm)
          Adds the specified AtomMapping.
 void addChangeFile(String file_name, Reader reader)
          Adds change file to a list of change files.
 void addConceptMapping(ConceptMapping cm)
          Adds the specified ConceptMapping.
 void addCUIRemovedFromSubset(String cui)
          Add SUBX cui to list of cuis removed from subset.
 void addMetadata(MetaDescription md)
          Adds the specified MetaDescription.
 void addSourceMetaDescription(SourceMetaDescription smd)
          Adds the specified SourceMetaDescription.
 void clearAtomMappings()
          Removes all AtomMappings.
 void clearConceptMappings()
          Removes all ConceptMappings.
 void clearMetadata()
          Removes all MetaDescriptions.
 void clearSourceMetaDescription()
          Removes all SourceMetaDescriptions.
 Reader getAncillaryFile(String file_name)
          Returns a Reader over the specified ancillary file.
 String[] getAncillaryFileNames()
          Returns a String[] of all the ancillary file names.
 AtomMapping[] getAtomMappings()
          Returns all AtomMappings.
 List getAtomMappingsAsList()
          Returns all AtomMappings as a List.
 Reader getChangeFile(String file_name)
          Returns the Reader for the given CHANGE file.
 String[] getChangeFileNames()
          Returns a String[] of all the file names in the CHANGE directory.
 ConceptMapping[] getConceptMappings()
          Returns all ConceptMappings.
 List getConceptMappingsAsList()
          Returns all ConceptMappings as a List.
 String[] getCUIsRemovedFromSubset()
          List of SUBX cuis.
 String getKeyFields()
          Returns a String key which can be used by equals, compareTo, and hashCode methods.
 MetaDescription[] getMetadata()
          Returns MetaDescriptions in the current subset.
 List getMetadataAsList()
          Returns MetaDescription in the current subset as a List.
 Date getReleaseDate()
          Returns the release Date.
 String getReleaseDescription()
          Returns the release description.
 String getReleaseVersion()
          Returns the release version.
 SourceMetaDescription[] getSourceMetadata()
          Returns SourceMetaDescriptions in the current subset.
 List getSourceMetadataAsList()
          Returns SourceMetaDescription in the current subset as a List.
 SourceTermType[] getSourceTermTypePrecedence()
          Returns all SourceTermTypes in rank order.
 List getSourceTermTypePrecedenceAsList()
          Returns all SourceTermTypes in rank order as a List.
 void removeAtomMapping(AtomMapping cm)
          Removes the specified AtomMapping.
 void removeConceptMapping(ConceptMapping cm)
          Removes the specified ConceptMapping.
 void removeMetadata(MetaDescription md)
          Removes the specified MetaDescription.
 void removeSourceMetaDescription(SourceMetaDescription smd)
          Removes the specified SourceMetaDescription.
 void setAtomMappings(AtomMapping[] cm)
          Sets the AtomMappings.
 void setAtomMappings(List cm)
          Sets the AtomMappings.
 void setConceptMappings(ConceptMapping[] cm)
          Sets the ConceptMappings.
 void setConceptMappings(List cm)
          Sets the ConceptMappings.
 void setMetadata(List docs)
          Sets MetaDescriptions in the current subset.
 void setMetadata(MetaDescription[] docs)
          Sets MetaDescription in the current subset.
 void setReleaseDate(Date rd)
          Sets the release Date.
 void setReleaseDescription(String rd)
          Sets the release description.
 void setReleaseVersion(String rv)
          Sets the release version.
 void setSourceMetadata(List sabs)
          Sets SourceMetaDescriptions in the current subset.
 void setSourceMetadata(SourceMetaDescription[] sabs)
          Sets SourceMetaDescription in the current subset.
 void setSourceTermTypePrecedence(List sab_ttys)
          Sets all SourceTermTypes in rank order.
 void setSourceTermTypePrecedence(SourceTermType[] sab_ttys)
          Sets all SourceTermTypes in rank order.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getReleaseVersion

public String getReleaseVersion()
Returns the release version.

Returns:
tbe release version

setReleaseVersion

public void setReleaseVersion(String rv)
Sets the release version.

Parameters:
rv - tbe release version

getReleaseDate

public Date getReleaseDate()
Returns the release Date.

Returns:
tbe release Date.

setReleaseDate

public void setReleaseDate(Date rd)
Sets the release Date.

Parameters:
rd - tbe release Date

getReleaseDescription

public String getReleaseDescription()
Returns the release description.

Returns:
tbe relase description

setReleaseDescription

public void setReleaseDescription(String rd)
Sets the release description.

Parameters:
rd - tbe release description

getSourceMetadata

public SourceMetaDescription[] getSourceMetadata()
Returns SourceMetaDescriptions in the current subset.

Returns:
an array of all SourceMetaDescription in the current subset

getSourceMetadataAsList

public List getSourceMetadataAsList()
Returns SourceMetaDescription in the current subset as a List.

Returns:
SourceMetaDescription in the current subset as a List

setSourceMetadata

public void setSourceMetadata(SourceMetaDescription[] sabs)
Sets SourceMetaDescription in the current subset.

Parameters:
sabs - the SourceMetaDescription in the current subset

setSourceMetadata

public void setSourceMetadata(List sabs)
Sets SourceMetaDescriptions in the current subset.

Parameters:
sabs - a List of SourceMetaDescriptions in the current subset

addSourceMetaDescription

public void addSourceMetaDescription(SourceMetaDescription smd)
Adds the specified SourceMetaDescription.

Parameters:
smd - the SourceMetaDescription to be added

removeSourceMetaDescription

public void removeSourceMetaDescription(SourceMetaDescription smd)
Removes the specified SourceMetaDescription.

Parameters:
smd - the SourceMetaDescription to be removed

clearSourceMetaDescription

public void clearSourceMetaDescription()
Removes all SourceMetaDescriptions.


getConceptMappings

public ConceptMapping[] getConceptMappings()
Returns all ConceptMappings.

Returns:
an array of all ConceptMappings

getConceptMappingsAsList

public List getConceptMappingsAsList()
Returns all ConceptMappings as a List.

Returns:
all ConceptMappings

setConceptMappings

public void setConceptMappings(ConceptMapping[] cm)
Sets the ConceptMappings.

Parameters:
cm - the ConceptMappings

setConceptMappings

public void setConceptMappings(List cm)
Sets the ConceptMappings.

Parameters:
cm - a List of the ConceptMappings

addConceptMapping

public void addConceptMapping(ConceptMapping cm)
Adds the specified ConceptMapping.

Parameters:
cm - the ConceptMapping to be added

removeConceptMapping

public void removeConceptMapping(ConceptMapping cm)
Removes the specified ConceptMapping.

Parameters:
cm - the ConceptMapping to be removed

clearConceptMappings

public void clearConceptMappings()
Removes all ConceptMappings.


getCUIsRemovedFromSubset

public String[] getCUIsRemovedFromSubset()
List of SUBX cuis.

Returns:
array of SUBX cuis

addCUIRemovedFromSubset

public void addCUIRemovedFromSubset(String cui)
Add SUBX cui to list of cuis removed from subset.

Parameters:
cui - String

getAtomMappings

public AtomMapping[] getAtomMappings()
Returns all AtomMappings.

Returns:
an array of all AtomMappings

getAtomMappingsAsList

public List getAtomMappingsAsList()
Returns all AtomMappings as a List.

Returns:
all AtomMappings

setAtomMappings

public void setAtomMappings(AtomMapping[] cm)
Sets the AtomMappings.

Parameters:
cm - the AtomMappings

setAtomMappings

public void setAtomMappings(List cm)
Sets the AtomMappings.

Parameters:
cm - a List of the AtomMappings

addAtomMapping

public void addAtomMapping(AtomMapping cm)
Adds the specified AtomMapping.

Parameters:
cm - the AtomMapping to be added

removeAtomMapping

public void removeAtomMapping(AtomMapping cm)
Removes the specified AtomMapping.

Parameters:
cm - the AtomMapping to be removed

clearAtomMappings

public void clearAtomMappings()
Removes all AtomMappings.


getSourceTermTypePrecedence

public SourceTermType[] getSourceTermTypePrecedence()
Returns all SourceTermTypes in rank order.

Returns:
an array of all SourceTermTypes in rank order

getSourceTermTypePrecedenceAsList

public List getSourceTermTypePrecedenceAsList()
Returns all SourceTermTypes in rank order as a List.

Returns:
all SourceTermTypes in rank order as a List

setSourceTermTypePrecedence

public void setSourceTermTypePrecedence(SourceTermType[] sab_ttys)
Sets all SourceTermTypes in rank order.

Parameters:
sab_ttys - an array of all SourceTermTypes in rank order

setSourceTermTypePrecedence

public void setSourceTermTypePrecedence(List sab_ttys)
Sets all SourceTermTypes in rank order.

Parameters:
sab_ttys - a List of all SourceTermTypes in rank order

getMetadata

public MetaDescription[] getMetadata()
Returns MetaDescriptions in the current subset.

Returns:
an array of all MetaDescriptions in the current subset

getMetadataAsList

public List getMetadataAsList()
Returns MetaDescription in the current subset as a List.

Returns:
MetaDescription in the current subset as a List

setMetadata

public void setMetadata(MetaDescription[] docs)
Sets MetaDescription in the current subset.

Parameters:
docs - the MetaDescription in the current subset

setMetadata

public void setMetadata(List docs)
Sets MetaDescriptions in the current subset.

Parameters:
docs - a List of MetaDescriptions in the current subset

addMetadata

public void addMetadata(MetaDescription md)
Adds the specified MetaDescription.

Parameters:
md - the MetaDescription to be added

removeMetadata

public void removeMetadata(MetaDescription md)
Removes the specified MetaDescription.

Parameters:
md - the MetaDescription to be removed

clearMetadata

public void clearMetadata()
Removes all MetaDescriptions.


getChangeFileNames

public String[] getChangeFileNames()
Returns a String[] of all the file names in the CHANGE directory.

Returns:
array of all the file names in the CHANGE directory

getChangeFile

public Reader getChangeFile(String file_name)
Returns the Reader for the given CHANGE file.

Parameters:
file_name - CHANGE file
Returns:
Reader for the given CHANGE file

getAncillaryFileNames

public String[] getAncillaryFileNames()
Returns a String[] of all the ancillary file names.

Returns:
array of all the ancillary file names

getAncillaryFile

public Reader getAncillaryFile(String file_name)
Returns a Reader over the specified ancillary file.

Parameters:
file_name - ancillary file
Returns:
a Reader over the specified ancillary file

addChangeFile

public void addChangeFile(String file_name,
                          Reader reader)
Adds change file to a list of change files.

Parameters:
file_name - name of change file
reader - a Reader over the file

addAncillaryFile

public void addAncillaryFile(String file_name,
                             Reader reader)
Adds ancillary file to a list of ancillary files.

Parameters:
file_name - name of ancillary file
reader - a Reader over the file

getKeyFields

public String getKeyFields()
Returns a String key which can be used by equals, compareTo, and hashCode methods.

Returns:
a String composed from key ReleaseMetadata fields.


Copyright ©2005