cmu.survey.objects.renderers.text.questiontextrenderers
Class QuestionRendererStub

java.lang.Object
  extended by cmu.survey.objects.renderers.text.questiontextrenderers.QuestionRendererStub
Direct Known Subclasses:
AbstractQuestionRenderer, CheckboxRenderer, RadioButtonRenderer, ScaleAndRadioHeaderRenderer, TextAreaRenderer, TextQuestionRenderer, TitleRenderer

public class QuestionRendererStub
extends java.lang.Object


Field Summary
protected  boolean abbreviateAnswerChoices
           
protected  boolean compressNumberScales
           
protected  boolean convertScalesToRadioButtons
           
protected  boolean hideNumberScales
           
protected  boolean hideRadioHeaders
           
protected  QuestionDataBitSet question
           
protected  java.util.Vector selectedAnswerChoicesToAbbreviate
           
protected  boolean showIndexNotBullets
           
protected  boolean showVariableNames
           
protected  boolean showVariableTypes
           
 
Constructor Summary
QuestionRendererStub()
           
 
Method Summary
 void initialize(java.util.Vector selectedAnswerChoicesToAbbreviate, boolean showVariableNames, boolean showVariableTypes, boolean showIndexNotBullets, boolean abbreviateAnswerChoices, boolean convertToRadioButtons, boolean hideRadioHeaders, boolean hideNumberScales, boolean compressNumberScales)
           
 boolean isInitialized()
           
 java.lang.String renderAnswerNameAndType()
           
 java.lang.String renderHelpText()
           
 java.lang.String renderQuestion(QuestionDataBitSet question)
           
 java.lang.String renderQuestionEndText()
           
 java.lang.String renderQuestionStartText()
           
 java.lang.String renderQuestionText()
           
 java.lang.String renderVariable(VariableDataBitSet variable)
           
static java.lang.String replaceHTML(java.lang.String text)
           
static java.lang.String replaceHTML(java.lang.String text, boolean inSingleRow)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

question

protected QuestionDataBitSet question

selectedAnswerChoicesToAbbreviate

protected java.util.Vector selectedAnswerChoicesToAbbreviate

showVariableNames

protected boolean showVariableNames

showVariableTypes

protected boolean showVariableTypes

showIndexNotBullets

protected boolean showIndexNotBullets

abbreviateAnswerChoices

protected boolean abbreviateAnswerChoices

convertScalesToRadioButtons

protected boolean convertScalesToRadioButtons

hideRadioHeaders

protected boolean hideRadioHeaders

hideNumberScales

protected boolean hideNumberScales

compressNumberScales

protected boolean compressNumberScales
Constructor Detail

QuestionRendererStub

public QuestionRendererStub()
Method Detail

initialize

public void initialize(java.util.Vector selectedAnswerChoicesToAbbreviate,
                       boolean showVariableNames,
                       boolean showVariableTypes,
                       boolean showIndexNotBullets,
                       boolean abbreviateAnswerChoices,
                       boolean convertToRadioButtons,
                       boolean hideRadioHeaders,
                       boolean hideNumberScales,
                       boolean compressNumberScales)

renderQuestion

public java.lang.String renderQuestion(QuestionDataBitSet question)

replaceHTML

public static java.lang.String replaceHTML(java.lang.String text,
                                           boolean inSingleRow)
Parameters:
text -
inSingleRow - assumed to be in a single row in the output -- removes ALL carriage returns.
Returns:

replaceHTML

public static java.lang.String replaceHTML(java.lang.String text)

renderQuestionStartText

public java.lang.String renderQuestionStartText()

renderQuestionEndText

public java.lang.String renderQuestionEndText()

renderQuestionText

public java.lang.String renderQuestionText()

renderVariable

public java.lang.String renderVariable(VariableDataBitSet variable)

renderAnswerNameAndType

public java.lang.String renderAnswerNameAndType()

renderHelpText

public java.lang.String renderHelpText()

isInitialized

public boolean isInitialized()