|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.Source
public final class Source
Represents a UMLS source. This class ensures that each unique source is represented by a singleton object. In order for this to work correctly, the class must be properly initialized.
| Constructor Summary | |
|---|---|
Source()
Instantiates an empty Source. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this Source to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
String |
getAtnl()
Returns the attribute names as a comma (,) separated list of attribute name abbreviations (ATNL). |
AttributeName[] |
getAttributeNames()
Get the AttributeNames for this Source. |
List |
getAttributeNamesAsList()
Returns the AttributeNames as a List. |
String |
getAttributeNamesAsString()
Returns the attribute names as a comma (,) separated list of attribute name abbreviations (ATNL). |
String |
getCenc()
Returns the ISO character encoding (CENC). |
int |
getCfr()
Returns the frequency of concepts (CFR). |
String |
getCharacterEncoding()
Returns the ISO character encoding (CENC). |
String |
getCitation()
Returns the citation information (SCIT). |
int |
getConceptFrequency()
Returns the frequency of concepts (CFR). |
String |
getContentContact()
Returns the content contact information (SCC). |
String |
getContextType()
Returns the context type (CXTY). |
static Source[] |
getCurrentSources()
Returns all current Sources with CURVER = "N". |
static List |
getCurrentSourcesAsList()
Returns all current Sources with CURVER = "N"
as a List. |
String |
getCurver()
Returns the "is current version" value (CURVER). |
String |
getCxty()
Returns the context type (CXTY). |
String |
getImeta()
Returns the version of the Metathesaurus in which this source first appeared (IMETA). |
String |
getInsertMetaVersion()
Returns the version of the Metathesaurus in which this source first appeared (IMETA). |
Language |
getLanguage()
Returns the Language (LAT). |
Language |
getLat()
Returns the Language (LAT). |
String |
getLicenseContact()
Returns the license contact information (SLC). |
Date |
getMend()
Returns the date when this source is no longer valid in the Metathesaurus (MEND). |
Date |
getMstart()
Returns the date when this source becomes valid in the Metathesaurus (MSTART). |
String |
getOfficialName()
Returns the source official name (SON). |
String |
getRcui()
Returns the concept identifier for the root SRC concept (VCUI). |
String |
getRemoveMetaVersion()
Returns the first version of the Metathesaurus in which this source no longer (RMETA). |
String |
getRestrictionLevel()
Returns the restriction level (SRL). |
String |
getRmeta()
Returns the first version of the Metathesaurus in which this source no longer (RMETA). |
String |
getRootConceptIdentifier()
Returns the concept identifier for the root SRC concept (VCUI). |
String |
getRootSourceAbbreviation()
Returns the root source abbreviation (RSAB). |
String |
getRsab()
Returns the root source abbreviation (RSAB). |
String |
getSabin()
Returns the "in current subset" value (SABIN). |
String |
getScc()
Returns the content contact information (SCC). |
String |
getScit()
Returns the citation information (SCIT). |
String |
getSf()
Returns the source family (SF). |
String |
getShortName()
Returns the source short name (SSN). |
String |
getSlc()
Returns the license contact information (SLC). |
String |
getSon()
Returns the source official name (SON). |
static Source |
getSource(String sab)
Returns the Source for the specified versioned source abbreviation. |
String |
getSourceFamily()
Returns the source family (SF). |
static Source[] |
getSources()
Returns all Sources. |
static List |
getSourcesAsList()
Returns all Sources as a List. |
static List |
getSourcesForFamily(String family)
Returns the list of Sources for a specified source family. |
static Set |
getSourcesForFamilyAsSet(String family)
Returns the set of Sources for a specified source family. |
String |
getSrl()
Returns the restriction level (SRL). |
String |
getSsn()
Returns the source short name (SSN). |
String |
getSver()
Returns source version (SVER). |
int |
getTermFrequency()
Returns the frequency of terms (TFR). |
TermType[] |
getTermTypes()
Returns the TermTypes. |
List |
getTermTypesAsList()
Returns the TermTypes as a List. |
String |
getTermTypesAsString()
Returns the term types as a comma (,) separated list of term type abbreviations (TTYL). |
int |
getTfr()
Returns the frequency of terms (TFR). |
String |
getTtyl()
Returns the term types as a comma (,) separated list of term type abbreviations (TTYL). |
Date |
getValidEndDate()
Returns the date when this source is no longer valid in the Metathesaurus (MEND). |
Date |
getValidStartDate()
Returns the date when this source becomes valid in the Metathesaurus (MSTART). |
String |
getVcui()
Returns the concept identifier for the versioned SRC concept (VCUI). |
String |
getVersion()
Returns source version (SVER). |
String |
getVersionedConceptIdentifier()
Returns the concept identifier for the versioned SRC concept (VCUI). |
String |
getVersionedSourceAbbreviation()
Returns the versioned source abbreviation (VSAB). |
String |
getVsab()
Returns the versioned source abbreviation (VSAB). |
int |
hashCode()
Return a hash code based on key fields. |
boolean |
inCurrentSubset()
Indicates whether or not this source is represented in the current subset. |
static void |
initialize(List meta_dsc)
Initializes the Map used to track all of the Sources that
exist at one time. |
static void |
initialize(SourceMetaDescription[] meta_dsc)
Initializes the Map used to track all of the
Sources that exist at one time. |
boolean |
isCurrentVersion()
Indicates whether or not this represents the current version of the source. |
void |
setInCurrentSubset(boolean sabin)
Sets whether or not this represents the current version of the source. |
void |
setSabin(String sabin)
Sets the "in current subset" value (SABIN). |
String |
toString()
Returns the versioned source abbreviation (VSAB). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Source()
Source.
| Method Detail |
|---|
public static void initialize(SourceMetaDescription[] meta_dsc)
Map used to track all of the
Sources that exist at one time.
meta_dsc - an array of SourceMetaDescriptionspublic static void initialize(List meta_dsc)
Map used to track all of the Sources that
exist at one time. This is implemented as a call to
initialize(SourceMetaDescription[]).
meta_dsc - an array of SourceMetaDescriptions
IllegalStateException - if an attempt is made to call this method
more than oncepublic static Source getSource(String sab)
Source for the specified versioned source abbreviation.
This method will return null if the initialize
method has not been called or if the specified abbreviation
was not one of those used during initialization.
sab - the specified versioned or versionless source abbreviation
Source for the specified abbreviationpublic static Source[] getSources()
Sources.
Sourcepublic static List getSourcesAsList()
Sources as a List.
Sources as a Listpublic static Source[] getCurrentSources()
Sources with CURVER = "N".
Sourcespublic static List getCurrentSourcesAsList()
Sources with CURVER = "N"
as a List.
Sources as a Listpublic String getVcui()
getVersionedConceptIdentifier().
getVcui in interface SourceMetaDescriptionpublic String getVersionedConceptIdentifier()
getVersionedConceptIdentifier in interface SourceMetaDescriptionpublic String getRcui()
getRootConceptIdentifier().
getRcui in interface SourceMetaDescriptionpublic String getRootConceptIdentifier()
getRootConceptIdentifier in interface SourceMetaDescriptionpublic String getVsab()
getVsab in interface SourceMetaDescriptionpublic String getVersionedSourceAbbreviation()
getVersionedSourceAbbreviation in interface SourceMetaDescriptionpublic String getRsab()
getRootSourceAbbreviation().
getRsab in interface SourceMetaDescriptionpublic String getRootSourceAbbreviation()
getRootSourceAbbreviation in interface SourceMetaDescriptionpublic String getSon()
getOfficialName().
getSon in interface SourceMetaDescriptionpublic String getOfficialName()
getOfficialName in interface SourceMetaDescriptionpublic String getSsn()
getShortName().
getSsn in interface SourceMetaDescriptionpublic String getShortName()
getShortName in interface SourceMetaDescriptionpublic String getSf()
getSourceFamily().
getSf in interface SourceMetaDescriptionpublic String getSourceFamily()
getSourceFamily in interface SourceMetaDescriptionpublic String getSver()
getVersion().
getSver in interface SourceMetaDescriptionpublic String getVersion()
getVersion in interface SourceMetaDescriptionpublic Date getMstart()
getValidStartDate().
getMstart in interface SourceMetaDescriptionpublic Date getValidStartDate()
getValidStartDate in interface SourceMetaDescriptionpublic Date getMend()
getValidEndDate().
getMend in interface SourceMetaDescriptionpublic Date getValidEndDate()
getValidEndDate in interface SourceMetaDescriptionpublic String getImeta()
getInsertMetaVersion()
getImeta in interface SourceMetaDescriptionpublic String getInsertMetaVersion()
getInsertMetaVersion in interface SourceMetaDescriptionpublic String getRmeta()
getRemoveMetaVersion()
getRmeta in interface SourceMetaDescriptionpublic String getRemoveMetaVersion()
getRemoveMetaVersion in interface SourceMetaDescriptionpublic String getSlc()
getLicenseContact().
getSlc in interface SourceMetaDescriptionpublic String getLicenseContact()
getLicenseContact in interface SourceMetaDescriptionpublic String getScit()
getCitation().
getScit in interface SourceMetaDescriptionpublic String getCitation()
getCitation in interface SourceMetaDescriptionpublic String getContentContact()
getContentContact().
getContentContact in interface SourceMetaDescriptionpublic String getScc()
getScc in interface SourceMetaDescriptionpublic String getSrl()
getRestrictionLevel().
getSrl in interface SourceMetaDescriptionpublic String getRestrictionLevel()
getRestrictionLevel in interface SourceMetaDescriptionpublic int getTfr()
getTermFrequency()
getTfr in interface SourceMetaDescriptionpublic int getTermFrequency()
getTermFrequency in interface SourceMetaDescriptionpublic int getCfr()
getConceptFrequency()
getCfr in interface SourceMetaDescriptionpublic int getConceptFrequency()
getConceptFrequency in interface SourceMetaDescriptionpublic String getCxty()
getContextType().
getCxty in interface SourceMetaDescriptionpublic String getContextType()
getContextType in interface SourceMetaDescriptionpublic TermType[] getTermTypes()
TermTypes.
getTermTypes in interface SourceMetaDescriptionTermTypespublic List getTermTypesAsList()
TermTypes as a List.
getTermTypesAsList in interface SourceMetaDescriptionTermTypes as a Listpublic String getTtyl()
getTermTypesAsString().
getTtyl in interface SourceMetaDescriptionpublic String getTermTypesAsString()
getTermTypesAsString in interface SourceMetaDescriptionpublic AttributeName[] getAttributeNames()
AttributeNames for this Source.
Returns the AttributeNames.
getAttributeNames in interface SourceMetaDescriptionAttributeNamespublic List getAttributeNamesAsList()
AttributeNames as a List.
getAttributeNamesAsList in interface SourceMetaDescriptionAttributeNames as a Listpublic String getAtnl()
getAttributeNamesAsString().
getAtnl in interface SourceMetaDescriptionpublic String getAttributeNamesAsString()
getAttributeNamesAsString in interface SourceMetaDescriptionpublic Language getLat()
Language (LAT).
This is shorthand for getLanguage().
getLat in interface SourceMetaDescriptionLanguagepublic Language getLanguage()
Language (LAT).
getLanguage in interface SourceMetaDescriptionLanguagepublic String getCenc()
getCharacterEncoding().
getCenc in interface SourceMetaDescriptionpublic String getCharacterEncoding()
getCharacterEncoding in interface SourceMetaDescriptionpublic String getCurver()
getCurver in interface SourceMetaDescriptionpublic boolean isCurrentVersion()
isCurrentVersion in interface SourceMetaDescriptiontrue if it does, false otherwise.public String getSabin()
getSabin in interface SourceMetaDescriptionpublic void setInCurrentSubset(boolean sabin)
setInCurrentSubset in interface SourceMetaDescriptionsabin - booleanpublic void setSabin(String sabin)
setSabin in interface SourceMetaDescriptionsabin - "in current subset" valuepublic boolean inCurrentSubset()
inCurrentSubset in interface SourceMetaDescriptiontrue if it is, false otherwise.public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
true if the specified object is
equal to this object. The specified object must be an
Source with matching key fields.
equals in class Objecto - an Object to compare against
true if Object o is equal
false otherwisepublic int compareTo(Object o)
Source to another one. Results
are indeterminate if the specified parameter is not of the
same class.
compareTo in interface Comparableo - the Object to compare to
int representing the relative ordering
of this and the compare-to objectpublic static List getSourcesForFamily(String family)
Sources for a specified source family.
family - a source family, e.g. MSH
List of Sources for a specified source family.public static Set getSourcesForFamilyAsSet(String family)
Sources for a specified source family.
family - a source family, e.g. MSH
Set of Sources for a specified source family.public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||