|
||||||||||
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.SourceIdentifierType
Represents information about a the type of a MapObject
's
expression. This class ensures that each
unique expression type is represented by a singleton object. In order for
this to work correctly, the class must be properly initialized.
Constructor Summary | |
SourceIdentifierType()
Instantiates an empty SourceIdentifierType . |
Method Summary | |
String |
getAbbreviation()
Returns the abbreviation. |
String |
getDescription()
Returns the description |
static SourceIdentifierType |
getSourceIdentifierType(String met)
Returns the SourceIdentifierType for the specified abbreviation. |
static SourceIdentifierType[] |
getSourceIdentifierTypes()
Return all SourceIdentifierType s. |
static List |
getSourceIdentifierTypesAsList()
Return all SourceIdentifierType s as a List . |
static void |
initialize(List meta_dsc)
Initializes the Map used to track all of the
SourceIdentifierType s that exist at one time. |
static void |
initialize(MetaDescription[] meta_dsc)
Initializes the Map used to track all of the
SourceIdentifierType s 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 SourceIdentifierType()
SourceIdentifierType
.
Method Detail |
public static void initialize(MetaDescription[] meta_dsc)
Map
used to track all of the
SourceIdentifierType
s that exist at one time. You may
pass all MetaDescription
s as this method only
creates SourceIdentifierType
s for those with a type of "TTY".
meta_dsc
- an array of MetaDescription
s
IllegalStateException
- if an attempt is made to call this
method more than oncepublic static void initialize(List meta_dsc)
Map
used to track all of the
SourceIdentifierType
s that exist at one time. This
is implemented as a call to initialize(MetaDescription[])
.
meta_dsc
- an array of MetaDescription
spublic static SourceIdentifierType getSourceIdentifierType(String met)
SourceIdentifierType
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.
met
- the term type abbreviation to look up
SourceIdentifierType
for the specified abbreviationpublic static SourceIdentifierType[] getSourceIdentifierTypes()
SourceIdentifierType
s.
SourceIdentifierType
spublic static List getSourceIdentifierTypesAsList()
SourceIdentifierType
s as a List
.
SourceIdentifierType
s as a List
public String getAbbreviation()
public String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |