org.openfjord.business.entities.valueobjects
Class QuestionVO

java.lang.Object
  |
  +--org.openfjord.business.entities.valueobjects.SurveyElementVO
        |
        +--org.openfjord.business.entities.valueobjects.TextElementVO
              |
              +--org.openfjord.business.entities.valueobjects.QuestionVO
All Implemented Interfaces:
Question, java.io.Serializable, SurveyElement, TextElement
Direct Known Subclasses:
ScaledQuestionVO

public class QuestionVO
extends TextElementVO
implements Question, java.io.Serializable

Title: openFJORD

Description: open flexible online research designer

Version:
1.0
Author:
Ingo Düppe
See Also:
Serialized Form

Constructor Summary
QuestionVO()
           
QuestionVO(java.lang.String id)
           
 
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 class org.openfjord.business.entities.valueobjects.TextElementVO
getText, setText
 
Methods inherited from class org.openfjord.business.entities.valueobjects.SurveyElementVO
getId, getName, getParent, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 

Constructor Detail

QuestionVO

public QuestionVO()

QuestionVO

public QuestionVO(java.lang.String id)
Method Detail

getAnswer

public Answer getAnswer(Participant participant)
Description copied from interface: Question
Gets the answer given to the question by the specified participant

Specified by:
getAnswer in interface Question
Parameters:
participant - the participant
Returns:
the answer

getAnswers

public java.util.Iterator getAnswers()
Description copied from interface: Question
Gets all answers given to the question

Specified by:
getAnswers in interface Question
Returns:
an iterator with the answers


openFJORD Copyright © 2003 University of Muenster.