org.gusdb.wdk.model.jspwrap
Class QuestionBean

java.lang.Object
  extended by org.gusdb.wdk.model.jspwrap.QuestionBean
All Implemented Interfaces:
java.io.Serializable

public class QuestionBean
extends java.lang.Object
implements java.io.Serializable

A wrapper on a Question that provides simplified access for consumption by a view

See Also:
Serialized Form

Constructor Summary
QuestionBean(Question question)
           
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getDisplayName()
           
 java.lang.String getFullName()
           
 java.lang.String getHelp()
           
 java.lang.String getName()
           
 ParamBean[] getParams()
           
 RecordClassBean getRecordClass()
           
 AnswerBean makeAnswer(java.util.Map paramValues, int start, int end)
          Called by the controller
 BooleanQuestionLeafBean makeBooleanQuestionLeaf()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionBean

public QuestionBean(Question question)
Method Detail

getRecordClass

public RecordClassBean getRecordClass()

getParams

public ParamBean[] getParams()

getName

public java.lang.String getName()

getFullName

public java.lang.String getFullName()

getDisplayName

public java.lang.String getDisplayName()

getHelp

public java.lang.String getHelp()

makeBooleanQuestionLeaf

public BooleanQuestionLeafBean makeBooleanQuestionLeaf()

makeAnswer

public AnswerBean makeAnswer(java.util.Map paramValues,
                             int start,
                             int end)
                      throws WdkModelException,
                             WdkUserException
Called by the controller

Parameters:
paramValues - Map of paramName-->value
start - Index of the first record to include in the answer
end - Index of the last record to include in the answer
Throws:
WdkModelException
WdkUserException

getDescription

public java.lang.String getDescription()