|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidaddemo.survey.MultChoiceQuestionBean
public class MultChoiceQuestionBean
class MultChoiceQuestionBean This bean represents a single multiple choice questions. It has fields for the question prompt, a list of choices, and the correct answer.
| Constructor Summary | |
|---|---|
MultChoiceQuestionBean()
Class constructor (no arguments). |
|
MultChoiceQuestionBean(String prompt,
List<String> choices,
int correctIndex)
Class constructor. |
|
| Method Summary | |
|---|---|
List<String> |
getAnswerStrings()
returns the list of answer strings. |
String |
getCorrectAnswerMessage()
returns a message describing the correct answer choices. |
int |
getCorrectIndex()
returns the index of the correct answer |
String |
getPrompt()
returns the question prompt. |
String |
toString()
typical toString method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultChoiceQuestionBean()
public MultChoiceQuestionBean(String prompt,
List<String> choices,
int correctIndex)
| Method Detail |
|---|
public String getPrompt()
getPrompt in interface QuestionBeanpublic List<String> getAnswerStrings()
public String toString()
toString in class Objectpublic String getCorrectAnswerMessage()
getCorrectAnswerMessage in interface QuestionBeanpublic int getCorrectIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||