|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents a UMLS Concept.
Nested Class Summary | |
static class |
Concept.ByCUIComparator
Inner class compares Concept s based on cui. |
static class |
Concept.ByPreferredNameComparator
Sorts the Concept s based on String order. |
Method Summary | |
void |
addAtom(Atom atom)
Adds the specified Atom . |
void |
addAttribute(Attribute att)
Adds the specified Attribute . |
void |
addComponentHistory(ComponentHistory map)
Adds a ComponentHistory . |
void |
addContext(Context cxt)
Adds the specified Context . |
void |
addCoocurrence(Coocurrence coc)
Adds the specified Coocurrence . |
void |
addDefinition(Definition def)
Adds the specified Definition . |
void |
addLocator(Locator loc)
Add the specified Locator . |
void |
addMapping(Mapping map)
Adds a Mapping . |
void |
addRelationship(Relationship rel)
Adds the specified Relationship . |
void |
addSemanticType(SemanticType sty)
Adds a SemanticType . |
void |
clear()
This removes all of the Concept 's components. |
void |
clearAtoms()
Remove all Atom s. |
void |
clearAttributes()
Remove all Attribute s. |
void |
clearComponentHistories()
Removes all ComponentHistory s. |
void |
clearContexts()
Remove all Context s. |
void |
clearCoocurrences()
Remove all Coocurrence s. |
void |
clearDefinitions()
Remove all Definition s. |
void |
clearLocators()
Remove all Locator s. |
void |
clearMappings()
Removes all Mapping s. |
void |
clearRelationships()
Remove all Relationship s. |
void |
clearSemanticTypes()
Removes all SemanticType s. |
Atom[] |
getAtoms()
Returns the Atom s. |
Atom[] |
getAtoms(Restrictor restrictor)
Returns a subset of this Concept 's Atom s. |
List |
getAtomsAsList()
Returns the Atom s as a List . |
Attribute[] |
getAttributes()
Returns the Attribute s. |
List |
getAttributesAsList()
Returns the Attribute s as a List . |
Attribute[] |
getAttributesForAtom(Atom atom)
Returns the attributes with aui that matches that of the given Atom . |
List |
getAttributesForAtomAsList(Atom atom)
Returns the attributes with aui that matches that of the given Atom
in a List . |
AtomAttribute[] |
getAttributesForRelationship(AtomRelationship rel)
Returns the attributes with aui that matches that of the given Relationship . |
List |
getAttributesForRelationshipAsList(AtomRelationship rel)
Returns the attributes with aui that matches that of the given Relationship
in a List . |
ComponentHistory[] |
getComponentHistories()
Returns the ComponentHistory s. |
List |
getComponentHistoriesAsList()
Returns the ComponentHistory s as a List . |
String |
getConceptIdentifier()
Returns the concept unique identifier (CUI) for the Concept . |
ContextGroup[] |
getContextGroups()
Return the ContextGroup s. |
List |
getContextGroupsAsList()
Returns the ContextGroup s as a List . |
Context[] |
getContexts()
Return the Context s. |
Context[] |
getContexts(Restrictor restrictor)
Returns a subset of this Concept 's Context s. |
List |
getContextsAsList()
Returns the Context s as a List . |
CoocurrenceGroup[] |
getCoocurrenceGroups()
Returns the CoocurrenceGroup s. |
List |
getCoocurrenceGroupsAsList()
Returns the CoocurrenceGroup s as a List . |
Coocurrence[] |
getCoocurrences()
Returns the Coocurrence s. |
Coocurrence[] |
getCoocurrences(Restrictor restrictor)
Returns a subset of this Concept 's Coocurrence s. |
List |
getCoocurrencesAsList()
Returns the Coocurrence s as a List . |
String |
getCui()
Returns the concept unique identifier (CUI) for the Concept . |
Definition[] |
getDefinitions()
Returns the Definition s. |
Definition[] |
getDefinitions(Restrictor restrictor)
Returns a subset of this Concept 's Definition s. |
List |
getDefinitionsAsList()
Returns the Definition s as a List . |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
Locator[] |
getLocators()
Returns the Locator s. |
List |
getLocatorsAsList()
Returns the Locator s as a List . |
Mapping[] |
getMappings()
Returns the Mapping s. |
List |
getMappingsAsList()
Returns the Mapping s as a List . |
Atom |
getPreferredAtom()
Returns the preferred atom of the concept. |
Atom |
getPreferredAtom(Comparator comparator)
Returns the preferred atom of the concept. |
Relationship[] |
getRelationships()
Returns the Relationship s. |
Relationship[] |
getRelationships(Restrictor restrictor)
Returns a subset of this Concept 's Relationship s. |
List |
getRelationshipsAsList()
Returns the Relationship s as a List . |
SemanticType[] |
getSemanticTypes()
Returns the SemanticType s. |
List |
getSemanticTypesAsList()
Returns the SemanticType s as a List . |
TermAttribute[] |
getTermAttributes()
Returns the TermAttribute s. |
List |
getTermAttributesAsList()
Returns the TermAttribute s as a List . |
Term[] |
getTerms()
Returns the Term s. |
List |
getTermsAsList()
Returns the Term s as a List . |
boolean |
isEmpty()
This indicates if the Concept is empty, meaning
that either the SemanticType was removed or
all of the Atom s were removed. |
void |
removeAtom(Atom atom)
Removes the specified Atom . |
void |
removeAttribute(Attribute att)
Removes the specified Attribute . |
void |
removeComponentHistory(ComponentHistory map)
Removes the specified ComponentHistory . |
void |
removeContext(Context cxt)
Removes the specified Context . |
void |
removeCoocurrence(Coocurrence coc)
Removes the specified Coocurrence . |
void |
removeDefinition(Definition def)
Remove the specified Definition . |
void |
removeLocator(Locator loc)
Removes the specified Locator . |
void |
removeMapping(Mapping map)
Removes the specified Mapping . |
void |
removeRelationship(Relationship rel)
Removes the specified Relationship . |
void |
removeSemanticType(SemanticType sty)
Removes the specified SemanticType . |
void |
setAtoms(Atom[] atoms)
Replace any Atom s with the
ones in the specified array. |
void |
setAtoms(List atoms)
Replace Atom s with the
ones in the specified List . |
void |
setAttributes(Attribute[] atts)
Replace Attribute s with the ones in the specified array. |
void |
setAttributes(List atts)
Replace Attribute s with the ones in the specified List . |
void |
setComponentHistories(ComponentHistory[] maps)
Replace ComponentHistory s with the ones in the specified array. |
void |
setComponentHistories(List maps)
Replace ComponentHistory s with the ones in the specified List . |
void |
setConceptIdentifier(String cui)
Sets the concept unique identifier (CUI) for the Concept . |
void |
setContexts(Context[] cxts)
Replace Context s with the ones in the specified array. |
void |
setContexts(List cxts)
Replace Context s with the ones in the specified List . |
void |
setCoocurrences(Coocurrence[] cocs)
Replace Coocurrence s with the ones in the specified array. |
void |
setCoocurrences(List cocs)
Replace Coocurrence s with the ones in the specified List . |
void |
setCui(String cui)
Sets the concept unique identifier (CUI) for the Concept . |
void |
setDefinitions(Definition[] defs)
Replace Definition s with the ones in the specified array. |
void |
setDefinitions(List defs)
Replace Definition s with the ones in the specified List . |
void |
setLocators(List locs)
Replace Locator s with the ones in the specified List . |
void |
setLocators(Locator[] locs)
Replace Locator s with the ones in the specified array. |
void |
setMappings(List maps)
Replace Mapping s with the ones in the specified List . |
void |
setMappings(Mapping[] maps)
Replace Mapping s with the ones in the specified array. |
void |
setRelationships(List rels)
Replace Relationship s of the ones in the specified List . |
void |
setRelationships(Relationship[] rels)
Replace Relationship s with the ones in the specified array. |
void |
setSemanticTypes(List stys)
Replace SemanticType s with the ones in the specified List . |
void |
setSemanticTypes(SemanticType[] stys)
Replace SemanticType s with the ones in the specified array. |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public void clear()
Concept
's components.
public boolean isEmpty()
Concept
is empty, meaning
that either the SemanticType
was removed or
all of the Atom
s were removed.
public Atom[] getAtoms()
Atom
s.
Atom
[]
public List getAtomsAsList()
Atom
s as a List
.
Atom
s as a List
public void addAtom(Atom atom)
Atom
.
atom
- the Atom
to be addedpublic void removeAtom(Atom atom)
Atom
.
atom
- the Atom
to be removedpublic void clearAtoms()
Atom
s.
public void setAtoms(Atom[] atoms)
Atom
s with the
ones in the specified array.
atoms
- a Atom
[]
public void setAtoms(List atoms)
Atom
s with the
ones in the specified List
.
atoms
- a List
of Atom
spublic Atom getPreferredAtom()
Atom
public Atom getPreferredAtom(Comparator comparator)
Concept.ByCUIComparator
to determine the preferred atom.
comparator
- Concept.ByCUIComparator
Atom
public Locator[] getLocators()
Locator
s.
Locator
[]
public List getLocatorsAsList()
Locator
s as a List
.
Locator
s as a List
public void addLocator(Locator loc)
Locator
.
loc
- the Locator
to be addedpublic void removeLocator(Locator loc)
Locator
.
loc
- the Locator
to be removedpublic void clearLocators()
Locator
s.
public void setLocators(Locator[] locs)
Locator
s with the ones in the specified array.
locs
- a Locator
[]
public void setLocators(List locs)
Locator
s with the ones in the specified List
.
locs
- a List
of Locator
spublic Attribute[] getAttributes()
Attribute
s.
Attribute
[]
public List getAttributesAsList()
Attribute
s as a List
.
Attribute
s as a List
public void addAttribute(Attribute att)
Attribute
.
att
- the Attribute
to be addedpublic void removeAttribute(Attribute att)
Attribute
.
att
- the Attribute
to be removedpublic void clearAttributes()
Attribute
s.
public void setAttributes(Attribute[] atts)
Attribute
s with the ones in the specified array.
atts
- an Attribute
[]
public void setAttributes(List atts)
Attribute
s with the ones in the specified List
.
atts
- a List
of Attribute
spublic Attribute[] getAttributesForAtom(Atom atom)
Atom
.
atom
- Atom
List
of Attribute
spublic List getAttributesForAtomAsList(Atom atom)
Atom
in a List
.
atom
- Atom
List
of Attribute
spublic AtomAttribute[] getAttributesForRelationship(AtomRelationship rel)
Relationship
.
rel
- Relationship
List
of AtomAttribute
spublic List getAttributesForRelationshipAsList(AtomRelationship rel)
Relationship
in a List
.
rel
- Relationship
List
of Attribute
spublic Context[] getContexts()
Context
s.
Context
[]
public Context[] getContexts(Restrictor restrictor)
Concept
's Context
s.
Restricts the return based on the given Restrictor
.
restrictor
- Restrictor
public List getContextsAsList()
Context
s as a List
.
Context
s as a List
public void addContext(Context cxt)
Context
.
cxt
- the Context
to be addedpublic void removeContext(Context cxt)
Context
.
cxt
- the Context
to be removedpublic void clearContexts()
Context
s.
public void setContexts(Context[] cxts)
Context
s with the ones in the specified array.
cxts
- a Context
[]
public void setContexts(List cxts)
Context
s with the ones in the specified List
.
cxts
- a List
of Context
spublic Coocurrence[] getCoocurrences()
Coocurrence
s.
Coocurrence
[]
public Coocurrence[] getCoocurrences(Restrictor restrictor)
Concept
's Coocurrence
s.
Restricts the return based on the given Restrictor
.
restrictor
- Restrictor
public List getCoocurrencesAsList()
Coocurrence
s as a List
.
Coocurrence
s as a List
public void addCoocurrence(Coocurrence coc)
Coocurrence
.
coc
- the Coocurrence
to be addedpublic void removeCoocurrence(Coocurrence coc)
Coocurrence
.
coc
- the Coocurrence
to be removedpublic void clearCoocurrences()
Coocurrence
s.
public void setCoocurrences(Coocurrence[] cocs)
Coocurrence
s with the ones in the specified array.
cocs
- a Coocurrence
[]
public void setCoocurrences(List cocs)
Coocurrence
s with the ones in the specified List
.
cocs
- a List
of Coocurrence
spublic Definition[] getDefinitions()
Definition
s.
Definition
[]
public Definition[] getDefinitions(Restrictor restrictor)
Concept
's Definition
s.
Restricts the return based on the given Restrictor
.
restrictor
- Restrictor
public List getDefinitionsAsList()
Definition
s as a List
.
Definition
s as a List
public void addDefinition(Definition def)
Definition
.
def
- the Definition
to be addedpublic void removeDefinition(Definition def)
Definition
.
def
- the Definition
to be removedpublic void clearDefinitions()
Definition
s.
public void setDefinitions(Definition[] defs)
Definition
s with the ones in the specified array.
defs
- a Definition
[]
public void setDefinitions(List defs)
Definition
s with the ones in the specified List
.
defs
- a List
of Definition
spublic Relationship[] getRelationships()
Relationship
s.
Relationship
[]
public Relationship[] getRelationships(Restrictor restrictor)
Concept
's Relationship
s.
Restricts the return based on the given Restrictor
.
restrictor
- Restrictor
public List getRelationshipsAsList()
Relationship
s as a List
.
Relationship
s as a List
public void addRelationship(Relationship rel)
Relationship
.
rel
- the Relationship
to be addedpublic void removeRelationship(Relationship rel)
Relationship
.
rel
- the Relationship
to be removedpublic void clearRelationships()
Relationship
s.
public void setRelationships(Relationship[] rels)
Relationship
s with the ones in the specified array.
rels
- a Relationship
[]
public void setRelationships(List rels)
Relationship
s of the ones in the specified List
.
rels
- a List
of Relationship
spublic SemanticType[] getSemanticTypes()
SemanticType
s.
SemanticType
[]
public List getSemanticTypesAsList()
SemanticType
s as a List
.
SemanticType
s as a List
public void addSemanticType(SemanticType sty)
SemanticType
.
sty
- the SemanticType
to be addedpublic void removeSemanticType(SemanticType sty)
SemanticType
.
sty
- the SemanticType
to be removedpublic void clearSemanticTypes()
SemanticType
s.
public void setSemanticTypes(SemanticType[] stys)
SemanticType
s with the ones in the specified array.
stys
- a SemanticType
[]
public void setSemanticTypes(List stys)
SemanticType
s with the ones in the specified List
.
stys
- a List
of SemanticType
spublic ComponentHistory[] getComponentHistories()
ComponentHistory
s.
ComponentHistory
[]
public List getComponentHistoriesAsList()
ComponentHistory
s as a List
.
ComponentHistory
s as a List
public void addComponentHistory(ComponentHistory map)
ComponentHistory
.
map
- the ComponentHistory
to be addedpublic void removeComponentHistory(ComponentHistory map)
ComponentHistory
.
map
- the ComponentHistory
to be removedpublic void clearComponentHistories()
ComponentHistory
s.
public void setComponentHistories(ComponentHistory[] maps)
ComponentHistory
s with the ones in the specified array.
maps
- a ComponentHistory
[]
public void setComponentHistories(List maps)
ComponentHistory
s with the ones in the specified List
.
maps
- a List
of ComponentHistory
spublic Mapping[] getMappings()
Mapping
s.
Mapping
[]
public List getMappingsAsList()
Mapping
s as a List
.
Mapping
s as a List
public void addMapping(Mapping map)
Mapping
.
map
- the Mapping
to be addedpublic void removeMapping(Mapping map)
Mapping
.
map
- the Mapping
to be removedpublic void clearMappings()
Mapping
s.
public void setMappings(Mapping[] maps)
Mapping
s with the ones in the specified array.
maps
- a Mapping
[]
public void setMappings(List maps)
Mapping
s with the ones in the specified List
.
maps
- a List
of Mapping
spublic String getCui()
Concept
.
This is shorthand for getConceptIdentifier()
.
public void setCui(String cui)
Concept
.
This is shorthand for setConceptIdentifier(String)
.
cui
- the CUIpublic String getConceptIdentifier()
Concept
.
public void setConceptIdentifier(String cui)
Concept
.
cui
- the CUIpublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
String
composed from key Concept
fieldspublic ContextGroup[] getContextGroups()
ContextGroup
s.
ContextGroup
[]
public List getContextGroupsAsList()
ContextGroup
s as a List
.
ContextGroup
s as a List
public CoocurrenceGroup[] getCoocurrenceGroups()
CoocurrenceGroup
s.
CoocurrenceGroup
[]
public List getCoocurrenceGroupsAsList()
CoocurrenceGroup
s as a List
.
CoocurrenceGroup
s as a List
public TermAttribute[] getTermAttributes()
TermAttribute
s.
TermAttribute
[]
public List getTermAttributesAsList()
TermAttribute
s as a List
.
TermAttribute
s as a List
public Term[] getTerms()
Term
s.
Term
[]
public List getTermsAsList()
Term
s as a List
.
Term
s as a List
public Atom[] getAtoms(Restrictor restrictor)
Concept
's Atom
s.
Restricts the return based on the given Restrictor
.
restrictor
- Restrictor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |