package performa.orm;

import performa.orm.types.QuestionType;


public class Question extends BaseQuestion
{
    private static final long serialVersionUID = 0L;
    
    // This constructor should not be called
    public Question ()
    {
        // Do not add any code to this, always put it in initialiseNewObject
    }
    
    @Override
    public String getObjectIDSpace()
    {
        return "Question";
    }
    
    public QuestionType getQuestionType()
    {
        if(isTrue(getIsExpressQuestion()))
        {
            return QuestionType.SCALAR; //Express doesnt support Ipsative
        }
        else if(getSection() != null)
        {
            return getSection().getQuestionType();
        }
        return null;
    }
}