|
||||||||||
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
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 AtomMapping s. |
void |
clearConceptMappings()
Removes all ConceptMapping s. |
void |
clearMetadata()
Removes all MetaDescription s. |
void |
clearSourceMetaDescription()
Removes all SourceMetaDescription s. |
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 AtomMapping s. |
List |
getAtomMappingsAsList()
Returns all AtomMapping s 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 ConceptMapping s. |
List |
getConceptMappingsAsList()
Returns all ConceptMapping s 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 MetaDescription s 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 SourceMetaDescription s in the current subset. |
List |
getSourceMetadataAsList()
Returns SourceMetaDescription in the current subset as a List . |
SourceTermType[] |
getSourceTermTypePrecedence()
Returns all SourceTermType s in rank order. |
List |
getSourceTermTypePrecedenceAsList()
Returns all SourceTermType s 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 AtomMapping s. |
void |
setAtomMappings(List cm)
Sets the AtomMapping s. |
void |
setConceptMappings(ConceptMapping[] cm)
Sets the ConceptMapping s. |
void |
setConceptMappings(List cm)
Sets the ConceptMapping s. |
void |
setMetadata(List docs)
Sets MetaDescription s 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 SourceMetaDescription s in the current subset. |
void |
setSourceMetadata(SourceMetaDescription[] sabs)
Sets SourceMetaDescription in the current subset. |
void |
setSourceTermTypePrecedence(List sab_ttys)
Sets all SourceTermType s in rank order. |
void |
setSourceTermTypePrecedence(SourceTermType[] sab_ttys)
Sets all SourceTermType s 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 copiedMethod Detail |
public String getReleaseVersion()
getReleaseVersion
in interface ReleaseMetadata
public void setReleaseVersion(String rv)
setReleaseVersion
in interface ReleaseMetadata
rv
- the release versionpublic Date getReleaseDate()
Date
.
getReleaseDate
in interface ReleaseMetadata
Date
.public void setReleaseDate(Date rd)
Date
.
setReleaseDate
in interface ReleaseMetadata
rd
- the release Date
public String getReleaseDescription()
getReleaseDescription
in interface ReleaseMetadata
public void setReleaseDescription(String rd)
setReleaseDescription
in interface ReleaseMetadata
rd
- the release descriptionpublic SourceMetaDescription[] getSourceMetadata()
SourceMetaDescription
s in the current subset.
getSourceMetadata
in interface ReleaseMetadata
SourceMetaDescription
in the current subsetpublic List getSourceMetadataAsList()
SourceMetaDescription
in the current subset as a List
.
getSourceMetadataAsList
in interface ReleaseMetadata
SourceMetaDescription
in the current subset as a List
public void setSourceMetadata(SourceMetaDescription[] sabs)
SourceMetaDescription
in the current subset.
setSourceMetadata
in interface ReleaseMetadata
sabs
- the SourceMetaDescription
in the current subsetpublic void setSourceMetadata(List sabs)
SourceMetaDescription
s in the current subset.
setSourceMetadata
in interface ReleaseMetadata
sabs
- a List
of SourceMetaDescription
s in the current subsetpublic void addSourceMetaDescription(SourceMetaDescription smd)
SourceMetaDescription
.
addSourceMetaDescription
in interface ReleaseMetadata
smd
- the SourceMetaDescription
to be addedpublic void removeSourceMetaDescription(SourceMetaDescription smd)
SourceMetaDescription
.
removeSourceMetaDescription
in interface ReleaseMetadata
smd
- the SourceMetaDescription
to be removedpublic void clearSourceMetaDescription()
SourceMetaDescription
s.
clearSourceMetaDescription
in interface ReleaseMetadata
public ConceptMapping[] getConceptMappings()
ConceptMapping
s.
getConceptMappings
in interface ReleaseMetadata
ConceptMapping
spublic List getConceptMappingsAsList()
ConceptMapping
s as a List
.
getConceptMappingsAsList
in interface ReleaseMetadata
ConceptMapping
spublic void setConceptMappings(ConceptMapping[] cm)
ConceptMapping
s.
setConceptMappings
in interface ReleaseMetadata
cm
- the ConceptMapping
spublic void addConceptMapping(ConceptMapping cm)
ConceptMapping
.
addConceptMapping
in interface ReleaseMetadata
cm
- the ConceptMapping
to be addedpublic void removeConceptMapping(ConceptMapping cm)
ConceptMapping
.
removeConceptMapping
in interface ReleaseMetadata
cm
- the ConceptMapping
to be removedpublic void clearConceptMappings()
ConceptMapping
s.
clearConceptMappings
in interface ReleaseMetadata
public void setConceptMappings(List cm)
ConceptMapping
s.
setConceptMappings
in interface ReleaseMetadata
cm
- a List
of the ConceptMapping
spublic String[] getCUIsRemovedFromSubset()
getCUIsRemovedFromSubset
in interface ReleaseMetadata
public void addCUIRemovedFromSubset(String cui)
addCUIRemovedFromSubset
in interface ReleaseMetadata
cui
- String
public AtomMapping[] getAtomMappings()
AtomMapping
s.
getAtomMappings
in interface ReleaseMetadata
AtomMapping
spublic List getAtomMappingsAsList()
AtomMapping
s as a List
.
getAtomMappingsAsList
in interface ReleaseMetadata
AtomMapping
spublic void setAtomMappings(AtomMapping[] cm)
AtomMapping
s.
setAtomMappings
in interface ReleaseMetadata
cm
- the AtomMapping
spublic void addAtomMapping(AtomMapping cm)
AtomMapping
.
addAtomMapping
in interface ReleaseMetadata
cm
- the AtomMapping
to be addedpublic void removeAtomMapping(AtomMapping cm)
AtomMapping
.
removeAtomMapping
in interface ReleaseMetadata
cm
- the AtomMapping
to be removedpublic void clearAtomMappings()
AtomMapping
s.
clearAtomMappings
in interface ReleaseMetadata
public void setAtomMappings(List cm)
AtomMapping
s.
setAtomMappings
in interface ReleaseMetadata
cm
- a List
of the AtomMapping
spublic SourceTermType[] getSourceTermTypePrecedence()
SourceTermType
s in rank order.
getSourceTermTypePrecedence
in interface ReleaseMetadata
SourceTermType
s in rank orderpublic List getSourceTermTypePrecedenceAsList()
SourceTermType
s in rank order as a List
.
getSourceTermTypePrecedenceAsList
in interface ReleaseMetadata
SourceTermType
s in rank order as a List
public void setSourceTermTypePrecedence(SourceTermType[] sab_ttys)
SourceTermType
s in rank order.
setSourceTermTypePrecedence
in interface ReleaseMetadata
sab_ttys
- an array of all SourceTermType
s in rank orderpublic void setSourceTermTypePrecedence(List sab_ttys)
SourceTermType
s in rank order.
setSourceTermTypePrecedence
in interface ReleaseMetadata
sab_ttys
- a List
of all SourceTermType
s in rank orderpublic MetaDescription[] getMetadata()
MetaDescription
s in the current subset.
getMetadata
in interface ReleaseMetadata
MetaDescription
s in the current subsetpublic List getMetadataAsList()
MetaDescription
in the current subset as a List
.
getMetadataAsList
in interface ReleaseMetadata
MetaDescription
in the current subset as a List
public void setMetadata(MetaDescription[] docs)
MetaDescription
in the current subset.
setMetadata
in interface ReleaseMetadata
docs
- the MetaDescription
in the current subsetpublic void setMetadata(List docs)
MetaDescription
s in the current subset.
setMetadata
in interface ReleaseMetadata
docs
- a List
of MetaDescription
s in the current subsetpublic void addMetadata(MetaDescription md)
MetaDescription
.
addMetadata
in interface ReleaseMetadata
md
- the MetaDescription
to be addedpublic void removeMetadata(MetaDescription md)
MetaDescription
.
removeMetadata
in interface ReleaseMetadata
md
- the MetaDescription
to be removedpublic void clearMetadata()
MetaDescription
s.
clearMetadata
in interface ReleaseMetadata
public String[] getChangeFileNames()
String
[] of all the file names in the CHANGE directory.
getChangeFileNames
in interface ReleaseMetadata
public Reader getChangeFile(String file_name)
Reader
for the given CHANGE file.
getChangeFile
in interface ReleaseMetadata
file_name
- for CHANGE file
Reader
for the given CHANGE filepublic String[] getAncillaryFileNames()
String
[] of all the ancillary file names.
getAncillaryFileNames
in interface ReleaseMetadata
public Reader getAncillaryFile(String file_name)
Reader
for the given ancillary file.
getAncillaryFile
in interface ReleaseMetadata
file_name
- for given ancillary file
Reader
for the given ancillary filepublic void addChangeFile(String file_name, Reader reader)
HashMap
of change files.
addChangeFile
in interface ReleaseMetadata
file_name
- name of change filereader
- a Reader
over the filepublic void addAncillaryFile(String file_name, Reader reader)
HashMap
of ancillary files.
addAncillaryFile
in interface ReleaseMetadata
file_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 ReleaseMetadata
String
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.
o
- an Object
to compare against
true
if Object o is equal;
false
otherwise.public int hashCode()
public 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 Comparable
o
- the Object to be compared.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |