public class Question
extends java.lang.Object
implements java.io.Serializable
Answer
s on the screen.Constructor and Description |
---|
Question()
Empty Constructor of Question.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnswer(Answer answer)
Add an individual answers to arraylist.
|
java.util.List |
getAnswers()
Returns a collections of answers
|
java.lang.String |
getText()
Returns the question which is displayed to the user if the hook is interactive hook.
|
void |
setAnswers(java.util.List answers)
Set a collections of answers to directly to arraylist answers.
|
void |
setText(java.lang.String text)
Set the question which is displayed to the user if the hook is interactive hook.
|
public java.lang.String getText()
public void setText(java.lang.String text)
text
- - the question which is displayed to the user if the hook is interactive hook.public void addAnswer(Answer answer)
answer
- - the responses of the user in reply to questions asked during the execution of the hookpublic java.util.List getAnswers()
public void setAnswers(java.util.List answers)
answers
- - A list of Answer which is the responses of the user in reply to questions asked during the execution
of the hook.