|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.AbstractExpandedForm
gov.nih.nlm.umls.meta.TermStatus
public final class TermStatus
Represents an term status. This class ensures that each unique string type is represented by a singleton object. In order for this to work correctly, the class must be properly initialized.
| Constructor Summary | |
|---|---|
TermStatus()
Instantiates an empty TermStatus. |
|
| Method Summary | |
|---|---|
String |
getAbbreviation()
Returns the abbreviation. |
String |
getDescription()
Returns the description |
static TermStatus |
getTermStatus(String ts)
Returns the TermStatus for the specified abbreviation. |
static List |
getTermStatusAsList()
Return all TermStatus values. |
static TermStatus[] |
getTermStatuses()
Return all TermStatus values. |
static void |
initialize(List meta_dsc)
Initializes the Map used to track all of the
TermStatuses that exist at one time. |
static void |
initialize(MetaDescription[] meta_dsc)
Initializes the Map used to track all of the
TermStatuses that exist at one time. |
| Methods inherited from class gov.nih.nlm.umls.meta.AbstractExpandedForm |
|---|
compareTo, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TermStatus()
TermStatus.
| Method Detail |
|---|
public static void initialize(MetaDescription[] meta_dsc)
Map used to track all of the
TermStatuses that exist at one time. You may
pass all MetaDescriptions as this method only
creates TermStatuss for those with a type of "TS".
meta_dsc - an array of MetaDescriptionspublic static void initialize(List meta_dsc)
Map used to track all of the
TermStatuses that exist at one time. This
is implemented as a call to initialize(MetaDescription[]).
meta_dsc - an array of MetaDescriptions
IllegalStateException - if an attempt is made to call this
method more than oncepublic static TermStatus getTermStatus(String ts)
TermStatus for the specified 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.
ts - the term status abbreviation to look up
TermStatus for the specified abbreviationpublic static TermStatus[] getTermStatuses()
TermStatus values.
TermStatuspublic static List getTermStatusAsList()
TermStatus values.
TermStatus valuespublic String getAbbreviation()
public String getDescription()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||