cmu.survey.data
Class DatabaseConstants.Questions

java.lang.Object
  extended by cmu.survey.data.DatabaseConstants.Questions
Enclosing class:
DatabaseConstants

public static final class DatabaseConstants.Questions
extends java.lang.Object


Field Summary
static java.lang.String ABSTRACT
           
static java.lang.String CHECKBOX_LIST_QUESTION
           
static java.lang.String CHECKBOX_QUESTION
           
static java.lang.String DROP_DOWN_QUESTION
           
static java.lang.String HORIZONTAL_RADIO_HEADERS
           
static java.lang.String NOTES_AREA
           
static java.lang.String PAGE_GROUP
           
static java.lang.String PLAIN_TEXT
           
static java.lang.String RADIO_BUTTON_QUESTION
           
static java.lang.String TEXT_AREA
           
static java.lang.String TEXT_QUESTION
           
static java.lang.String TITLE
           
 
Constructor Summary
DatabaseConstants.Questions()
           
 
Method Summary
static java.lang.String[] getAllQuestionTypes()
           
static java.lang.String[][] getAllQuestionTypesAndFriendlyNames()
           
static java.lang.String getQuestionTypeFriendlyName(java.lang.String questionType)
           
static boolean hasChoicesFromDatabase(java.lang.String type)
           
static boolean hasFreeformText(java.lang.String type)
           
static boolean isAValidQuestionType(java.lang.String type)
           
static boolean questionTypeHasVariable(java.lang.String type)
           
static boolean typeSavesToDatabase(java.lang.String type)
          For both question types and auxillaryOption types
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ABSTRACT

public static final java.lang.String ABSTRACT
See Also:
Constant Field Values

PLAIN_TEXT

public static final java.lang.String PLAIN_TEXT
See Also:
Constant Field Values

TITLE

public static final java.lang.String TITLE
See Also:
Constant Field Values

TEXT_QUESTION

public static final java.lang.String TEXT_QUESTION
See Also:
Constant Field Values

CHECKBOX_QUESTION

public static final java.lang.String CHECKBOX_QUESTION
See Also:
Constant Field Values

RADIO_BUTTON_QUESTION

public static final java.lang.String RADIO_BUTTON_QUESTION
See Also:
Constant Field Values

DROP_DOWN_QUESTION

public static final java.lang.String DROP_DOWN_QUESTION
See Also:
Constant Field Values

HORIZONTAL_RADIO_HEADERS

public static final java.lang.String HORIZONTAL_RADIO_HEADERS
See Also:
Constant Field Values

TEXT_AREA

public static final java.lang.String TEXT_AREA
See Also:
Constant Field Values

PAGE_GROUP

public static final java.lang.String PAGE_GROUP
See Also:
Constant Field Values

NOTES_AREA

public static final java.lang.String NOTES_AREA
See Also:
Constant Field Values

CHECKBOX_LIST_QUESTION

public static final java.lang.String CHECKBOX_LIST_QUESTION
See Also:
Constant Field Values
Constructor Detail

DatabaseConstants.Questions

public DatabaseConstants.Questions()
Method Detail

getAllQuestionTypes

public static java.lang.String[] getAllQuestionTypes()

getAllQuestionTypesAndFriendlyNames

public static java.lang.String[][] getAllQuestionTypesAndFriendlyNames()

getQuestionTypeFriendlyName

public static java.lang.String getQuestionTypeFriendlyName(java.lang.String questionType)

hasChoicesFromDatabase

public static boolean hasChoicesFromDatabase(java.lang.String type)

hasFreeformText

public static boolean hasFreeformText(java.lang.String type)

questionTypeHasVariable

public static boolean questionTypeHasVariable(java.lang.String type)
Parameters:
string -
Returns:

typeSavesToDatabase

public static boolean typeSavesToDatabase(java.lang.String type)
For both question types and auxillaryOption types

Parameters:
type -
Returns:

isAValidQuestionType

public static boolean isAValidQuestionType(java.lang.String type)
Parameters:
string -
Returns: