|
||||||||||
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.SemanticTypeGroup
Represents a grouping of SemanticType
s. This class ensures that each unique
SemanticType
group is represented by a singleton object. In order for
this to work correctly, the class must be properly initialized and must be
initialized after Term Types is initialized.
Constructor Summary | |
SemanticTypeGroup()
Instantiates an empty SemanticTypeGroup . |
Method Summary | |
String |
getAbbreviation()
Returns the abbreviation. |
String |
getDescription()
Returns the description |
static SemanticTypeGroup |
getSemanticTypeGroup(String sty_group)
Returns the SemanticTypeGroup for the specified abbreviation. |
static SemanticTypeGroup[] |
getSemanticTypeGroups()
Return all SemanticTypeGroup s. |
static SemanticTypeGroup[] |
getSemanticTypeGroups(SemanticType sty)
Return all SemanticTypeGroup s for which the given SemanticType
is a member. |
static List |
getSemanticTypeGroupsAsList()
Return all SemanticTypeGroup s as a List . |
static List |
getSemanticTypeGroupsAsList(SemanticType sty)
Return all SemanticTypeGroup s for which the given SemanticType is
a member as a List . |
SemanticType[] |
getSemanticTypes()
Return all SemanticType s in this SemanticTypeGroup . |
List |
getSemanticTypesAsList()
Return all SemanticType s in this SemanticTypeGroup as a List . |
static void |
initialize(List meta_dsc)
Initializes the Map used to track all of the
SemanticTypeGroup s that exist at one time. |
static void |
initialize(MetaDescription[] meta_dsc)
Initializes the Map used to track all of the
SemanticTypeGroup 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 SemanticTypeGroup()
SemanticTypeGroup
.
Method Detail |
public static void initialize(MetaDescription[] meta_dsc)
Map
used to track all of the
SemanticTypeGroup
s that exist at one time. You may
pass all MetaDescription
s as this method only
creates SemanticTypeGroup
s for those with a type of "sty".
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
SemanticTypeGroup
s that exist at one time. This
is implemented as a call to initialize(MetaDescription[])
.
meta_dsc
- an array of MetaDescription
spublic static SemanticTypeGroup getSemanticTypeGroup(String sty_group)
SemanticTypeGroup
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.
sty_group
- the term type abbreviation to look up
SemanticTypeGroup
for the specified abbreviationpublic static SemanticTypeGroup[] getSemanticTypeGroups(SemanticType sty)
SemanticTypeGroup
s for which the given SemanticType
is a member.
sty
- SemanticType
SemanticTypeGroup
spublic static List getSemanticTypeGroupsAsList(SemanticType sty)
SemanticTypeGroup
s for which the given SemanticType
is
a member as a List
.
sty
- SemanticType
SemanticTypeGroup
s as a List
public static SemanticTypeGroup[] getSemanticTypeGroups()
SemanticTypeGroup
s.
SemanticTypeGroup
spublic static List getSemanticTypeGroupsAsList()
SemanticTypeGroup
s as a List
.
SemanticTypeGroup
s as a List
public SemanticType[] getSemanticTypes()
SemanticType
s in this SemanticTypeGroup
.
SemanticTypeGroup
spublic List getSemanticTypesAsList()
SemanticType
s in this SemanticTypeGroup
as a List
.
SemanticType
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 |