/*
 *	Modulname:	ContentType
 *	Autor:		Eyer Leander
 *	Datum:		08.05.2006
 *
 *	(c) Copyright 2005
 */
package survey.model;



/**
 * This is the abstract superclass of all question types
 */
public abstract class QuestionType {

	/** Question hosting this question type */
	private Question question = null;

	/**
	 * Constructor
	 */
	public QuestionType(Question question) {
		this.question = question;
	}

	/** Access the question object hosting this */
	public Question getQuestion() {
		return question;
	}

	/** Return true if an answer has been set for this question */
	public abstract boolean hasBeenAnswered();

	/** Set the answer of the question */
	public abstract void setAnswer(Object value);
    

	/** Read the answer of the question */
	public abstract Object getAnswer();

}

