|
||||||||||
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.TermTypeGroup
Represents a grouping of TermType
s. This class ensures that each unique
TermType
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 | |
TermTypeGroup()
Instantiates an empty TermTypeGroup . |
Method Summary | |
String |
getAbbreviation()
Returns the abbreviation. |
String |
getDescription()
Returns the description |
static TermTypeGroup |
getTermTypeGroup(String tty_group)
Returns the TermTypeGroup for the specified abbreviation. |
static TermTypeGroup[] |
getTermTypeGroups()
Return all TermTypeGroup s. |
static TermTypeGroup[] |
getTermTypeGroups(TermType tty)
Return all TermTypeGroup s for which the given TermType
is a member. |
static List |
getTermTypeGroupsAsList()
Return all TermTypeGroup s as a List . |
static List |
getTermTypeGroupsAsList(TermType tty)
Return all TermTypeGroup s for which the given TermType is
a member as a List . |
TermType[] |
getTermTypes()
Return all TermType s in this TermTypeGroup . |
List |
getTermTypesAsList()
Return all TermType s in this TermTypeGroup as a List . |
static void |
initialize(List meta_dsc)
Initializes the Map used to track all of the
TermTypeGroup s that exist at one time. |
static void |
initialize(MetaDescription[] meta_dsc)
Initializes the Map used to track all of the
TermTypeGroup 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 TermTypeGroup()
TermTypeGroup
.
Method Detail |
public static void initialize(MetaDescription[] meta_dsc)
Map
used to track all of the
TermTypeGroup
s that exist at one time. You may
pass all MetaDescription
s as this method only
creates TermTypeGroup
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
TermTypeGroup
s that exist at one time. This
is implemented as a call to initialize(MetaDescription[])
.
meta_dsc
- an array of MetaDescription
spublic static TermTypeGroup getTermTypeGroup(String tty_group)
TermTypeGroup
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.
tty_group
- the term type abbreviation to look up
TermTypeGroup
for the specified abbreviationpublic static TermTypeGroup[] getTermTypeGroups(TermType tty)
TermTypeGroup
s for which the given TermType
is a member.
tty
- TermType
TermTypeGroup
spublic static List getTermTypeGroupsAsList(TermType tty)
TermTypeGroup
s for which the given TermType
is
a member as a List
.
tty
- TermType
TermTypeGroup
s as a List
public static TermTypeGroup[] getTermTypeGroups()
TermTypeGroup
s.
TermTypeGroup
spublic static List getTermTypeGroupsAsList()
TermTypeGroup
s as a List
.
TermTypeGroup
s as a List
public TermType[] getTermTypes()
TermType
s in this TermTypeGroup
.
TermTypeGroup
spublic List getTermTypesAsList()
TermType
s in this TermTypeGroup
as a List
.
TermType
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 |