|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.BaseOpenmrsObject org.openmrs.ConceptAnswer
public class ConceptAnswer
This class represents one option for an answer to a question type of Concept
. The link to
the parent question Concept is stored in getConcept()
and the answer this object is
representing is stored in getAnswerConcept()
.
Concept.getAnswers()
,
Serialized FormField Summary | |
---|---|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
ConceptAnswer()
default constructor |
|
ConceptAnswer(Concept answerConcept)
|
|
ConceptAnswer(Concept answerConcept,
Drug d)
|
|
ConceptAnswer(java.lang.Integer conceptAnswerId)
constructor with id |
Method Summary | |
---|---|
int |
compareTo(ConceptAnswer ca)
|
boolean |
equals(java.lang.Object obj)
|
Concept |
getAnswerConcept()
|
Drug |
getAnswerDrug()
|
User |
getChangedBy()
Not currently used. |
Concept |
getConcept()
|
java.lang.Integer |
getConceptAnswerId()
|
User |
getCreator()
|
java.util.Date |
getDateChanged()
Not currently used. |
java.util.Date |
getDateCreated()
|
java.lang.Integer |
getId()
|
java.lang.Double |
getSortWeight()
|
int |
hashCode()
|
void |
setAnswerConcept(Concept answerConcept)
|
void |
setAnswerDrug(Drug answerDrug)
|
void |
setChangedBy(User changedBy)
Not currently used. |
void |
setConcept(Concept concept)
|
void |
setConceptAnswerId(java.lang.Integer conceptAnswerId)
|
void |
setCreator(User creator)
|
void |
setDateChanged(java.util.Date dateChanged)
Not currently used. |
void |
setDateCreated(java.util.Date dateCreated)
|
void |
setId(java.lang.Integer id)
|
void |
setSortWeight(java.lang.Double sortWeight)
|
Methods inherited from class org.openmrs.BaseOpenmrsObject |
---|
getUuid, setUuid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.openmrs.OpenmrsObject |
---|
getUuid, setUuid |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public ConceptAnswer()
public ConceptAnswer(java.lang.Integer conceptAnswerId)
public ConceptAnswer(Concept answerConcept)
public ConceptAnswer(Concept answerConcept, Drug d)
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
public Concept getAnswerConcept()
public void setAnswerConcept(Concept answerConcept)
answerConcept
- The answerConcept to set.public Drug getAnswerDrug()
public void setAnswerDrug(Drug answerDrug)
answerDrug
- The answerDrug to set.public Concept getConcept()
public void setConcept(Concept concept)
concept
- The concept to set.public java.lang.Integer getConceptAnswerId()
public void setConceptAnswerId(java.lang.Integer conceptAnswerId)
conceptAnswerId
- The conceptAnswerId to set.public User getCreator()
getCreator
in interface Auditable
public void setCreator(User creator)
setCreator
in interface Auditable
creator
- The creator to set.public java.util.Date getDateCreated()
getDateCreated
in interface Auditable
public void setDateCreated(java.util.Date dateCreated)
setDateCreated
in interface Auditable
dateCreated
- The dateCreated to set.public java.lang.Integer getId()
getId
in interface OpenmrsObject
OpenmrsObject.getId()
public void setId(java.lang.Integer id)
setId
in interface OpenmrsObject
id
- - The unique Identifier for the objectOpenmrsObject.setId(java.lang.Integer)
public User getChangedBy()
getChangedBy
in interface Auditable
Auditable.getChangedBy()
public java.util.Date getDateChanged()
getDateChanged
in interface Auditable
Auditable.getDateChanged()
public void setChangedBy(User changedBy)
setChangedBy
in interface Auditable
changedBy
- - the user who last changed the objectAuditable.setChangedBy(org.openmrs.User)
public void setDateChanged(java.util.Date dateChanged)
setDateChanged
in interface Auditable
dateChanged
- - the date the object was last changedAuditable.setDateChanged(java.util.Date)
public java.lang.Double getSortWeight()
public void setSortWeight(java.lang.Double sortWeight)
sortWeight
- The sortWeight to set.public int compareTo(ConceptAnswer ca)
compareTo
in interface java.lang.Comparable<ConceptAnswer>
Comparable.compareTo(java.lang.Object)
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |