public static enum AnswerFormat.Type extends java.lang.Enum<AnswerFormat.Type> implements AnswerFormat.QuestionType
The type provides a default StepBody
for that
type of question. A custom StepLayout implementation may provide it's own StepBody rather
than using the default provided by this AnswerFormat.
Enum Constant and Description |
---|
Boolean |
Date |
DateAndTime |
Decimal |
Duration |
Eligibility |
Form |
Integer |
Location |
MultipleChoice |
None |
Scale |
SingleChoice |
Text |
TimeInterval |
TimeOfDay |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getStepBodyClass() |
static AnswerFormat.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AnswerFormat.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnswerFormat.Type None
public static final AnswerFormat.Type Scale
public static final AnswerFormat.Type SingleChoice
public static final AnswerFormat.Type MultipleChoice
public static final AnswerFormat.Type Decimal
public static final AnswerFormat.Type Integer
public static final AnswerFormat.Type Boolean
public static final AnswerFormat.Type Eligibility
public static final AnswerFormat.Type Text
public static final AnswerFormat.Type TimeOfDay
public static final AnswerFormat.Type DateAndTime
public static final AnswerFormat.Type Date
public static final AnswerFormat.Type TimeInterval
public static final AnswerFormat.Type Duration
public static final AnswerFormat.Type Location
public static final AnswerFormat.Type Form
public static AnswerFormat.Type[] values()
for (AnswerFormat.Type c : AnswerFormat.Type.values()) System.out.println(c);
public static AnswerFormat.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Class<?> getStepBodyClass()
getStepBodyClass
in interface AnswerFormat.QuestionType