|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.ReleaseMetadataImpl
public class ReleaseMetadataImpl
Default implementation of the ReleaseMetadata
interface.
| Field Summary | |
|---|---|
protected String |
key_fields
|
protected boolean |
key_fields_flag
|
| Constructor Summary | |
|---|---|
ReleaseMetadataImpl()
Instantiates an empty ReleaseMetadataImpl. |
|
ReleaseMetadataImpl(ReleaseMetadataImpl rm)
Instantiates a ReleaseMetadataImpl from the specified
ReleaseMetadataImpl. |
|
| Method Summary | |
|---|---|
void |
addAncillaryFile(String file_name,
Reader reader)
Adds ancillary file to HashMap of ancillary files. |
void |
addAtomMapping(AtomMapping cm)
Adds the specified AtomMapping. |
void |
addChangeFile(String file_name,
Reader reader)
Adds change file to HashMap 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. |
int |
compareTo(Object o)
Compares this ReleaseMetadata with the specified object for order. |
boolean |
equals(Object o)
Returns true if the specified object is equal to this object. |
Reader |
getAncillaryFile(String file_name)
Returns a Reader for the given 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. |
int |
hashCode()
Returns a hash code based on key fields. |
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 class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean key_fields_flag
protected String key_fields
| Constructor Detail |
|---|
public ReleaseMetadataImpl()
ReleaseMetadataImpl.
public ReleaseMetadataImpl(ReleaseMetadataImpl rm)
ReleaseMetadataImpl from the specified
ReleaseMetadataImpl.
rm - ReleaseMetadataImpl to be copied| Method Detail |
|---|
public String getReleaseVersion()
getReleaseVersion in interface ReleaseMetadatapublic void setReleaseVersion(String rv)
setReleaseVersion in interface ReleaseMetadatarv - the release versionpublic Date getReleaseDate()
Date.
getReleaseDate in interface ReleaseMetadataDate.public void setReleaseDate(Date rd)
Date.
setReleaseDate in interface ReleaseMetadatard - the release Datepublic String getReleaseDescription()
getReleaseDescription in interface ReleaseMetadatapublic void setReleaseDescription(String rd)
setReleaseDescription in interface ReleaseMetadatard - the release descriptionpublic SourceMetaDescription[] getSourceMetadata()
SourceMetaDescriptions in the current subset.
getSourceMetadata in interface ReleaseMetadataSourceMetaDescription in the current subsetpublic List getSourceMetadataAsList()
SourceMetaDescription in the current subset as a List.
getSourceMetadataAsList in interface ReleaseMetadataSourceMetaDescription in the current subset as a Listpublic void setSourceMetadata(SourceMetaDescription[] sabs)
SourceMetaDescription in the current subset.
setSourceMetadata in interface ReleaseMetadatasabs - the SourceMetaDescription in the current subsetpublic void setSourceMetadata(List sabs)
SourceMetaDescriptions in the current subset.
setSourceMetadata in interface ReleaseMetadatasabs - a List of SourceMetaDescriptions in the current subsetpublic void addSourceMetaDescription(SourceMetaDescription smd)
SourceMetaDescription.
addSourceMetaDescription in interface ReleaseMetadatasmd - the SourceMetaDescription to be addedpublic void removeSourceMetaDescription(SourceMetaDescription smd)
SourceMetaDescription.
removeSourceMetaDescription in interface ReleaseMetadatasmd - the SourceMetaDescription to be removedpublic void clearSourceMetaDescription()
SourceMetaDescriptions.
clearSourceMetaDescription in interface ReleaseMetadatapublic ConceptMapping[] getConceptMappings()
ConceptMappings.
getConceptMappings in interface ReleaseMetadataConceptMappingspublic List getConceptMappingsAsList()
ConceptMappings as a List.
getConceptMappingsAsList in interface ReleaseMetadataConceptMappingspublic void setConceptMappings(ConceptMapping[] cm)
ConceptMappings.
setConceptMappings in interface ReleaseMetadatacm - the ConceptMappingspublic void addConceptMapping(ConceptMapping cm)
ConceptMapping.
addConceptMapping in interface ReleaseMetadatacm - the ConceptMapping to be addedpublic void removeConceptMapping(ConceptMapping cm)
ConceptMapping.
removeConceptMapping in interface ReleaseMetadatacm - the ConceptMapping to be removedpublic void clearConceptMappings()
ConceptMappings.
clearConceptMappings in interface ReleaseMetadatapublic void setConceptMappings(List cm)
ConceptMappings.
setConceptMappings in interface ReleaseMetadatacm - a List of the ConceptMappingspublic String[] getCUIsRemovedFromSubset()
getCUIsRemovedFromSubset in interface ReleaseMetadatapublic void addCUIRemovedFromSubset(String cui)
addCUIRemovedFromSubset in interface ReleaseMetadatacui - Stringpublic AtomMapping[] getAtomMappings()
AtomMappings.
getAtomMappings in interface ReleaseMetadataAtomMappingspublic List getAtomMappingsAsList()
AtomMappings as a List.
getAtomMappingsAsList in interface ReleaseMetadataAtomMappingspublic void setAtomMappings(AtomMapping[] cm)
AtomMappings.
setAtomMappings in interface ReleaseMetadatacm - the AtomMappingspublic void addAtomMapping(AtomMapping cm)
AtomMapping.
addAtomMapping in interface ReleaseMetadatacm - the AtomMapping to be addedpublic void removeAtomMapping(AtomMapping cm)
AtomMapping.
removeAtomMapping in interface ReleaseMetadatacm - the AtomMapping to be removedpublic void clearAtomMappings()
AtomMappings.
clearAtomMappings in interface ReleaseMetadatapublic void setAtomMappings(List cm)
AtomMappings.
setAtomMappings in interface ReleaseMetadatacm - a List of the AtomMappingspublic SourceTermType[] getSourceTermTypePrecedence()
SourceTermTypes in rank order.
getSourceTermTypePrecedence in interface ReleaseMetadataSourceTermTypes in rank orderpublic List getSourceTermTypePrecedenceAsList()
SourceTermTypes in rank order as a List.
getSourceTermTypePrecedenceAsList in interface ReleaseMetadataSourceTermTypes in rank order as a Listpublic void setSourceTermTypePrecedence(SourceTermType[] sab_ttys)
SourceTermTypes in rank order.
setSourceTermTypePrecedence in interface ReleaseMetadatasab_ttys - an array of all SourceTermTypes in rank orderpublic void setSourceTermTypePrecedence(List sab_ttys)
SourceTermTypes in rank order.
setSourceTermTypePrecedence in interface ReleaseMetadatasab_ttys - a List of all SourceTermTypes in rank orderpublic MetaDescription[] getMetadata()
MetaDescriptions in the current subset.
getMetadata in interface ReleaseMetadataMetaDescriptions in the current subsetpublic List getMetadataAsList()
MetaDescription in the current subset as a List.
getMetadataAsList in interface ReleaseMetadataMetaDescription in the current subset as a Listpublic void setMetadata(MetaDescription[] docs)
MetaDescription in the current subset.
setMetadata in interface ReleaseMetadatadocs - the MetaDescription in the current subsetpublic void setMetadata(List docs)
MetaDescriptions in the current subset.
setMetadata in interface ReleaseMetadatadocs - a List of MetaDescriptions in the current subsetpublic void addMetadata(MetaDescription md)
MetaDescription.
addMetadata in interface ReleaseMetadatamd - the MetaDescription to be addedpublic void removeMetadata(MetaDescription md)
MetaDescription.
removeMetadata in interface ReleaseMetadatamd - the MetaDescription to be removedpublic void clearMetadata()
MetaDescriptions.
clearMetadata in interface ReleaseMetadatapublic String[] getChangeFileNames()
String[] of all the file names in the CHANGE directory.
getChangeFileNames in interface ReleaseMetadatapublic Reader getChangeFile(String file_name)
Reader for the given CHANGE file.
getChangeFile in interface ReleaseMetadatafile_name - for CHANGE file
Reader for the given CHANGE filepublic String[] getAncillaryFileNames()
String[] of all the ancillary file names.
getAncillaryFileNames in interface ReleaseMetadatapublic Reader getAncillaryFile(String file_name)
Reader for the given ancillary file.
getAncillaryFile in interface ReleaseMetadatafile_name - for given ancillary file
Reader for the given ancillary file
public void addChangeFile(String file_name,
Reader reader)
HashMap of change files.
addChangeFile in interface ReleaseMetadatafile_name - name of change filereader - a Reader over the file
public void addAncillaryFile(String file_name,
Reader reader)
HashMap of ancillary files.
addAncillaryFile in interface ReleaseMetadatafile_name - name of ancillary filereader - a Reader over the filepublic String getKeyFields()
String key which can be used by equals, compareTo, and
hashCode methods.
getKeyFields in interface ReleaseMetadataString composed from the release version, date, and
description fields.public boolean equals(Object o)
true if the specified object is equal to this object.
The specified object must be a ReleaseMetadata with matching key
fields.
equals in class Objecto - an Object to compare against
true if Object o is equal;
false otherwise.public int hashCode()
hashCode in class Objectpublic int compareTo(Object o)
ReleaseMetadata with the specified object for order.
Returns a negative integer, zero, or a positive integer as this object is
less than, equal to, or greater than the specified object. Results
are indeterminate if the specified parameter is not of the same class.
compareTo in interface Comparableo - the Object to be compared.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||