cmu.survey.objects
Class QuestionObject
java.lang.Object
cmu.survey.objects.QuestionObject
- Direct Known Subclasses:
- CheckboxListQuestionObject, DatabaseFieldQuestionObject, DropDownQuestionObject, JustTextQuestionObject, NewColumnQuestionObject, QuestionObjectWithOtherAnswer, TextAreaQuestionObject, TextQuestionObject
public class QuestionObject
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuestionObject
public QuestionObject(java.lang.String type)
getAnswer
public Answer getAnswer()
- Returns:
getQuestionType
public java.lang.String getQuestionType()
- Returns:
getTimeResponses
public boolean getTimeResponses()
- Returns:
setAnswer
public void setAnswer(Answer answer)
- Parameters:
answer
-
setQuestionType
protected void setQuestionType(java.lang.String string)
- This should only be used by the specific subclasses which is the right one.
- Parameters:
string
-
setTimeResponses
public void setTimeResponses(boolean b)
- Parameters:
b
-