org.openfjord.business.domain
Interface Question

All Superinterfaces:
SurveyElement, TextElement
All Known Subinterfaces:
CardinalQuestion, NominalQuestion, NonCardinalQuestion, OrdinalQuestion, ScaledQuestion
All Known Implementing Classes:
CardinalQuestionVO, NominalQuestionVO, NonCardinalQuestionVO, OrdinalQuestionVO, QuestionVO, ScaledQuestionVO

public interface Question
extends TextElement

The interface for a question item

Title: openFJORD

Description: open Flexible Java Online Research Designer

Copyright: Copyright (c) 2003

Company: University of Muenster

Version:
1.0
Author:
Markus Pütz

Method Summary
 Answer getAnswer(Participant participant)
          Gets the answer given to the question by the specified participant
 java.util.Iterator getAnswers()
          Gets all answers given to the question
 
Methods inherited from interface org.openfjord.business.domain.TextElement
getText, setText
 
Methods inherited from interface org.openfjord.business.domain.SurveyElement
getId, getName, getParent, setName, setParent
 

Method Detail

getAnswer

public Answer getAnswer(Participant participant)
Gets the answer given to the question by the specified participant

Parameters:
participant - the participant
Returns:
the answer

getAnswers

public java.util.Iterator getAnswers()
Gets all answers given to the question

Returns:
an iterator with the answers


openFJORD Copyright © 2003 University of Muenster.