|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.CoocurrenceGroupImpl
public class CoocurrenceGroupImpl
Default implementation of the CoocurrenceGroup
interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.AtomElement |
|---|
AtomElement.ByLanguageRestrictor, AtomElement.BySourceRestrictor |
| Constructor Summary | |
|---|---|
CoocurrenceGroupImpl()
Instantiates an empty CoocurrenceGroup. |
|
CoocurrenceGroupImpl(CoocurrenceGroup cg)
Instantiates a CoocurrenceGroup from the specified CoocurrenceGroup. |
|
| Method Summary | |
|---|---|
void |
addCoocurrenceContext(CoocurrenceContext coc_context)
Adds the specified CoocurrenceContext. |
void |
clearCoocurrenceContexts()
Removes all CoocurrenceContexts. |
int |
compareTo(Object o)
Compares this CoocurrenceGroup to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
Atom |
getAtom()
Returns the Atom this CoocurrenceGroup is connected to. |
Concept |
getConcept()
Returns the Concept that holds this CoocurrenceGroup. |
CoocurrenceContext[] |
getCoocurrenceContexts()
Returns the CoocurrenceContexts . |
List |
getCoocurrenceContextsAsList()
Returns the CoocurrenceContexts as a List. |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
Atom |
getRelatedAtom()
Returns the related Atom involved. |
Concept |
getRelatedConcept()
Returns the related concept involved. |
int |
hashCode()
Return a hash code based on key fields. |
void |
removeCoocurrenceContext(CoocurrenceContext coc_context)
Removes the specified CoocurrenceContext. |
void |
setAtom(Atom string_source)
Sets the Atom this CoocurrenceGroup is connected to. |
void |
setConcept(Concept concept)
Sets the Concept that holds this CoocurrenceGroup. |
void |
setCoocurrenceContexts(CoocurrenceContext[] coc_contexts)
Replaces the CoocurrenceContexts with those in the
specified array. |
void |
setCoocurrenceContexts(List coc_contexts)
Replaces the CoocurrenceContexts with those in the
specified List |
void |
setCoocurrenceContexts(String cxt_contexts)
Sets the coocurrence attribute value. |
void |
setRelatedAtom(Atom related_string_source)
Sets the related Atom involved. |
void |
setRelatedConcept(Concept related_concept)
Sets the second concept involved. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CoocurrenceGroupImpl()
CoocurrenceGroup.
public CoocurrenceGroupImpl(CoocurrenceGroup cg)
CoocurrenceGroup from the specified CoocurrenceGroup.
cg - CoocurrenceGroup to be copied| Method Detail |
|---|
public Atom getAtom()
Atom this CoocurrenceGroup is connected to.
getAtom in interface AtomElementAtom this CoocurrenceGroup is connected topublic void setAtom(Atom string_source)
Atom this CoocurrenceGroup is connected to.
setAtom in interface AtomElementstring_source - the Atom this CoocurrenceGroup is connected topublic Concept getRelatedConcept()
getRelatedConcept in interface RelatedConceptElementpublic void setRelatedConcept(Concept related_concept)
setRelatedConcept in interface RelatedConceptElementrelated_concept - the related concept involvedpublic Atom getRelatedAtom()
Atom involved.
getRelatedAtom in interface RelatedAtomElementAtom involvedpublic void setRelatedAtom(Atom related_string_source)
Atom involved.
setRelatedAtom in interface RelatedAtomElementrelated_string_source - the related Atom involvedpublic CoocurrenceContext[] getCoocurrenceContexts()
CoocurrenceContexts .
getCoocurrenceContexts in interface CoocurrenceGroupCoocurrenceContextspublic List getCoocurrenceContextsAsList()
CoocurrenceContexts as a List.
getCoocurrenceContextsAsList in interface CoocurrenceGroupCoocurrenceContexts as a Listpublic void setCoocurrenceContexts(String cxt_contexts)
setCoocurrenceContexts in interface CoocurrenceGroupcxt_contexts - the coocuurence attribute valuepublic void setCoocurrenceContexts(CoocurrenceContext[] coc_contexts)
CoocurrenceContexts with those in the
specified array.
setCoocurrenceContexts in interface CoocurrenceGroupcoc_contexts - an array of CoocurrenceContextspublic void setCoocurrenceContexts(List coc_contexts)
CoocurrenceContexts with those in the
specified List
setCoocurrenceContexts in interface CoocurrenceGroupcoc_contexts - a List of CoocurrenceContextspublic void addCoocurrenceContext(CoocurrenceContext coc_context)
CoocurrenceContext.
addCoocurrenceContext in interface CoocurrenceGroupcoc_context - the CoocurrenceContext to be addedpublic void removeCoocurrenceContext(CoocurrenceContext coc_context)
CoocurrenceContext.
removeCoocurrenceContext in interface CoocurrenceGroupcoc_context - the CoocurrenceContext to be removedpublic void clearCoocurrenceContexts()
CoocurrenceContexts.
clearCoocurrenceContexts in interface CoocurrenceGrouppublic Concept getConcept()
Concept that holds this CoocurrenceGroup.
getConcept in interface ConceptElementConcept that holds this CoocurrenceGrouppublic void setConcept(Concept concept)
Concept that holds this CoocurrenceGroup.
setConcept in interface ConceptElementconcept - the Concept that holds this CoocurrenceGrouppublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface CoocurrenceGroupString composed from the cui1, aui1, cui2,
and aui2.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
CoocurrenceGroup 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)
CoocurrenceGroup 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 | ||||||||