cmu.survey.objects
Class QuestionObject

java.lang.Object
  extended by cmu.survey.objects.QuestionObject
Direct Known Subclasses:
CheckboxListQuestionObject, DatabaseFieldQuestionObject, DropDownQuestionObject, JustTextQuestionObject, NewColumnQuestionObject, QuestionObjectWithOtherAnswer, TextAreaQuestionObject, TextQuestionObject

public class QuestionObject
extends java.lang.Object


Constructor Summary
QuestionObject(java.lang.String type)
           
 
Method Summary
 Answer getAnswer()
           
 java.lang.String getQuestionType()
           
 boolean getTimeResponses()
           
 void setAnswer(Answer answer)
           
protected  void setQuestionType(java.lang.String string)
          This should only be used by the specific subclasses which is the right one.
 void setTimeResponses(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionObject

public QuestionObject(java.lang.String type)
Method Detail

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 -