|
||||||||||
| 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 Concepts based on cui. |
static class |
Concept.ByPreferredNameComparator
Sorts the Concepts 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 Atoms. |
void |
clearAttributes()
Remove all Attributes. |
void |
clearComponentHistories()
Removes all ComponentHistorys. |
void |
clearContexts()
Remove all Contexts. |
void |
clearCoocurrences()
Remove all Coocurrences. |
void |
clearDefinitions()
Remove all Definitions. |
void |
clearLocators()
Remove all Locators. |
void |
clearMappings()
Removes all Mappings. |
void |
clearRelationships()
Remove all Relationships. |
void |
clearSemanticTypes()
Removes all SemanticTypes. |
Atom[] |
getAtoms()
Returns the Atoms. |
Atom[] |
getAtoms(Restrictor restrictor)
Returns a subset of this Concept's Atoms. |
List |
getAtomsAsList()
Returns the Atoms as a List. |
Attribute[] |
getAttributes()
Returns the Attributes. |
List |
getAttributesAsList()
Returns the Attributes 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 ComponentHistorys. |
List |
getComponentHistoriesAsList()
Returns the ComponentHistorys as a List. |
String |
getConceptIdentifier()
Returns the concept unique identifier (CUI) for the Concept. |
ContextGroup[] |
getContextGroups()
Return the ContextGroups. |
List |
getContextGroupsAsList()
Returns the ContextGroups as a List. |
Context[] |
getContexts()
Return the Contexts. |
Context[] |
getContexts(Restrictor restrictor)
Returns a subset of this Concept's Contexts. |
List |
getContextsAsList()
Returns the Contexts as a List. |
CoocurrenceGroup[] |
getCoocurrenceGroups()
Returns the CoocurrenceGroups. |
List |
getCoocurrenceGroupsAsList()
Returns the CoocurrenceGroups as a List. |
Coocurrence[] |
getCoocurrences()
Returns the Coocurrences. |
Coocurrence[] |
getCoocurrences(Restrictor restrictor)
Returns a subset of this Concept's Coocurrences. |
List |
getCoocurrencesAsList()
Returns the Coocurrences as a List. |
String |
getCui()
Returns the concept unique identifier (CUI) for the Concept. |
Definition[] |
getDefinitions()
Returns the Definitions. |
Definition[] |
getDefinitions(Restrictor restrictor)
Returns a subset of this Concept's Definitions. |
List |
getDefinitionsAsList()
Returns the Definitions as a List. |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
Locator[] |
getLocators()
Returns the Locators. |
List |
getLocatorsAsList()
Returns the Locators as a List. |
Mapping[] |
getMappings()
Returns the Mappings. |
List |
getMappingsAsList()
Returns the Mappings 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 Relationships. |
Relationship[] |
getRelationships(Restrictor restrictor)
Returns a subset of this Concept's Relationships. |
List |
getRelationshipsAsList()
Returns the Relationships as a List. |
SemanticType[] |
getSemanticTypes()
Returns the SemanticTypes. |
List |
getSemanticTypesAsList()
Returns the SemanticTypes as a List. |
TermAttribute[] |
getTermAttributes()
Returns the TermAttributes. |
List |
getTermAttributesAsList()
Returns the TermAttributes as a List. |
Term[] |
getTerms()
Returns the Terms. |
List |
getTermsAsList()
Returns the Terms as a List. |
boolean |
isEmpty()
This indicates if the Concept is empty, meaning
that either the SemanticType was removed or
all of the Atoms 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 Atoms with the
ones in the specified array. |
void |
setAtoms(List atoms)
Replace Atoms with the
ones in the specified List. |
void |
setAttributes(Attribute[] atts)
Replace Attributes with the ones in the specified array. |
void |
setAttributes(List atts)
Replace Attributes with the ones in the specified List. |
void |
setComponentHistories(ComponentHistory[] maps)
Replace ComponentHistorys with the ones in the specified array. |
void |
setComponentHistories(List maps)
Replace ComponentHistorys 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 Contexts with the ones in the specified array. |
void |
setContexts(List cxts)
Replace Contexts with the ones in the specified List. |
void |
setCoocurrences(Coocurrence[] cocs)
Replace Coocurrences with the ones in the specified array. |
void |
setCoocurrences(List cocs)
Replace Coocurrences 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 Definitions with the ones in the specified array. |
void |
setDefinitions(List defs)
Replace Definitions with the ones in the specified List. |
void |
setLocators(List locs)
Replace Locators with the ones in the specified List. |
void |
setLocators(Locator[] locs)
Replace Locators with the ones in the specified array. |
void |
setMappings(List maps)
Replace Mappings with the ones in the specified List. |
void |
setMappings(Mapping[] maps)
Replace Mappings with the ones in the specified array. |
void |
setRelationships(List rels)
Replace Relationships of the ones in the specified List. |
void |
setRelationships(Relationship[] rels)
Replace Relationships with the ones in the specified array. |
void |
setSemanticTypes(List stys)
Replace SemanticTypes with the ones in the specified List. |
void |
setSemanticTypes(SemanticType[] stys)
Replace SemanticTypes 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 Atoms were removed.
public Atom[] getAtoms()
Atoms.
Atom []public List getAtomsAsList()
Atoms as a List.
Atoms as a Listpublic void addAtom(Atom atom)
Atom.
atom - the Atom to be addedpublic void removeAtom(Atom atom)
Atom.
atom - the Atom to be removedpublic void clearAtoms()
Atoms.
public void setAtoms(Atom[] atoms)
Atoms with the
ones in the specified array.
atoms - a Atom []public void setAtoms(List atoms)
Atoms with the
ones in the specified List.
atoms - a List of Atomspublic Atom getPreferredAtom()
Atompublic Atom getPreferredAtom(Comparator comparator)
Concept.ByCUIComparator to determine the preferred atom.
comparator - Concept.ByCUIComparator
Atompublic Locator[] getLocators()
Locators.
Locator []public List getLocatorsAsList()
Locators as a List.
Locators as a Listpublic void addLocator(Locator loc)
Locator.
loc - the Locator to be addedpublic void removeLocator(Locator loc)
Locator.
loc - the Locator to be removedpublic void clearLocators()
Locators.
public void setLocators(Locator[] locs)
Locators with the ones in the specified array.
locs - a Locator []public void setLocators(List locs)
Locators with the ones in the specified List.
locs - a List of Locatorspublic Attribute[] getAttributes()
Attributes.
Attribute []public List getAttributesAsList()
Attributes as a List.
Attributes as a Listpublic void addAttribute(Attribute att)
Attribute.
att - the Attribute to be addedpublic void removeAttribute(Attribute att)
Attribute.
att - the Attribute to be removedpublic void clearAttributes()
Attributes.
public void setAttributes(Attribute[] atts)
Attributes with the ones in the specified array.
atts - an Attribute []public void setAttributes(List atts)
Attributes with the ones in the specified List.
atts - a List of Attributespublic Attribute[] getAttributesForAtom(Atom atom)
Atom.
atom - Atom
List of Attributespublic List getAttributesForAtomAsList(Atom atom)
Atom
in a List.
atom - Atom
List of Attributespublic AtomAttribute[] getAttributesForRelationship(AtomRelationship rel)
Relationship.
rel - Relationship
List of AtomAttributespublic List getAttributesForRelationshipAsList(AtomRelationship rel)
Relationship
in a List.
rel - Relationship
List of Attributespublic Context[] getContexts()
Contexts.
Context []public Context[] getContexts(Restrictor restrictor)
Concept's Contexts.
Restricts the return based on the given Restrictor.
restrictor - Restrictor
public List getContextsAsList()
Contexts as a List.
Contexts as a Listpublic void addContext(Context cxt)
Context.
cxt - the Context to be addedpublic void removeContext(Context cxt)
Context.
cxt - the Context to be removedpublic void clearContexts()
Contexts.
public void setContexts(Context[] cxts)
Contexts with the ones in the specified array.
cxts - a Context []public void setContexts(List cxts)
Contexts with the ones in the specified List.
cxts - a List of Contextspublic Coocurrence[] getCoocurrences()
Coocurrences.
Coocurrence []public Coocurrence[] getCoocurrences(Restrictor restrictor)
Concept's Coocurrences.
Restricts the return based on the given Restrictor.
restrictor - Restrictor
public List getCoocurrencesAsList()
Coocurrences as a List.
Coocurrences as a Listpublic void addCoocurrence(Coocurrence coc)
Coocurrence.
coc - the Coocurrence to be addedpublic void removeCoocurrence(Coocurrence coc)
Coocurrence.
coc - the Coocurrence to be removedpublic void clearCoocurrences()
Coocurrences.
public void setCoocurrences(Coocurrence[] cocs)
Coocurrences with the ones in the specified array.
cocs - a Coocurrence []public void setCoocurrences(List cocs)
Coocurrences with the ones in the specified List.
cocs - a List of Coocurrencespublic Definition[] getDefinitions()
Definitions.
Definition []public Definition[] getDefinitions(Restrictor restrictor)
Concept's Definitions.
Restricts the return based on the given Restrictor.
restrictor - Restrictor
public List getDefinitionsAsList()
Definitions as a List.
Definitions as a Listpublic void addDefinition(Definition def)
Definition.
def - the Definition to be addedpublic void removeDefinition(Definition def)
Definition.
def - the Definition to be removedpublic void clearDefinitions()
Definitions.
public void setDefinitions(Definition[] defs)
Definitions with the ones in the specified array.
defs - a Definition []public void setDefinitions(List defs)
Definitions with the ones in the specified List.
defs - a List of Definitionspublic Relationship[] getRelationships()
Relationships.
Relationship []public Relationship[] getRelationships(Restrictor restrictor)
Concept's Relationships.
Restricts the return based on the given Restrictor.
restrictor - Restrictor
public List getRelationshipsAsList()
Relationships as a List.
Relationships as a Listpublic void addRelationship(Relationship rel)
Relationship.
rel - the Relationship to be addedpublic void removeRelationship(Relationship rel)
Relationship.
rel - the Relationship to be removedpublic void clearRelationships()
Relationships.
public void setRelationships(Relationship[] rels)
Relationships with the ones in the specified array.
rels - a Relationship []public void setRelationships(List rels)
Relationships of the ones in the specified List.
rels - a List of Relationshipspublic SemanticType[] getSemanticTypes()
SemanticTypes.
SemanticType []public List getSemanticTypesAsList()
SemanticTypes as a List.
SemanticTypes as a Listpublic void addSemanticType(SemanticType sty)
SemanticType.
sty - the SemanticType to be addedpublic void removeSemanticType(SemanticType sty)
SemanticType.
sty - the SemanticType to be removedpublic void clearSemanticTypes()
SemanticTypes.
public void setSemanticTypes(SemanticType[] stys)
SemanticTypes with the ones in the specified array.
stys - a SemanticType []public void setSemanticTypes(List stys)
SemanticTypes with the ones in the specified List.
stys - a List of SemanticTypespublic ComponentHistory[] getComponentHistories()
ComponentHistorys.
ComponentHistory []public List getComponentHistoriesAsList()
ComponentHistorys as a List.
ComponentHistorys as a Listpublic void addComponentHistory(ComponentHistory map)
ComponentHistory.
map - the ComponentHistory to be addedpublic void removeComponentHistory(ComponentHistory map)
ComponentHistory.
map - the ComponentHistory to be removedpublic void clearComponentHistories()
ComponentHistorys.
public void setComponentHistories(ComponentHistory[] maps)
ComponentHistorys with the ones in the specified array.
maps - a ComponentHistory []public void setComponentHistories(List maps)
ComponentHistorys with the ones in the specified List.
maps - a List of ComponentHistoryspublic Mapping[] getMappings()
Mappings.
Mapping []public List getMappingsAsList()
Mappings as a List.
Mappings as a Listpublic void addMapping(Mapping map)
Mapping.
map - the Mapping to be addedpublic void removeMapping(Mapping map)
Mapping.
map - the Mapping to be removedpublic void clearMappings()
Mappings.
public void setMappings(Mapping[] maps)
Mappings with the ones in the specified array.
maps - a Mapping []public void setMappings(List maps)
Mappings with the ones in the specified List.
maps - a List of Mappingspublic 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()
ContextGroups.
ContextGroup []public List getContextGroupsAsList()
ContextGroups as a List.
ContextGroups as a Listpublic CoocurrenceGroup[] getCoocurrenceGroups()
CoocurrenceGroups.
CoocurrenceGroup []public List getCoocurrenceGroupsAsList()
CoocurrenceGroups as a List.
CoocurrenceGroups as a Listpublic TermAttribute[] getTermAttributes()
TermAttributes.
TermAttribute []public List getTermAttributesAsList()
TermAttributes as a List.
TermAttributes as a Listpublic Term[] getTerms()
Terms.
Term []public List getTermsAsList()
Terms as a List.
Terms as a Listpublic Atom[] getAtoms(Restrictor restrictor)
Concept's Atoms.
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 | |||||||||