|
||||||||||
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
Default implementation of the CoocurrenceGroup
interface.
Nested Class Summary |
Nested classes inherited from class 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 CoocurrenceContext s. |
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 CoocurrenceContext s . |
List |
getCoocurrenceContextsAsList()
Returns the CoocurrenceContext s 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 CoocurrenceContext s with those in the
specified array. |
void |
setCoocurrenceContexts(List coc_contexts)
Replaces the CoocurrenceContext s 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 copiedMethod Detail |
public Atom getAtom()
Atom
this CoocurrenceGroup
is connected to.
getAtom
in interface AtomElement
Atom
this CoocurrenceGroup
is connected topublic void setAtom(Atom string_source)
Atom
this CoocurrenceGroup
is connected to.
setAtom
in interface AtomElement
string_source
- the Atom
this CoocurrenceGroup
is connected topublic Concept getRelatedConcept()
getRelatedConcept
in interface RelatedConceptElement
public void setRelatedConcept(Concept related_concept)
setRelatedConcept
in interface RelatedConceptElement
related_concept
- the related concept involvedpublic Atom getRelatedAtom()
Atom
involved.
getRelatedAtom
in interface RelatedAtomElement
Atom
involvedpublic void setRelatedAtom(Atom related_string_source)
Atom
involved.
setRelatedAtom
in interface RelatedAtomElement
related_string_source
- the related Atom
involvedpublic CoocurrenceContext[] getCoocurrenceContexts()
CoocurrenceContext
s .
getCoocurrenceContexts
in interface CoocurrenceGroup
CoocurrenceContext
spublic List getCoocurrenceContextsAsList()
CoocurrenceContext
s as a List
.
getCoocurrenceContextsAsList
in interface CoocurrenceGroup
CoocurrenceContext
s as a List
public void setCoocurrenceContexts(String cxt_contexts)
setCoocurrenceContexts
in interface CoocurrenceGroup
cxt_contexts
- the coocuurence attribute valuepublic void setCoocurrenceContexts(CoocurrenceContext[] coc_contexts)
CoocurrenceContext
s with those in the
specified array.
setCoocurrenceContexts
in interface CoocurrenceGroup
coc_contexts
- an array of CoocurrenceContext
spublic void setCoocurrenceContexts(List coc_contexts)
CoocurrenceContext
s with those in the
specified List
setCoocurrenceContexts
in interface CoocurrenceGroup
coc_contexts
- a List
of CoocurrenceContext
spublic void addCoocurrenceContext(CoocurrenceContext coc_context)
CoocurrenceContext
.
addCoocurrenceContext
in interface CoocurrenceGroup
coc_context
- the CoocurrenceContext
to be addedpublic void removeCoocurrenceContext(CoocurrenceContext coc_context)
CoocurrenceContext
.
removeCoocurrenceContext
in interface CoocurrenceGroup
coc_context
- the CoocurrenceContext
to be removedpublic void clearCoocurrenceContexts()
CoocurrenceContext
s.
clearCoocurrenceContexts
in interface CoocurrenceGroup
public Concept getConcept()
Concept
that holds this CoocurrenceGroup
.
getConcept
in interface ConceptElement
Concept
that holds this CoocurrenceGroup
public void setConcept(Concept concept)
Concept
that holds this CoocurrenceGroup
.
setConcept
in interface ConceptElement
concept
- the Concept
that holds this CoocurrenceGroup
public String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface CoocurrenceGroup
String
composed from the cui1, aui1, cui2,
and aui2.public int hashCode()
public 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.
o
- 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 Comparable
o
- 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 |