Package at.letto.tools.enums
Enum Class QuestionType
- All Implemented Interfaces:
Selectable
,Serializable
,Comparable<QuestionType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getId()
Klassen, die Selectable implementieren, müssen eine getId-Methode haben wird für generellen Converter verwendetgetName()
Liefert die volle Bezeichnung für den FragetypgetText()
Liefert den Inhalt für die Anzeige der Selectboxstatic QuestionType
getType
(int ordinal) static QuestionType
Bestimmt den Fragetyp eines Moodle-XML Fagetyp-BezeichnerstoString()
static QuestionType
Returns the enum constant of this class with the specified name.static QuestionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
unused0
-
unused1
-
unused2
-
unused3
-
unused4
-
unused5
-
unused6
-
unused7
-
unused8
-
unused9
-
MoodleNumerical
-
MoodleCalculated
-
MoodleCalculated_Multi
-
MoodleCalculated_Simple
-
MoodleMultichoice
-
MoodleShortAnswer
-
MoodleDescription
-
MoodleEssay
-
MoodleMatching
-
MoodleCloze
-
MoodleTrueFalse
-
MoodleRandomsMatch
-
MoodleClozeCalc
-
LinkedQuestion
-
-
Constructor Details
-
QuestionType
private QuestionType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getType
-
getSubQuestionType
-
getType
Bestimmt den Fragetyp eines Moodle-XML Fagetyp-Bezeichners- Parameters:
questionType
- Moodle-XML Fragetyp-Bezeichner- Returns:
- QuestionTyp
-
getName
Liefert die volle Bezeichnung für den Fragetyp- Returns:
- Bezeichnung des Fragetyps
-
toString
- Overrides:
toString
in classEnum<QuestionType>
-
getText
Description copied from interface:Selectable
Liefert den Inhalt für die Anzeige der Selectbox- Specified by:
getText
in interfaceSelectable
- Returns:
- Liefert den Inhalt für die Anzeige der Selectbox
-
getId
public int getId()Description copied from interface:Selectable
Klassen, die Selectable implementieren, müssen eine getId-Methode haben wird für generellen Converter verwendet- Specified by:
getId
in interfaceSelectable
- Returns:
- id des Objekts aus der Datenbank
-