cmu.survey.data
Class DatabaseConstants.Questions
java.lang.Object
cmu.survey.data.DatabaseConstants.Questions
- Enclosing class:
- DatabaseConstants
public static final class DatabaseConstants.Questions
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
DatabaseConstants.Questions
public DatabaseConstants.Questions()
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: