|
|||||||||
| 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
public class CoocurrenceContextImpl
Default implementation of the CoocurrenceContext
interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface 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 QualifierFrequencys. |
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 copied| Method Detail |
|---|
public CoocurrenceGroup getCoocurrenceGroup()
CoocurrenceGroup that holds this CoocurrenceContext.
getCoocurrenceGroup in interface CoocurrenceContextCoocurrenceGroup that holds this CoocurrenceContextpublic void setCoocurrenceGroup(CoocurrenceGroup group)
CoocurrenceGroup that holds this CoocurrenceContext.
setCoocurrenceGroup in interface CoocurrenceContextgroup - the CoocurrenceGroup that holds this CoocurrenceContextpublic CoocurrenceType getCoocurrenceType()
CoocurrenceType (COT).
getCoocurrenceType in interface CoocurrenceContextCoocurrenceTypepublic CoocurrenceType getCot()
getCoocurrenceType().
getCot in interface CoocurrenceContextCoocurrenceTypepublic void setCoocurrenceType(CoocurrenceType cot)
CoocurrenceType (COT).
setCoocurrenceType in interface CoocurrenceContextcot - the CoocurrenceTypepublic void setCot(CoocurrenceType cot)
setCoocurrenceType(CoocurrenceType).
setCot in interface CoocurrenceContextcot - the CoocurrenceTypepublic int getCoocurrenceContextFrequency()
getCoocurrenceContextFrequency in interface CoocurrenceContextpublic int getCof()
getCoocurrenceContextFrequency().
getCof in interface CoocurrenceContextpublic void setCoocurrenceContextFrequency(int cof)
setCoocurrenceContextFrequency in interface CoocurrenceContextcof - the CoocurrenceContext frequencypublic void setCof(int cof)
setCoocurrenceContextFrequency(int).
setCof in interface CoocurrenceContextcof - the CoocurrenceContext frequencypublic QualifierFrequency[] getQualifiers()
QualifierFrequency list.
getQualifiers in interface CoocurrenceContextQualifierFrequencyspublic List getQualifierAsList()
QualifierFrequency values as a List.
getQualifierAsList in interface CoocurrenceContextQualifierFrequency values as a Listpublic void setQualifiers(QualifierFrequency[] quals)
QualifierFrequency values with those in the
specified array.
setQualifiers in interface CoocurrenceContextquals - an array of QualifierFrequency valuespublic void setQualifiers(List quals)
QualifierFrequency values with those in the
specified List
setQualifiers in interface CoocurrenceContextquals - a List of QualifierFrequency valuespublic void addQualifier(QualifierFrequency qual)
QualifierFrequency.
addQualifier in interface CoocurrenceContextqual - the QualifierFrequency to be addedpublic void removeQualifier(QualifierFrequency qual)
QualifierFrequency.
removeQualifier in interface CoocurrenceContextqual - the QualifierFrequency to be removedpublic void clearQualifiers()
QualifierFrequencys.
clearQualifiers in interface CoocurrenceContextpublic Source getSource()
CoocurrenceContext.
getSource in interface SourceElementSourcepublic void setSource(Source source)
CoocurrenceContext.
setSource in interface SourceElementsource - Sourcepublic ContentView getContentView()
ContentView definition for this CoocurrenceContext (CVF).
getContentView in interface ContentViewElementContentView definitionpublic void setContentView(ContentView cvf)
ContentView definition for this CoocurrenceContext (CVF).
setContentView in interface ContentViewElementcvf - the ContentView definitionpublic ContentView getCvf()
getContentView().
getCvf in interface ContentViewElementContentView definitionpublic void setCvf(ContentView cvf)
setContentView(ContentView).
setCvf in interface ContentViewElementcvf - the ContentView definitionpublic String getKeyFields()
String key which can be used
by equals, compareTo, and hashCode methods.
getKeyFields in interface CoocurrenceContextString composed from the cot and
versioned source.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
CoocurrenceContext 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)
Source 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 | ||||||||