|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.jsurveyor.Answer
net.sourceforge.jsurveyor.AnswerMultipleChoice
Class to model multiplechoice answers. Saves the choice a user selects.
| Constructor Summary | |
AnswerMultipleChoice()
Constructor for AnswerMultipleChoice |
|
AnswerMultipleChoice(int questionID)
Constructor for AnswerMultipleChoice |
|
AnswerMultipleChoice(int questionID,
int choice)
Constructor for AnswerMultipleChoice |
|
AnswerMultipleChoice(int answerID,
int questionID,
int choice)
Constructor for AnswerMultipleChoice, use through DataAccess. |
|
| Method Summary | |
int |
getAnswerID()
Returns the id of the answer |
int |
getChoice()
Returns the index number of the answered choice. |
int |
getQuestionID()
Returns the questionID that the answer belongs to. |
void |
setAnswerID(int answerID)
Sets the id of the answer |
void |
setChoice(int choice)
Sets the index number for the selected choice. |
void |
setQuestionID(int questionID)
Sets the questionID that the object is an answer for. |
java.lang.String |
toString()
Returns the answerID prefixed with a M to represent it is a multiplechoice. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AnswerMultipleChoice()
public AnswerMultipleChoice(int questionID)
questionID - int
public AnswerMultipleChoice(int questionID,
int choice)
questionID - intchoice - int
public AnswerMultipleChoice(int answerID,
int questionID,
int choice)
answerID - intquestionID - intchoice - int| Method Detail |
public int getChoice()
public void setChoice(int choice)
choice - intpublic java.lang.String toString()
public int getQuestionID()
public void setQuestionID(int questionID)
questionID - intpublic int getAnswerID()
public void setAnswerID(int answerID)
answerID - int
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||