|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.PlaceholderConcept
public class PlaceholderConcept
Implementation of the Concept interface.
Used when Concept components do not need to be saved.
Uses less space than Concept.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.Concept |
|---|
Concept.ByCUIComparator, Concept.ByPreferredNameComparator |
| Field Summary | |
|---|---|
protected List |
atoms
|
protected String |
cui
|
| Constructor Summary | |
|---|---|
PlaceholderConcept()
Instantiates an empty PlaceholderConcept. |
|
| 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 PlaceholderConcept'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. |
int |
compareTo(Object o)
Compares this Concept to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
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
that holds this 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()
Shorthand for getConceptIdentifier(). |
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. |
int |
hashCode()
Return a hash code based on key fields. |
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
that holds this 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)
Shorthand for setConceptIdentifier(String). |
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 class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List atoms
protected String cui
| Constructor Detail |
|---|
public PlaceholderConcept()
PlaceholderConcept.
| Method Detail |
|---|
public void clear()
PlaceholderConcept's components.
clear in interface Conceptpublic boolean isEmpty()
ConceptConcept is empty, meaning
that either the SemanticType was removed or
all of the Atoms were removed.
isEmpty in interface Conceptpublic Atom[] getAtoms()
Atoms.
getAtoms in interface ConceptAtom []public List getAtomsAsList()
Atoms as a List.
getAtomsAsList in interface ConceptAtoms as a Listpublic void addAtom(Atom atom)
Atom.
addAtom in interface Conceptatom - the Atom to be addedpublic void removeAtom(Atom atom)
Atom.
removeAtom in interface Conceptatom - the Atom to be removedpublic void clearAtoms()
Atoms.
clearAtoms in interface Conceptpublic void setAtoms(Atom[] atoms)
Atoms with the
ones in the specified array.
setAtoms in interface Conceptatoms - a Atom []public void setAtoms(List atoms)
Atoms with the
ones in the specified List.
setAtoms in interface Conceptatoms - a List of Atomspublic Atom getPreferredAtom()
getPreferredAtom in interface ConceptAtompublic Atom getPreferredAtom(Comparator comparator)
Comparator to determine the preferred atom.
getPreferredAtom in interface Conceptcomparator - Comparator
Atompublic Locator[] getLocators()
Locators.
getLocators in interface ConceptLocator []public List getLocatorsAsList()
Locators as a List.
getLocatorsAsList in interface ConceptLocators as a Listpublic void addLocator(Locator loc)
Locator.
addLocator in interface Conceptloc - the Locator to be addedpublic void removeLocator(Locator loc)
Locator.
removeLocator in interface Conceptloc - the Locator to be removedpublic void clearLocators()
Locators.
clearLocators in interface Conceptpublic void setLocators(Locator[] locs)
Locators with the ones in the specified array.
setLocators in interface Conceptlocs - a Locator []public void setLocators(List locs)
Locators with the ones in the specified List.
setLocators in interface Conceptlocs - a List of Locatorspublic Attribute[] getAttributes()
Attributes.
getAttributes in interface ConceptAttribute []public List getAttributesAsList()
Attributes as a List.
getAttributesAsList in interface ConceptAttributes as a Listpublic void addAttribute(Attribute att)
Attribute.
addAttribute in interface Conceptatt - the Attribute to be addedpublic void removeAttribute(Attribute att)
Attribute.
removeAttribute in interface Conceptatt - the Attribute to be removedpublic void clearAttributes()
Attributes.
clearAttributes in interface Conceptpublic void setAttributes(Attribute[] atts)
Attributes with the ones in the specified array.
setAttributes in interface Conceptatts - an Attribute []public void setAttributes(List atts)
Attributes with the ones in the specified List.
setAttributes in interface Conceptatts - a List of Attributespublic Context[] getContexts()
Contexts.
getContexts in interface ConceptContext []public Context[] getContexts(Restrictor restrictor)
Concept's Contexts.
Restricts the return based on the given Restrictor.
getContexts in interface Conceptrestrictor - Restrictor
public List getContextsAsList()
Contexts as a List.
getContextsAsList in interface ConceptContexts as a Listpublic void addContext(Context cxt)
Context.
addContext in interface Conceptcxt - the Context to be addedpublic void removeContext(Context cxt)
Context.
removeContext in interface Conceptcxt - the Context to be removedpublic void clearContexts()
Contexts.
clearContexts in interface Conceptpublic void setContexts(Context[] cxts)
Contexts with the ones in the specified array.
setContexts in interface Conceptcxts - a Context []public void setContexts(List cxts)
Contexts with the ones in the specified List.
setContexts in interface Conceptcxts - a List of Contextspublic Coocurrence[] getCoocurrences()
Coocurrences.
getCoocurrences in interface ConceptCoocurrence []public Coocurrence[] getCoocurrences(Restrictor restrictor)
Concept's Coocurrences.
Restricts the return based on the given Restrictor.
getCoocurrences in interface Conceptrestrictor - Restrictor
public List getCoocurrencesAsList()
Coocurrences as a List.
getCoocurrencesAsList in interface ConceptCoocurrences as a Listpublic void addCoocurrence(Coocurrence coc)
Coocurrence.
addCoocurrence in interface Conceptcoc - the Coocurrence to be addedpublic void removeCoocurrence(Coocurrence coc)
Coocurrence.
removeCoocurrence in interface Conceptcoc - the Coocurrence to be removedpublic void clearCoocurrences()
Coocurrences.
clearCoocurrences in interface Conceptpublic void setCoocurrences(Coocurrence[] cocs)
Coocurrences with the ones in the specified array.
setCoocurrences in interface Conceptcocs - a Coocurrence []public void setCoocurrences(List cocs)
Coocurrences with the ones in the specified List.
setCoocurrences in interface Conceptcocs - a List of Coocurrencespublic Definition[] getDefinitions()
Definitions.
getDefinitions in interface ConceptDefinition []public Definition[] getDefinitions(Restrictor restrictor)
Concept's Definitions.
Restricts the return based on the given Restrictor.
getDefinitions in interface Conceptrestrictor - Restrictor
public List getDefinitionsAsList()
Definitions as a List.
getDefinitionsAsList in interface ConceptDefinitions as a Listpublic void addDefinition(Definition def)
Definition.
addDefinition in interface Conceptdef - the Definition to be addedpublic void removeDefinition(Definition def)
Definition.
removeDefinition in interface Conceptdef - the Definition to be removedpublic void clearDefinitions()
Definitions.
clearDefinitions in interface Conceptpublic void setDefinitions(Definition[] defs)
Definitions with the ones in the specified array.
setDefinitions in interface Conceptdefs - a Definition []public void setDefinitions(List defs)
Definitions with the ones in the specified List.
setDefinitions in interface Conceptdefs - a List of Definitionspublic Relationship[] getRelationships()
Relationships.
getRelationships in interface ConceptRelationship []public Relationship[] getRelationships(Restrictor restrictor)
Concept's Relationships.
Restricts the return based on the given Restrictor.
getRelationships in interface Conceptrestrictor - Restrictor
public List getRelationshipsAsList()
Relationships as a List.
getRelationshipsAsList in interface ConceptRelationships as a Listpublic void addRelationship(Relationship rel)
Relationship.
addRelationship in interface Conceptrel - the Relationship to be addedpublic void removeRelationship(Relationship rel)
Relationship.
removeRelationship in interface Conceptrel - the Relationship to be removedpublic void clearRelationships()
Relationships.
clearRelationships in interface Conceptpublic void setRelationships(Relationship[] rels)
Relationships with the ones in the specified array.
setRelationships in interface Conceptrels - a Relationship []public void setRelationships(List rels)
Relationships of the ones in the specified List.
setRelationships in interface Conceptrels - a List of Relationshipspublic SemanticType[] getSemanticTypes()
SemanticTypes.
getSemanticTypes in interface ConceptSemanticType []public List getSemanticTypesAsList()
SemanticTypes as a List.
getSemanticTypesAsList in interface ConceptSemanticTypes as a Listpublic void addSemanticType(SemanticType sty)
SemanticType.
addSemanticType in interface Conceptsty - the SemanticType to be addedpublic void removeSemanticType(SemanticType sty)
SemanticType.
removeSemanticType in interface Conceptsty - the SemanticType to be removedpublic void clearSemanticTypes()
SemanticTypes.
clearSemanticTypes in interface Conceptpublic void setSemanticTypes(SemanticType[] stys)
SemanticTypes with the ones in the specified array.
setSemanticTypes in interface Conceptstys - a SemanticType []public void setSemanticTypes(List stys)
SemanticTypes with the ones in the specified List.
setSemanticTypes in interface Conceptstys - a List of SemanticTypespublic ComponentHistory[] getComponentHistories()
ComponentHistorys.
getComponentHistories in interface ConceptComponentHistory []public List getComponentHistoriesAsList()
ComponentHistorys as a List.
getComponentHistoriesAsList in interface ConceptComponentHistorys as a Listpublic void addComponentHistory(ComponentHistory map)
ComponentHistory.
addComponentHistory in interface Conceptmap - the ComponentHistory to be addedpublic void removeComponentHistory(ComponentHistory map)
ComponentHistory.
removeComponentHistory in interface Conceptmap - the ComponentHistory to be removedpublic void clearComponentHistories()
ComponentHistorys.
clearComponentHistories in interface Conceptpublic void setComponentHistories(ComponentHistory[] maps)
ComponentHistorys with the ones in the specified array.
setComponentHistories in interface Conceptmaps - a ComponentHistory []public void setComponentHistories(List maps)
ComponentHistorys with the ones in the specified List.
setComponentHistories in interface Conceptmaps - a List of ComponentHistoryspublic Mapping[] getMappings()
Mappings.
getMappings in interface ConceptMapping []public List getMappingsAsList()
Mappings as a List.
getMappingsAsList in interface ConceptMappings as a Listpublic void addMapping(Mapping map)
Mapping.
addMapping in interface Conceptmap - the Mapping to be addedpublic void removeMapping(Mapping map)
Mapping.
removeMapping in interface Conceptmap - the Mapping to be removedpublic void clearMappings()
Mappings.
clearMappings in interface Conceptpublic void setMappings(Mapping[] maps)
Mappings with the ones in the specified array.
setMappings in interface Conceptmaps - a Mapping []public void setMappings(List maps)
Mappings with the ones in the specified List.
setMappings in interface Conceptmaps - a List of Mappingspublic Attribute[] getAttributesForAtom(Atom atom)
Atom.
getAttributesForAtom in interface Conceptatom - Atom
List of Attributespublic List getAttributesForAtomAsList(Atom atom)
Atom
in a List.
getAttributesForAtomAsList in interface Conceptatom - Atom
List of AtomAttributespublic AtomAttribute[] getAttributesForRelationship(AtomRelationship rel)
Relationship.
getAttributesForRelationship in interface Conceptrel - AtomRelationship
List of Attributespublic List getAttributesForRelationshipAsList(AtomRelationship rel)
Relationship
in a List.
getAttributesForRelationshipAsList in interface Conceptrel - AtomRelationship
List of Attributespublic String getCui()
getConceptIdentifier().
getCui in interface Conceptpublic void setCui(String cui)
setConceptIdentifier(String).
setCui in interface Conceptcui - the CUIpublic String getConceptIdentifier()
Concept
that holds this Concept.
getConceptIdentifier in interface Conceptpublic void setConceptIdentifier(String cui)
Concept
that holds this Concept.
setConceptIdentifier in interface Conceptcui - the CUIpublic ContextGroup[] getContextGroups()
ContextGroups.
getContextGroups in interface ConceptContextGroup []public List getContextGroupsAsList()
ContextGroups as a List.
getContextGroupsAsList in interface ConceptContextGroups as a Listpublic CoocurrenceGroup[] getCoocurrenceGroups()
CoocurrenceGroups.
getCoocurrenceGroups in interface ConceptCoocurrenceGroup []public List getCoocurrenceGroupsAsList()
CoocurrenceGroups as a List.
getCoocurrenceGroupsAsList in interface ConceptCoocurrenceGroups as a Listpublic TermAttribute[] getTermAttributes()
TermAttributes.
getTermAttributes in interface ConceptTermAttribute []public List getTermAttributesAsList()
TermAttributes as a List.
getTermAttributesAsList in interface ConceptTermAttributes as a Listpublic Term[] getTerms()
Terms.
getTerms in interface ConceptTerm []public List getTermsAsList()
Terms as a List.
getTermsAsList in interface ConceptTerms as a Listpublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface ConceptString composed from the cui.public Atom[] getAtoms(Restrictor restrictor)
Concept's Atoms.
Restricts the return based on the given Restrictor.
getAtoms in interface Conceptrestrictor - Restrictor
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
true if the specified object is
equal to this object. The specified object must be a
Concept with matching key fields.
equals in class Objecto - an Object to compare against
true if Object o is equal
false otherwisepublic int compareTo(Object o)
Concept to another one. Results
are indeterminate if the specified parameter is not of the
same class.
compareTo in interface Comparableo - the Object to compare to
int representing the relative ordering
of this and the compare-to object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||