|
||||||||||
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
Default implementation of the Coocurrence
interface.
Nested Class Summary |
Nested classes inherited from class 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 copiedMethod Detail |
public Concept getRelatedConcept()
getRelatedConcept
in interface RelatedConceptElement
public void setRelatedConcept(Concept related_concept)
setRelatedConcept
in interface RelatedConceptElement
related_concept
- the related concept involvedpublic CoocurrenceType getCoocurrenceType()
CoocurrenceType
(COT).
getCoocurrenceType
in interface Coocurrence
CoocurrenceType
public CoocurrenceType getCot()
getCoocurrenceType()
.
getCot
in interface Coocurrence
CoocurrenceType
public void setCoocurrenceType(CoocurrenceType cot)
CoocurrenceType
(COT).
setCoocurrenceType
in interface Coocurrence
cot
- the CoocurrenceType
public void setCot(CoocurrenceType cot)
setCoocurrenceType(CoocurrenceType)
.
setCot
in interface Coocurrence
cot
- the CoocurrenceType
public int getCoocurrenceFrequency()
getCoocurrenceFrequency
in interface Coocurrence
public int getCof()
getCoocurrenceFrequency()
.
getCof
in interface Coocurrence
public void setCoocurrenceFrequency(int cof)
setCoocurrenceFrequency
in interface Coocurrence
cof
- the coocurrence frequencypublic void setCof(int cof)
setCoocurrenceFrequency(int)
.
setCof
in interface Coocurrence
cof
- the coocurrence frequencypublic String getCoa()
getCoocurrenceAttribute()
.
getCoa
in interface Coocurrence
public String getCoocurrenceAttribute()
getCoocurrenceAttribute
in interface Coocurrence
public void setCoocurrenceAttribute(String coa)
setCoocurrenceAttribute
in interface Coocurrence
coa
- the coocuurence attribute valuepublic void setCoa(String coa)
setCoocurrenceAttribute(String)
.
setCoa
in interface Coocurrence
coa
- the coocuurence attribute valuepublic QualifierFrequency[] getQualifiers()
QualifierFrequency
list.
getQualifiers
in interface Coocurrence
QualifierFrequency
spublic List getQualifierAsList()
QualifierFrequency
values as a List
.
getQualifierAsList
in interface Coocurrence
QualifierFrequency
values as a List
public void setQualifiers(QualifierFrequency[] coa)
QualifierFrequency
values with those in the
specified array.
setQualifiers
in interface Coocurrence
coa
- an array of QualifierFrequency
valuespublic void setQualifiers(List coa)
QualifierFrequency
values with those in the
specified List
setQualifiers
in interface Coocurrence
coa
- a List
of QualifierFrequency
valuespublic Concept getConcept()
Concept
that holds this Coocurrence
.
getConcept
in interface ConceptElement
Concept
that holds this Coocurrence
public void setConcept(Concept concept)
Concept
that holds this Coocurrence
.
setConcept
in interface ConceptElement
concept
- the Concept
that holds this Coocurrence
public Source getSource()
Coocurrence
.
getSource
in interface SourceElement
Source
public void setSource(Source source)
Coocurrence
.
setSource
in interface SourceElement
source
- Source
public ContentView getContentView()
ContentView
definition for this Coocurrence
(CVF).
getContentView
in interface ContentViewElement
ContentView
definitionpublic void setContentView(ContentView cvf)
ContentView
definition for this Coocurrence
(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 Coocurrence
String
composed from the cui1, aui1, aui2,
versioned source, cui2, cof and cot.public int hashCode()
public 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.
o
- 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 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 |