|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nih.nlm.umls.meta.impl.CoocurrenceImpl
public class CoocurrenceImpl
Default implementation of the Coocurrence
interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gov.nih.nlm.umls.meta.SourceElement |
|---|
SourceElement.BySourceComparator, SourceElement.BySourceRestrictor |
| Field Summary | |
|---|---|
protected String |
key_fields
|
protected boolean |
key_fields_flag
|
| Constructor Summary | |
|---|---|
CoocurrenceImpl()
Instantiates an empty Coocurrence. |
|
CoocurrenceImpl(Coocurrence co)
Instantiates a Coocurrence from the specified Coocurrence. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object o)
Compares this Coocurrence to another one. |
boolean |
equals(Object o)
Returns true if the specified object is
equal to this object. |
String |
getCoa()
Shorthand for getCoocurrenceAttribute(). |
int |
getCof()
Shorthand for getCoocurrenceFrequency(). |
Concept |
getConcept()
Returns the Concept that holds this Coocurrence. |
ContentView |
getContentView()
Returns tbe ContentView definition for this Coocurrence (CVF). |
String |
getCoocurrenceAttribute()
Returns the coocurrence attribute value (COA). |
int |
getCoocurrenceFrequency()
Returns the coocurrence frequency (COF). |
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. |
Concept |
getRelatedConcept()
Returns the related concept involved. |
Source |
getSource()
Returns the source for this Coocurrence. |
int |
hashCode()
Return a hash code based on key fields. |
void |
setCoa(String coa)
Shorthand for setCoocurrenceAttribute(String). |
void |
setCof(int cof)
Shorthand for setCoocurrenceFrequency(int). |
void |
setConcept(Concept concept)
Sets the Concept that holds this Coocurrence. |
void |
setContentView(ContentView cvf)
Sets tbe ContentView definition for this Coocurrence (CVF). |
void |
setCoocurrenceAttribute(String coa)
Sets the coocurrence attribute value (COA). |
void |
setCoocurrenceFrequency(int cof)
Sets the coocurrence frequency (COF). |
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 coa)
Replaces the QualifierFrequency values with those in the
specified List |
void |
setQualifiers(QualifierFrequency[] coa)
Replaces the QualifierFrequency values with those in the
specified array. |
void |
setRelatedConcept(Concept related_concept)
Sets the related concept involved. |
void |
setSource(Source source)
Sets the source for this Coocurrence. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean key_fields_flag
protected String key_fields
| Constructor Detail |
|---|
public CoocurrenceImpl()
Coocurrence.
public CoocurrenceImpl(Coocurrence co)
Coocurrence from the specified Coocurrence.
co - Coocurrence to be copied| Method Detail |
|---|
public Concept getRelatedConcept()
getRelatedConcept in interface RelatedConceptElementpublic void setRelatedConcept(Concept related_concept)
setRelatedConcept in interface RelatedConceptElementrelated_concept - the related concept involvedpublic CoocurrenceType getCoocurrenceType()
CoocurrenceType (COT).
getCoocurrenceType in interface CoocurrenceCoocurrenceTypepublic CoocurrenceType getCot()
getCoocurrenceType().
getCot in interface CoocurrenceCoocurrenceTypepublic void setCoocurrenceType(CoocurrenceType cot)
CoocurrenceType (COT).
setCoocurrenceType in interface Coocurrencecot - the CoocurrenceTypepublic void setCot(CoocurrenceType cot)
setCoocurrenceType(CoocurrenceType).
setCot in interface Coocurrencecot - the CoocurrenceTypepublic int getCoocurrenceFrequency()
getCoocurrenceFrequency in interface Coocurrencepublic int getCof()
getCoocurrenceFrequency().
getCof in interface Coocurrencepublic void setCoocurrenceFrequency(int cof)
setCoocurrenceFrequency in interface Coocurrencecof - the coocurrence frequencypublic void setCof(int cof)
setCoocurrenceFrequency(int).
setCof in interface Coocurrencecof - the coocurrence frequencypublic String getCoa()
getCoocurrenceAttribute().
getCoa in interface Coocurrencepublic String getCoocurrenceAttribute()
getCoocurrenceAttribute in interface Coocurrencepublic void setCoocurrenceAttribute(String coa)
setCoocurrenceAttribute in interface Coocurrencecoa - the coocuurence attribute valuepublic void setCoa(String coa)
setCoocurrenceAttribute(String).
setCoa in interface Coocurrencecoa - the coocuurence attribute valuepublic QualifierFrequency[] getQualifiers()
QualifierFrequency list.
getQualifiers in interface CoocurrenceQualifierFrequencyspublic List getQualifierAsList()
QualifierFrequency values as a List.
getQualifierAsList in interface CoocurrenceQualifierFrequency values as a Listpublic void setQualifiers(QualifierFrequency[] coa)
QualifierFrequency values with those in the
specified array.
setQualifiers in interface Coocurrencecoa - an array of QualifierFrequency valuespublic void setQualifiers(List coa)
QualifierFrequency values with those in the
specified List
setQualifiers in interface Coocurrencecoa - a List of QualifierFrequency valuespublic Concept getConcept()
Concept that holds this Coocurrence.
getConcept in interface ConceptElementConcept that holds this Coocurrencepublic void setConcept(Concept concept)
Concept that holds this Coocurrence.
setConcept in interface ConceptElementconcept - the Concept that holds this Coocurrencepublic Source getSource()
Coocurrence.
getSource in interface SourceElementSourcepublic void setSource(Source source)
Coocurrence.
setSource in interface SourceElementsource - Sourcepublic ContentView getContentView()
ContentView definition for this Coocurrence (CVF).
getContentView in interface ContentViewElementContentView definitionpublic void setContentView(ContentView cvf)
ContentView definition for this Coocurrence (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 CoocurrenceString composed from the cui1, aui1, aui2,
versioned source, cui2, cof and cot.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
Coocurrence 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)
Coocurrence 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 | ||||||||