|
||||||||||
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.AdditionalRelationshipLabel
Represents an additional relationship label value. This class ensures that each unique additional relationship label is represented by a singleton object. In order for this to work correctly, the class must be properly initialized.
Constructor Summary | |
AdditionalRelationshipLabel()
Instantiates an empty AdditionalRelationshipLabel . |
Method Summary | |
String |
getAbbreviation()
Returns the abbreviation. |
static AdditionalRelationshipLabel |
getAdditionalRelationshipLabel(String rela)
Returns the AdditionalRelationshipLabel for the specified abbreviation. |
static AdditionalRelationshipLabel[] |
getAdditionalRelationshipLabels()
Return all AdditionalRelationshipLabel s. |
static List |
getAdditionalRelationshipLabelsAsList()
Return all AdditionalRelationshipLabel s as a List . |
String |
getDescription()
Returns the description |
static void |
initialize(List meta_dsc)
Initializes the Map used to track all of the
AdditionalRelationshipLabel s that exist at one time. |
static void |
initialize(MetaDescription[] meta_dsc)
Initializes the Map used to track all of the
AdditionalRelationshipLabel 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 AdditionalRelationshipLabel()
AdditionalRelationshipLabel
.
Method Detail |
public static void initialize(MetaDescription[] meta_dsc)
Map
used to track all of the
AdditionalRelationshipLabel
s that exist at one time. You may
pass all MetaDescription
s as this method only
creates AdditionalRelationshipLabel
s for those with a type of "RELA".
meta_dsc
- an array of MetaDescription
spublic static void initialize(List meta_dsc)
Map
used to track all of the
AdditionalRelationshipLabel
s that exist at one time. This
is implemented as a call to initialize(MetaDescription[])
.
meta_dsc
- an array of MetaDescription
s
IllegalStateException
- if an attempt is made to call this
method more than oncepublic static AdditionalRelationshipLabel getAdditionalRelationshipLabel(String rela)
AdditionalRelationshipLabel
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.
rela
- the additional relationship label abbreviation to look up
AdditionalRelationshipLabel
for the specified abbreviationpublic static AdditionalRelationshipLabel[] getAdditionalRelationshipLabels()
AdditionalRelationshipLabel
s.
AdditionalRelationshipLabel
spublic static List getAdditionalRelationshipLabelsAsList()
AdditionalRelationshipLabel
s as a List
.
AdditionalRelationshipLabel
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 |