org.openfjord.business.entities.valueobjects
Class NonCardinalQuestionVO

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

public class NonCardinalQuestionVO
extends ScaledQuestionVO
implements NonCardinalQuestion, java.io.Serializable

Title: openFJORD

Description: open Flexible Java Online Research Designer

Copyright: Copyright (c) by Michael Lange 2003

Company: University of Muenster

Version:
1.0
Author:
Michael Lange
See Also:
NonCardinalQuestion, Serialized Form

Constructor Summary
NonCardinalQuestionVO()
           
NonCardinalQuestionVO(java.lang.String id)
           
 
Method Summary
 ChoiceElement addChoice(ChoiceElement o)
          adds an ChoiceElement to this collection
 java.util.Collection getChoices()
          Returns the choice-elements of the question
 void removeChoice(ChoiceElement o)
          Removes a choice-element from the question
 void setChoiceElements(java.util.Collection o)
           
 
Methods inherited from class org.openfjord.business.entities.valueobjects.QuestionVO
getAnswer, getAnswers
 
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.Question
getAnswer, getAnswers
 
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

NonCardinalQuestionVO

public NonCardinalQuestionVO()

NonCardinalQuestionVO

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

setChoiceElements

public void setChoiceElements(java.util.Collection o)

addChoice

public ChoiceElement addChoice(ChoiceElement o)
adds an ChoiceElement to this collection

Specified by:
addChoice in interface NonCardinalQuestion
Returns:
the new added choice element

removeChoice

public void removeChoice(ChoiceElement o)
Removes a choice-element from the question

Specified by:
removeChoice in interface NonCardinalQuestion
Parameters:
o - the choice-element to be removed

getChoices

public java.util.Collection getChoices()
Returns the choice-elements of the question

Specified by:
getChoices in interface NonCardinalQuestion
Returns:
an iterator with the choice-elements


openFJORD Copyright © 2003 University of Muenster.