|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object spellcast.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 IQuestion
public final java.lang.Object getAnswer()
getAnswer
in interface IQuestion
public final void setAnswer(java.lang.Object theAnswer)
setAnswer
in interface IQuestion
theAnswer
- value to assign to the answer.public final java.util.List<java.lang.Object> getAnswers()
getAnswers
in interface IQuestion
public 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 |