cmu.survey.data
Class DatabaseConstants.Variables
java.lang.Object
cmu.survey.data.DatabaseConstants.Variables
- Enclosing class:
- DatabaseConstants
public static final class DatabaseConstants.Variables
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUMBER
public static final java.lang.String NUMBER
- See Also:
- Constant Field Values
NUMBER_KEY
public static final java.lang.String NUMBER_KEY
- See Also:
- Constant Field Values
STRING
public static final java.lang.String STRING
- See Also:
- Constant Field Values
STRING_KEY
public static final java.lang.String STRING_KEY
- See Also:
- Constant Field Values
VARIABLE_TYPES_WITHOUT_KEYS
public static final java.lang.String[] VARIABLE_TYPES_WITHOUT_KEYS
ALL_VARIABLE_TYPES
public static final java.lang.String[] ALL_VARIABLE_TYPES
- The types of variables/answers:
ALL_VARIABLE_TYPES_IS_NUMERIC
public static final boolean[] ALL_VARIABLE_TYPES_IS_NUMERIC
ALL_VARIABLE_TYPES_IS_STRING
public static final boolean[] ALL_VARIABLE_TYPES_IS_STRING
ALL_VARIABLE_TYPES_IS_KEY
public static final boolean[] ALL_VARIABLE_TYPES_IS_KEY
DatabaseConstants.Variables
public DatabaseConstants.Variables()
isVariableKey
public static boolean isVariableKey(java.lang.String type)
isVariableNumeric
public static boolean isVariableNumeric(java.lang.String type)
isVariableString
public static boolean isVariableString(java.lang.String type)
getVariableClass
public static java.lang.Class getVariableClass(java.lang.String type)
getVariableTypesForQuestion
public static java.lang.String[] getVariableTypesForQuestion(java.lang.String questionType)
- Do not modify the array that is returned!
This also returns the types for auxillary options, not just questions.
- Parameters:
questionType
-
- Returns:
getVariableTypesForQuestionWithoutKeys
public static java.lang.String[] getVariableTypesForQuestionWithoutKeys(java.lang.String questionType)
getVariableTypesForQuestionWithoutKeys
public static java.lang.String[] getVariableTypesForQuestionWithoutKeys(java.lang.String questionType,
java.lang.String choicesType)
getVariableTypes
public static java.lang.String[] getVariableTypes()
getVariableTypesWithoutKeys
public static java.lang.String[] getVariableTypesWithoutKeys()