org.openfjord.business.domain
Interface NonCardinalQuestion

All Superinterfaces:
Question, ScaledQuestion, SurveyElement, TextElement
All Known Subinterfaces:
NominalQuestion, OrdinalQuestion
All Known Implementing Classes:
NominalQuestionVO, NonCardinalQuestionVO, OrdinalQuestionVO

public interface NonCardinalQuestion
extends ScaledQuestion

The interface for a non-cardinal 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
 ChoiceElement addChoice(ChoiceElement o)
          Creates an empty choice-element and adds it to the question.
 java.util.Collection getChoices()
          Returns the choice-elements of the question
 void removeChoice(ChoiceElement o)
          Removes a choice-element from the question
 
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
 

Method Detail

addChoice

public ChoiceElement addChoice(ChoiceElement o)
Creates an empty choice-element and adds it to the question.

Returns:
the new choice-element

removeChoice

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

Parameters:
o - the choice-element to be removed

getChoices

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

Returns:
an iterator with the choice-elements


openFJORD Copyright © 2003 University of Muenster.