|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectspellcast.questions.Question
public abstract class Question
Default Implementation of IQuestion.
| Constructor Summary | |
|---|---|
protected |
Question(java.lang.String theQuestion,
java.util.List<? extends java.lang.Object> theAnswers)
|
| Method Summary | |
|---|---|
java.lang.Object |
getAnswer()
Get the value of the answer. |
java.util.List<java.lang.Object> |
getAnswers()
Get the all the answers. |
java.lang.String |
getQuestion()
Get the value of the question. |
void |
setAnswer(java.lang.Object theAnswer)
Set the value of the answer. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.commons.chain.Command |
|---|
execute |
| Constructor Detail |
|---|
protected Question(java.lang.String theQuestion,
java.util.List<? extends java.lang.Object> theAnswers)
| Method Detail |
|---|
public final java.lang.String getQuestion()
getQuestion in interface IQuestionpublic final java.lang.Object getAnswer()
getAnswer in interface IQuestionpublic final void setAnswer(java.lang.Object theAnswer)
setAnswer in interface IQuestiontheAnswer - value to assign to the answer.public final java.util.List<java.lang.Object> getAnswers()
getAnswers in interface IQuestionpublic final java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||