gov.nih.nlm.umls.meta.impl
Class PlaceholderConcept

java.lang.Object
  extended bygov.nih.nlm.umls.meta.impl.PlaceholderConcept
All Implemented Interfaces:
Comparable, Concept
Direct Known Subclasses:
ConceptImpl

public class PlaceholderConcept
extends Object
implements Concept

Implementation of the Concept interface. Used when Concept components do not need to be saved. Uses less space than Concept.

Author:
Brian Carlsen, Deborah Shapiro

Nested Class Summary
 
Nested classes inherited from class 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

atoms

protected List atoms

cui

protected String cui
Constructor Detail

PlaceholderConcept

public PlaceholderConcept()
Instantiates an empty PlaceholderConcept.

Method Detail

clear

public void clear()
This removes all of the PlaceholderConcept's components.

Specified by:
clear in interface Concept

isEmpty

public boolean isEmpty()
Description copied from interface: Concept
This indicates if the Concept is empty, meaning that either the SemanticType was removed or all of the Atoms were removed.

Specified by:
isEmpty in interface Concept
Returns:
boolean if empty

getAtoms

public Atom[] getAtoms()
Returns the Atoms.

Specified by:
getAtoms in interface Concept
Returns:
an Atom []

getAtomsAsList

public List getAtomsAsList()
Returns the Atoms as a List.

Specified by:
getAtomsAsList in interface Concept
Returns:
the Atoms as a List

addAtom

public void addAtom(Atom atom)
Adds the specified Atom.

Specified by:
addAtom in interface Concept
Parameters:
atom - the Atom to be added

removeAtom

public void removeAtom(Atom atom)
Removes the specified Atom.

Specified by:
removeAtom in interface Concept
Parameters:
atom - the Atom to be removed

clearAtoms

public void clearAtoms()
Remove all Atoms.

Specified by:
clearAtoms in interface Concept

setAtoms

public void setAtoms(Atom[] atoms)
Replace any Atoms with the ones in the specified array.

Specified by:
setAtoms in interface Concept
Parameters:
atoms - a Atom []

setAtoms

public void setAtoms(List atoms)
Replace Atoms with the ones in the specified List.

Specified by:
setAtoms in interface Concept
Parameters:
atoms - a List of Atoms

getPreferredAtom

public Atom getPreferredAtom()
Returns the preferred atom of the concept. It has TS=P, STT=PF, and ISPREF=Y.

Specified by:
getPreferredAtom in interface Concept
Returns:
Atom

getPreferredAtom

public Atom getPreferredAtom(Comparator comparator)
Returns the preferred atom of the concept. Uses the given Comparator to determine the preferred atom.

Specified by:
getPreferredAtom in interface Concept
Parameters:
comparator - Comparator
Returns:
Atom

getLocators

public Locator[] getLocators()
Returns the Locators.

Specified by:
getLocators in interface Concept
Returns:
a Locator []

getLocatorsAsList

public List getLocatorsAsList()
Returns the Locators as a List.

Specified by:
getLocatorsAsList in interface Concept
Returns:
the Locators as a List

addLocator

public void addLocator(Locator loc)
Add the specified Locator.

Specified by:
addLocator in interface Concept
Parameters:
loc - the Locator to be added

removeLocator

public void removeLocator(Locator loc)
Removes the specified Locator.

Specified by:
removeLocator in interface Concept
Parameters:
loc - the Locator to be removed

clearLocators

public void clearLocators()
Remove all Locators.

Specified by:
clearLocators in interface Concept

setLocators

public void setLocators(Locator[] locs)
Replace Locators with the ones in the specified array.

Specified by:
setLocators in interface Concept
Parameters:
locs - a Locator []

setLocators

public void setLocators(List locs)
Replace Locators with the ones in the specified List.

Specified by:
setLocators in interface Concept
Parameters:
locs - a List of Locators

getAttributes

public Attribute[] getAttributes()
Returns the Attributes.

Specified by:
getAttributes in interface Concept
Returns:
a Attribute []

getAttributesAsList

public List getAttributesAsList()
Returns the Attributes as a List.

Specified by:
getAttributesAsList in interface Concept
Returns:
the Attributes as a List

addAttribute

public void addAttribute(Attribute att)
Adds the specified Attribute.

Specified by:
addAttribute in interface Concept
Parameters:
att - the Attribute to be added

removeAttribute

public void removeAttribute(Attribute att)
Removes the specified Attribute.

Specified by:
removeAttribute in interface Concept
Parameters:
att - the Attribute to be removed

clearAttributes

public void clearAttributes()
Remove all Attributes.

Specified by:
clearAttributes in interface Concept

setAttributes

public void setAttributes(Attribute[] atts)
Replace Attributes with the ones in the specified array.

Specified by:
setAttributes in interface Concept
Parameters:
atts - an Attribute []

setAttributes

public void setAttributes(List atts)
Replace Attributes with the ones in the specified List.

Specified by:
setAttributes in interface Concept
Parameters:
atts - a List of Attributes

getContexts

public Context[] getContexts()
Return the Contexts.

Specified by:
getContexts in interface Concept
Returns:
a Context []

getContexts

public Context[] getContexts(Restrictor restrictor)
Returns a subset of this Concept's Contexts. Restricts the return based on the given Restrictor.

Specified by:
getContexts in interface Concept
Parameters:
restrictor - Restrictor
Returns:
Context[]

getContextsAsList

public List getContextsAsList()
Returns the Contexts as a List.

Specified by:
getContextsAsList in interface Concept
Returns:
the Contexts as a List

addContext

public void addContext(Context cxt)
Adds the specified Context.

Specified by:
addContext in interface Concept
Parameters:
cxt - the Context to be added

removeContext

public void removeContext(Context cxt)
Removes the specified Context.

Specified by:
removeContext in interface Concept
Parameters:
cxt - the Context to be removed

clearContexts

public void clearContexts()
Remove all Contexts.

Specified by:
clearContexts in interface Concept

setContexts

public void setContexts(Context[] cxts)
Replace Contexts with the ones in the specified array.

Specified by:
setContexts in interface Concept
Parameters:
cxts - a Context []

setContexts

public void setContexts(List cxts)
Replace Contexts with the ones in the specified List.

Specified by:
setContexts in interface Concept
Parameters:
cxts - a List of Contexts

getCoocurrences

public Coocurrence[] getCoocurrences()
Returns the Coocurrences.

Specified by:
getCoocurrences in interface Concept
Returns:
a Coocurrence []

getCoocurrences

public Coocurrence[] getCoocurrences(Restrictor restrictor)
Returns a subset of this Concept's Coocurrences. Restricts the return based on the given Restrictor.

Specified by:
getCoocurrences in interface Concept
Parameters:
restrictor - Restrictor
Returns:
Coocurrence[]

getCoocurrencesAsList

public List getCoocurrencesAsList()
Returns the Coocurrences as a List.

Specified by:
getCoocurrencesAsList in interface Concept
Returns:
the Coocurrences as a List

addCoocurrence

public void addCoocurrence(Coocurrence coc)
Adds the specified Coocurrence.

Specified by:
addCoocurrence in interface Concept
Parameters:
coc - the Coocurrence to be added

removeCoocurrence

public void removeCoocurrence(Coocurrence coc)
Removes the specified Coocurrence.

Specified by:
removeCoocurrence in interface Concept
Parameters:
coc - the Coocurrence to be removed

clearCoocurrences

public void clearCoocurrences()
Remove all Coocurrences.

Specified by:
clearCoocurrences in interface Concept

setCoocurrences

public void setCoocurrences(Coocurrence[] cocs)
Replace Coocurrences with the ones in the specified array.

Specified by:
setCoocurrences in interface Concept
Parameters:
cocs - a Coocurrence []

setCoocurrences

public void setCoocurrences(List cocs)
Replace Coocurrences with the ones in the specified List.

Specified by:
setCoocurrences in interface Concept
Parameters:
cocs - a List of Coocurrences

getDefinitions

public Definition[] getDefinitions()
Returns the Definitions.

Specified by:
getDefinitions in interface Concept
Returns:
a Definition []

getDefinitions

public Definition[] getDefinitions(Restrictor restrictor)
Returns a subset of this Concept's Definitions. Restricts the return based on the given Restrictor.

Specified by:
getDefinitions in interface Concept
Parameters:
restrictor - Restrictor
Returns:
Definition[]

getDefinitionsAsList

public List getDefinitionsAsList()
Returns the Definitions as a List.

Specified by:
getDefinitionsAsList in interface Concept
Returns:
the Definitions as a List

addDefinition

public void addDefinition(Definition def)
Adds the specified Definition.

Specified by:
addDefinition in interface Concept
Parameters:
def - the Definition to be added

removeDefinition

public void removeDefinition(Definition def)
Remove the specified Definition.

Specified by:
removeDefinition in interface Concept
Parameters:
def - the Definition to be removed

clearDefinitions

public void clearDefinitions()
Remove all Definitions.

Specified by:
clearDefinitions in interface Concept

setDefinitions

public void setDefinitions(Definition[] defs)
Replace Definitions with the ones in the specified array.

Specified by:
setDefinitions in interface Concept
Parameters:
defs - a Definition []

setDefinitions

public void setDefinitions(List defs)
Replace Definitions with the ones in the specified List.

Specified by:
setDefinitions in interface Concept
Parameters:
defs - a List of Definitions

getRelationships

public Relationship[] getRelationships()
Returns the Relationships.

Specified by:
getRelationships in interface Concept
Returns:
a Relationship []

getRelationships

public Relationship[] getRelationships(Restrictor restrictor)
Returns a subset of this Concept's Relationships. Restricts the return based on the given Restrictor.

Specified by:
getRelationships in interface Concept
Parameters:
restrictor - Restrictor
Returns:
Relationship[]

getRelationshipsAsList

public List getRelationshipsAsList()
Returns the Relationships as a List.

Specified by:
getRelationshipsAsList in interface Concept
Returns:
the Relationships as a List

addRelationship

public void addRelationship(Relationship rel)
Adds the specified Relationship.

Specified by:
addRelationship in interface Concept
Parameters:
rel - the Relationship to be added

removeRelationship

public void removeRelationship(Relationship rel)
Removes the specified Relationship.

Specified by:
removeRelationship in interface Concept
Parameters:
rel - the Relationship to be removed

clearRelationships

public void clearRelationships()
Remove all Relationships.

Specified by:
clearRelationships in interface Concept

setRelationships

public void setRelationships(Relationship[] rels)
Replace Relationships with the ones in the specified array.

Specified by:
setRelationships in interface Concept
Parameters:
rels - a Relationship []

setRelationships

public void setRelationships(List rels)
Replace Relationships of the ones in the specified List.

Specified by:
setRelationships in interface Concept
Parameters:
rels - a List of Relationships

getSemanticTypes

public SemanticType[] getSemanticTypes()
Returns the SemanticTypes.

Specified by:
getSemanticTypes in interface Concept
Returns:
a SemanticType []

getSemanticTypesAsList

public List getSemanticTypesAsList()
Returns the SemanticTypes as a List.

Specified by:
getSemanticTypesAsList in interface Concept
Returns:
the SemanticTypes as a List

addSemanticType

public void addSemanticType(SemanticType sty)
Adds a SemanticType.

Specified by:
addSemanticType in interface Concept
Parameters:
sty - the SemanticType to be added

removeSemanticType

public void removeSemanticType(SemanticType sty)
Removes the specified SemanticType.

Specified by:
removeSemanticType in interface Concept
Parameters:
sty - the SemanticType to be removed

clearSemanticTypes

public void clearSemanticTypes()
Removes all SemanticTypes.

Specified by:
clearSemanticTypes in interface Concept

setSemanticTypes

public void setSemanticTypes(SemanticType[] stys)
Replace SemanticTypes with the ones in the specified array.

Specified by:
setSemanticTypes in interface Concept
Parameters:
stys - a SemanticType []

setSemanticTypes

public void setSemanticTypes(List stys)
Replace SemanticTypes with the ones in the specified List.

Specified by:
setSemanticTypes in interface Concept
Parameters:
stys - a List of SemanticTypes

getComponentHistories

public ComponentHistory[] getComponentHistories()
Returns the ComponentHistorys.

Specified by:
getComponentHistories in interface Concept
Returns:
a ComponentHistory []

getComponentHistoriesAsList

public List getComponentHistoriesAsList()
Returns the ComponentHistorys as a List.

Specified by:
getComponentHistoriesAsList in interface Concept
Returns:
the ComponentHistorys as a List

addComponentHistory

public void addComponentHistory(ComponentHistory map)
Adds a ComponentHistory.

Specified by:
addComponentHistory in interface Concept
Parameters:
map - the ComponentHistory to be added

removeComponentHistory

public void removeComponentHistory(ComponentHistory map)
Removes the specified ComponentHistory.

Specified by:
removeComponentHistory in interface Concept
Parameters:
map - the ComponentHistory to be removed

clearComponentHistories

public void clearComponentHistories()
Removes all ComponentHistorys.

Specified by:
clearComponentHistories in interface Concept

setComponentHistories

public void setComponentHistories(ComponentHistory[] maps)
Replace ComponentHistorys with the ones in the specified array.

Specified by:
setComponentHistories in interface Concept
Parameters:
maps - a ComponentHistory []

setComponentHistories

public void setComponentHistories(List maps)
Replace ComponentHistorys with the ones in the specified List.

Specified by:
setComponentHistories in interface Concept
Parameters:
maps - a List of ComponentHistorys

getMappings

public Mapping[] getMappings()
Returns the Mappings.

Specified by:
getMappings in interface Concept
Returns:
a Mapping []

getMappingsAsList

public List getMappingsAsList()
Returns the Mappings as a List.

Specified by:
getMappingsAsList in interface Concept
Returns:
the Mappings as a List

addMapping

public void addMapping(Mapping map)
Adds a Mapping.

Specified by:
addMapping in interface Concept
Parameters:
map - the Mapping to be added

removeMapping

public void removeMapping(Mapping map)
Removes the specified Mapping.

Specified by:
removeMapping in interface Concept
Parameters:
map - the Mapping to be removed

clearMappings

public void clearMappings()
Removes all Mappings.

Specified by:
clearMappings in interface Concept

setMappings

public void setMappings(Mapping[] maps)
Replace Mappings with the ones in the specified array.

Specified by:
setMappings in interface Concept
Parameters:
maps - a Mapping []

setMappings

public void setMappings(List maps)
Replace Mappings with the ones in the specified List.

Specified by:
setMappings in interface Concept
Parameters:
maps - a List of Mappings

getAttributesForAtom

public Attribute[] getAttributesForAtom(Atom atom)
Returns the attributes with aui that matches that of the given Atom.

Specified by:
getAttributesForAtom in interface Concept
Parameters:
atom - Atom
Returns:
List of Attributes

getAttributesForAtomAsList

public List getAttributesForAtomAsList(Atom atom)
Returns the attributes with aui that matches that of the given Atom in a List.

Specified by:
getAttributesForAtomAsList in interface Concept
Parameters:
atom - Atom
Returns:
List of AtomAttributes

getAttributesForRelationship

public AtomAttribute[] getAttributesForRelationship(AtomRelationship rel)
Returns the attributes with aui that matches that of the given Relationship.

Specified by:
getAttributesForRelationship in interface Concept
Parameters:
rel - AtomRelationship
Returns:
List of Attributes

getAttributesForRelationshipAsList

public List getAttributesForRelationshipAsList(AtomRelationship rel)
Returns the attributes with aui that matches that of the given Relationship in a List.

Specified by:
getAttributesForRelationshipAsList in interface Concept
Parameters:
rel - AtomRelationship
Returns:
List of Attributes

getCui

public String getCui()
Shorthand for getConceptIdentifier().

Specified by:
getCui in interface Concept
Returns:
the CUI

setCui

public void setCui(String cui)
Shorthand for setConceptIdentifier(String).

Specified by:
setCui in interface Concept
Parameters:
cui - the CUI

getConceptIdentifier

public String getConceptIdentifier()
Returns the concept unique identifier (CUI) for the Concept that holds this Concept.

Specified by:
getConceptIdentifier in interface Concept
Returns:
the CUI

setConceptIdentifier

public void setConceptIdentifier(String cui)
Sets the concept unique identifier (CUI) for the Concept that holds this Concept.

Specified by:
setConceptIdentifier in interface Concept
Parameters:
cui - the CUI

getContextGroups

public ContextGroup[] getContextGroups()
Return the ContextGroups.

Specified by:
getContextGroups in interface Concept
Returns:
a ContextGroup []

getContextGroupsAsList

public List getContextGroupsAsList()
Returns the ContextGroups as a List.

Specified by:
getContextGroupsAsList in interface Concept
Returns:
the ContextGroups as a List

getCoocurrenceGroups

public CoocurrenceGroup[] getCoocurrenceGroups()
Returns the CoocurrenceGroups.

Specified by:
getCoocurrenceGroups in interface Concept
Returns:
a CoocurrenceGroup []

getCoocurrenceGroupsAsList

public List getCoocurrenceGroupsAsList()
Returns the CoocurrenceGroups as a List.

Specified by:
getCoocurrenceGroupsAsList in interface Concept
Returns:
the CoocurrenceGroups as a List

getTermAttributes

public TermAttribute[] getTermAttributes()
Returns the TermAttributes.

Specified by:
getTermAttributes in interface Concept
Returns:
a TermAttribute []

getTermAttributesAsList

public List getTermAttributesAsList()
Returns the TermAttributes as a List.

Specified by:
getTermAttributesAsList in interface Concept
Returns:
the TermAttributes as a List

getTerms

public Term[] getTerms()
Returns the Terms.

Specified by:
getTerms in interface Concept
Returns:
an Term []

getTermsAsList

public List getTermsAsList()
Returns the Terms as a List.

Specified by:
getTermsAsList in interface Concept
Returns:
the Terms as a List

getKeyFields

public String getKeyFields()
Returns a String key which can be used by equals, compareTo, and hashCode methods.

Specified by:
getKeyFields in interface Concept
Returns:
a String composed from the cui.

getAtoms

public Atom[] getAtoms(Restrictor restrictor)
Returns a subset of this Concept's Atoms. Restricts the return based on the given Restrictor.

Specified by:
getAtoms in interface Concept
Parameters:
restrictor - Restrictor
Returns:
Atom[]

hashCode

public int hashCode()
Return a hash code based on key fields.

Returns:
a hash code based on key fields

equals

public boolean equals(Object o)
Returns true if the specified object is equal to this object. The specified object must be a Concept with matching key fields.

Parameters:
o - an Object to compare against
Returns:
boolean true if Object o is equal false otherwise

compareTo

public int compareTo(Object o)
Compares this Concept to another one. Results are indeterminate if the specified parameter is not of the same class.

Specified by:
compareTo in interface Comparable
Parameters:
o - the Object to compare to
Returns:
int representing the relative ordering of this and the compare-to object


Copyright ©2005