|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Concept
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 |
removeAtom(int i)
|
void |
removeAttribute(Attribute att)
Removes the specified Attribute. |
void |
removeAttribute(int i)
|
void |
removeComponentHistory(ComponentHistory map)
Removes the specified ComponentHistory. |
void |
removeContext(Context cxt)
Removes the specified Context. |
void |
removeContext(int i)
|
void |
removeCoocurrence(Coocurrence coc)
Removes the specified Coocurrence. |
void |
removeCoocurrence(int i)
|
void |
removeDefinition(Definition def)
Remove the specified Definition. |
void |
removeLocator(Locator loc)
Removes the specified Locator. |
void |
removeMapping(int i)
|
void |
removeMapping(Mapping map)
Removes the specified Mapping. |
void |
removeRelationship(int i)
|
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 |
|---|
void clear()
Concept's components.
boolean isEmpty()
Concept is empty, meaning
that either the SemanticType was removed or
all of the Atoms were removed.
Atom[] getAtoms()
Atoms.
Atom []List getAtomsAsList()
Atoms as a List.
Atoms as a Listvoid addAtom(Atom atom)
Atom.
atom - the Atom to be addedvoid removeAtom(Atom atom)
Atom.
atom - the Atom to be removedvoid removeAtom(int i)
void clearAtoms()
Atoms.
void setAtoms(Atom[] atoms)
Atoms with the
ones in the specified array.
atoms - a Atom []void setAtoms(List atoms)
Atoms with the
ones in the specified List.
atoms - a List of AtomsAtom getPreferredAtom()
AtomAtom getPreferredAtom(Comparator comparator)
Concept.ByCUIComparator to determine the preferred atom.
comparator - Concept.ByCUIComparator
AtomLocator[] getLocators()
Locators.
Locator []List getLocatorsAsList()
Locators as a List.
Locators as a Listvoid addLocator(Locator loc)
Locator.
loc - the Locator to be addedvoid removeLocator(Locator loc)
Locator.
loc - the Locator to be removedvoid clearLocators()
Locators.
void setLocators(Locator[] locs)
Locators with the ones in the specified array.
locs - a Locator []void setLocators(List locs)
Locators with the ones in the specified List.
locs - a List of LocatorsAttribute[] getAttributes()
Attributes.
Attribute []List getAttributesAsList()
Attributes as a List.
Attributes as a Listvoid addAttribute(Attribute att)
Attribute.
att - the Attribute to be addedvoid removeAttribute(Attribute att)
Attribute.
att - the Attribute to be removedvoid removeAttribute(int i)
void clearAttributes()
Attributes.
void setAttributes(Attribute[] atts)
Attributes with the ones in the specified array.
atts - an Attribute []void setAttributes(List atts)
Attributes with the ones in the specified List.
atts - a List of AttributesAttribute[] getAttributesForAtom(Atom atom)
Atom.
atom - Atom
List of AttributesList getAttributesForAtomAsList(Atom atom)
Atom
in a List.
atom - Atom
List of AttributesAtomAttribute[] getAttributesForRelationship(AtomRelationship rel)
Relationship.
rel - Relationship
List of AtomAttributesList getAttributesForRelationshipAsList(AtomRelationship rel)
Relationship
in a List.
rel - Relationship
List of AttributesContext[] getContexts()
Contexts.
Context []Context[] getContexts(Restrictor restrictor)
Concept's Contexts.
Restricts the return based on the given Restrictor.
restrictor - Restrictor
List getContextsAsList()
Contexts as a List.
Contexts as a Listvoid addContext(Context cxt)
Context.
cxt - the Context to be addedvoid removeContext(Context cxt)
Context.
cxt - the Context to be removedvoid removeContext(int i)
void clearContexts()
Contexts.
void setContexts(Context[] cxts)
Contexts with the ones in the specified array.
cxts - a Context []void setContexts(List cxts)
Contexts with the ones in the specified List.
cxts - a List of ContextsCoocurrence[] getCoocurrences()
Coocurrences.
Coocurrence []Coocurrence[] getCoocurrences(Restrictor restrictor)
Concept's Coocurrences.
Restricts the return based on the given Restrictor.
restrictor - Restrictor
List getCoocurrencesAsList()
Coocurrences as a List.
Coocurrences as a Listvoid addCoocurrence(Coocurrence coc)
Coocurrence.
coc - the Coocurrence to be addedvoid removeCoocurrence(Coocurrence coc)
Coocurrence.
coc - the Coocurrence to be removedvoid removeCoocurrence(int i)
void clearCoocurrences()
Coocurrences.
void setCoocurrences(Coocurrence[] cocs)
Coocurrences with the ones in the specified array.
cocs - a Coocurrence []void setCoocurrences(List cocs)
Coocurrences with the ones in the specified List.
cocs - a List of CoocurrencesDefinition[] getDefinitions()
Definitions.
Definition []Definition[] getDefinitions(Restrictor restrictor)
Concept's Definitions.
Restricts the return based on the given Restrictor.
restrictor - Restrictor
List getDefinitionsAsList()
Definitions as a List.
Definitions as a Listvoid addDefinition(Definition def)
Definition.
def - the Definition to be addedvoid removeDefinition(Definition def)
Definition.
def - the Definition to be removedvoid clearDefinitions()
Definitions.
void setDefinitions(Definition[] defs)
Definitions with the ones in the specified array.
defs - a Definition []void setDefinitions(List defs)
Definitions with the ones in the specified List.
defs - a List of DefinitionsRelationship[] getRelationships()
Relationships.
Relationship []Relationship[] getRelationships(Restrictor restrictor)
Concept's Relationships.
Restricts the return based on the given Restrictor.
restrictor - Restrictor
List getRelationshipsAsList()
Relationships as a List.
Relationships as a Listvoid addRelationship(Relationship rel)
Relationship.
rel - the Relationship to be addedvoid removeRelationship(Relationship rel)
Relationship.
rel - the Relationship to be removedvoid removeRelationship(int i)
void clearRelationships()
Relationships.
void setRelationships(Relationship[] rels)
Relationships with the ones in the specified array.
rels - a Relationship []void setRelationships(List rels)
Relationships of the ones in the specified List.
rels - a List of RelationshipsSemanticType[] getSemanticTypes()
SemanticTypes.
SemanticType []List getSemanticTypesAsList()
SemanticTypes as a List.
SemanticTypes as a Listvoid addSemanticType(SemanticType sty)
SemanticType.
sty - the SemanticType to be addedvoid removeSemanticType(SemanticType sty)
SemanticType.
sty - the SemanticType to be removedvoid clearSemanticTypes()
SemanticTypes.
void setSemanticTypes(SemanticType[] stys)
SemanticTypes with the ones in the specified array.
stys - a SemanticType []void setSemanticTypes(List stys)
SemanticTypes with the ones in the specified List.
stys - a List of SemanticTypesComponentHistory[] getComponentHistories()
ComponentHistorys.
ComponentHistory []List getComponentHistoriesAsList()
ComponentHistorys as a List.
ComponentHistorys as a Listvoid addComponentHistory(ComponentHistory map)
ComponentHistory.
map - the ComponentHistory to be addedvoid removeComponentHistory(ComponentHistory map)
ComponentHistory.
map - the ComponentHistory to be removedvoid clearComponentHistories()
ComponentHistorys.
void setComponentHistories(ComponentHistory[] maps)
ComponentHistorys with the ones in the specified array.
maps - a ComponentHistory []void setComponentHistories(List maps)
ComponentHistorys with the ones in the specified List.
maps - a List of ComponentHistorysMapping[] getMappings()
Mappings.
Mapping []List getMappingsAsList()
Mappings as a List.
Mappings as a Listvoid addMapping(Mapping map)
Mapping.
map - the Mapping to be addedvoid removeMapping(Mapping map)
Mapping.
map - the Mapping to be removedvoid removeMapping(int i)
void clearMappings()
Mappings.
void setMappings(Mapping[] maps)
Mappings with the ones in the specified array.
maps - a Mapping []void setMappings(List maps)
Mappings with the ones in the specified List.
maps - a List of MappingsString getCui()
Concept.
This is shorthand for getConceptIdentifier().
void setCui(String cui)
Concept.
This is shorthand for setConceptIdentifier(String).
cui - the CUIString getConceptIdentifier()
Concept.
void setConceptIdentifier(String cui)
Concept.
cui - the CUIString getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
String composed from key Concept fieldsContextGroup[] getContextGroups()
ContextGroups.
ContextGroup []List getContextGroupsAsList()
ContextGroups as a List.
ContextGroups as a ListCoocurrenceGroup[] getCoocurrenceGroups()
CoocurrenceGroups.
CoocurrenceGroup []List getCoocurrenceGroupsAsList()
CoocurrenceGroups as a List.
CoocurrenceGroups as a ListTermAttribute[] getTermAttributes()
TermAttributes.
TermAttribute []List getTermAttributesAsList()
TermAttributes as a List.
TermAttributes as a ListTerm[] getTerms()
Terms.
Term []List getTermsAsList()
Terms as a List.
Terms as a ListAtom[] 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 | ||||||||