Enum SurveyQuestion.QuestionType
- java.lang.Object
-
- java.lang.Enum<SurveyQuestion.QuestionType>
-
- org.ametys.plugins.survey.repository.SurveyQuestion.QuestionType
-
- All Implemented Interfaces:
Serializable
,Comparable<SurveyQuestion.QuestionType>
- Enclosing class:
- SurveyQuestion
public static enum SurveyQuestion.QuestionType extends Enum<SurveyQuestion.QuestionType>
Type of a page.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FREE_TEXT
Free text.MULTILINE_FREE_TEXT
Multiline free text.MULTIPLE_CHOICE
Multiple choice.MULTIPLE_MATRIX
Matrix of multiple choice.SINGLE_CHOICE
Single choice.SINGLE_MATRIX
Matrix of single choice.
-
Constructor Summary
Constructors Modifier Constructor Description private
QuestionType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SurveyQuestion.QuestionType
valueOf(String name)
Returns the enum constant of this type with the specified name.static SurveyQuestion.QuestionType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FREE_TEXT
public static final SurveyQuestion.QuestionType FREE_TEXT
Free text.
-
MULTILINE_FREE_TEXT
public static final SurveyQuestion.QuestionType MULTILINE_FREE_TEXT
Multiline free text.
-
SINGLE_CHOICE
public static final SurveyQuestion.QuestionType SINGLE_CHOICE
Single choice.
-
MULTIPLE_CHOICE
public static final SurveyQuestion.QuestionType MULTIPLE_CHOICE
Multiple choice.
-
SINGLE_MATRIX
public static final SurveyQuestion.QuestionType SINGLE_MATRIX
Matrix of single choice.
-
MULTIPLE_MATRIX
public static final SurveyQuestion.QuestionType MULTIPLE_MATRIX
Matrix of multiple choice.
-
-
Constructor Detail
-
QuestionType
private QuestionType()
-
-
Method Detail
-
values
public static SurveyQuestion.QuestionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SurveyQuestion.QuestionType c : SurveyQuestion.QuestionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SurveyQuestion.QuestionType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-