org.apache.myfaces.trinidaddemo.survey
Class TextQuestionBean

java.lang.Object
  extended by org.apache.myfaces.trinidaddemo.survey.TextQuestionBean
All Implemented Interfaces:
Serializable, QuestionBean

public class TextQuestionBean
extends Object
implements QuestionBean, Serializable

class TextQuestionBean This bean represents a single question with a text field as its answer form. It has fields for the question prompt and the correct answer.

See Also:
Serialized Form

Constructor Summary
TextQuestionBean()
          Class constructor (no arguments).
TextQuestionBean(String prompt, String correctAnswer)
          Class constructor.
 
Method Summary
 String getCorrectAnswer()
           
 String getCorrectAnswerMessage()
          returns a message describing the correct answer choices.
 String getPrompt()
          returns the question prompt.
 void setPrompt(String prompt)
          JDev generated accessors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextQuestionBean

public TextQuestionBean()
Class constructor (no arguments).


TextQuestionBean

public TextQuestionBean(String prompt,
                        String correctAnswer)
Class constructor.

Method Detail

setPrompt

public void setPrompt(String prompt)
JDev generated accessors


getPrompt

public String getPrompt()
Description copied from interface: QuestionBean
returns the question prompt.

Specified by:
getPrompt in interface QuestionBean
Returns:
the question prompt

getCorrectAnswer

public String getCorrectAnswer()

getCorrectAnswerMessage

public String getCorrectAnswerMessage()
Description copied from interface: QuestionBean
returns a message describing the correct answer choices.

Specified by:
getCorrectAnswerMessage in interface QuestionBean
Returns:
a message describing the correct answer choices


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.