|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nih.nlm.umls.meta.impl.CoocurrenceContextImpl
Default implementation of the CoocurrenceContext
interface.
Nested Class Summary |
Nested classes inherited from class gov.nih.nlm.umls.meta.SourceElement |
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
Constructor Summary | |
CoocurrenceContextImpl()
Instantiates an empty CoocurrenceContext . |
|
CoocurrenceContextImpl(CoocurrenceContext cc)
Instantiates a CoocurrenceContext from the specified CoocurrenceContext . |
Method Summary | |
void |
addQualifier(QualifierFrequency qual)
Adds the specified QualifierFrequency . |
void |
clearQualifiers()
Removes all QualifierFrequency s. |
int |
compareTo(Object o)
Compares this Source to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
int |
getCof()
Shorthand for getCoocurrenceContextFrequency() . |
ContentView |
getContentView()
Returns tbe ContentView definition for this CoocurrenceContext (CVF). |
int |
getCoocurrenceContextFrequency()
Returns the CoocurrenceContext frequency (COF). |
CoocurrenceGroup |
getCoocurrenceGroup()
Returns the CoocurrenceGroup that holds this CoocurrenceContext . |
CoocurrenceType |
getCoocurrenceType()
Returns the CoocurrenceType (COT). |
CoocurrenceType |
getCot()
Shorthand for getCoocurrenceType() . |
ContentView |
getCvf()
Shorthand for getContentView() . |
String |
getKeyFields()
Returns a String key which can be used
by equals, compareTo, and hashCode methods. |
List |
getQualifierAsList()
Returns the QualifierFrequency values as a List . |
QualifierFrequency[] |
getQualifiers()
Returns the QualifierFrequency list. |
Source |
getSource()
Returns the source for this CoocurrenceContext . |
int |
hashCode()
Return a hash code based on key fields. |
void |
removeQualifier(QualifierFrequency qual)
Removes the specified QualifierFrequency . |
void |
setCof(int cof)
Shorthand for setCoocurrenceContextFrequency(int) . |
void |
setContentView(ContentView cvf)
Sets tbe ContentView definition for this CoocurrenceContext (CVF). |
void |
setCoocurrenceContextFrequency(int cof)
Sets the CoocurrenceContext frequency (COF). |
void |
setCoocurrenceGroup(CoocurrenceGroup group)
Sets the CoocurrenceGroup that holds this CoocurrenceContext . |
void |
setCoocurrenceType(CoocurrenceType cot)
Sets the CoocurrenceType (COT). |
void |
setCot(CoocurrenceType cot)
Shorthand for setCoocurrenceType(CoocurrenceType) . |
void |
setCvf(ContentView cvf)
Shorthand for setContentView(ContentView) . |
void |
setQualifiers(List quals)
Replaces the QualifierFrequency values with those in the
specified List |
void |
setQualifiers(QualifierFrequency[] quals)
Replaces the QualifierFrequency values with those in the
specified array. |
void |
setSource(Source source)
Sets the source for this CoocurrenceContext . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CoocurrenceContextImpl()
CoocurrenceContext
.
public CoocurrenceContextImpl(CoocurrenceContext cc)
CoocurrenceContext
from the specified CoocurrenceContext
.
cc
- CoocurrenceContext
to be copiedMethod Detail |
public CoocurrenceGroup getCoocurrenceGroup()
CoocurrenceGroup
that holds this CoocurrenceContext
.
getCoocurrenceGroup
in interface CoocurrenceContext
CoocurrenceGroup
that holds this CoocurrenceContext
public void setCoocurrenceGroup(CoocurrenceGroup group)
CoocurrenceGroup
that holds this CoocurrenceContext
.
setCoocurrenceGroup
in interface CoocurrenceContext
group
- the CoocurrenceGroup
that holds this CoocurrenceContext
public CoocurrenceType getCoocurrenceType()
CoocurrenceType
(COT).
getCoocurrenceType
in interface CoocurrenceContext
CoocurrenceType
public CoocurrenceType getCot()
getCoocurrenceType()
.
getCot
in interface CoocurrenceContext
CoocurrenceType
public void setCoocurrenceType(CoocurrenceType cot)
CoocurrenceType
(COT).
setCoocurrenceType
in interface CoocurrenceContext
cot
- the CoocurrenceType
public void setCot(CoocurrenceType cot)
setCoocurrenceType(CoocurrenceType)
.
setCot
in interface CoocurrenceContext
cot
- the CoocurrenceType
public int getCoocurrenceContextFrequency()
getCoocurrenceContextFrequency
in interface CoocurrenceContext
public int getCof()
getCoocurrenceContextFrequency()
.
getCof
in interface CoocurrenceContext
public void setCoocurrenceContextFrequency(int cof)
setCoocurrenceContextFrequency
in interface CoocurrenceContext
cof
- the CoocurrenceContext frequencypublic void setCof(int cof)
setCoocurrenceContextFrequency(int)
.
setCof
in interface CoocurrenceContext
cof
- the CoocurrenceContext frequencypublic QualifierFrequency[] getQualifiers()
QualifierFrequency
list.
getQualifiers
in interface CoocurrenceContext
QualifierFrequency
spublic List getQualifierAsList()
QualifierFrequency
values as a List
.
getQualifierAsList
in interface CoocurrenceContext
QualifierFrequency
values as a List
public void setQualifiers(QualifierFrequency[] quals)
QualifierFrequency
values with those in the
specified array.
setQualifiers
in interface CoocurrenceContext
quals
- an array of QualifierFrequency
valuespublic void setQualifiers(List quals)
QualifierFrequency
values with those in the
specified List
setQualifiers
in interface CoocurrenceContext
quals
- a List
of QualifierFrequency
valuespublic void addQualifier(QualifierFrequency qual)
QualifierFrequency
.
addQualifier
in interface CoocurrenceContext
qual
- the QualifierFrequency
to be addedpublic void removeQualifier(QualifierFrequency qual)
QualifierFrequency
.
removeQualifier
in interface CoocurrenceContext
qual
- the QualifierFrequency
to be removedpublic void clearQualifiers()
QualifierFrequency
s.
clearQualifiers
in interface CoocurrenceContext
public Source getSource()
CoocurrenceContext
.
getSource
in interface SourceElement
Source
public void setSource(Source source)
CoocurrenceContext
.
setSource
in interface SourceElement
source
- Source
public ContentView getContentView()
ContentView
definition for this CoocurrenceContext
(CVF).
getContentView
in interface ContentViewElement
ContentView
definitionpublic void setContentView(ContentView cvf)
ContentView
definition for this CoocurrenceContext
(CVF).
setContentView
in interface ContentViewElement
cvf
- the ContentView
definitionpublic ContentView getCvf()
getContentView()
.
getCvf
in interface ContentViewElement
ContentView
definitionpublic void setCvf(ContentView cvf)
setContentView(ContentView)
.
setCvf
in interface ContentViewElement
cvf
- the ContentView
definitionpublic String getKeyFields()
String
key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields
in interface CoocurrenceContext
String
composed from the cot and
versioned source.public int hashCode()
public boolean equals(Object o)
true
if the specified object is
equal to this object. The specified object must be a
CoocurrenceContext
with matching key fields.
o
- an Object
to compare against
true
if Object o is equal
false
otherwisepublic int compareTo(Object o)
Source
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 |