Enum Class QuestionType

java.lang.Object
java.lang.Enum<QuestionType>
at.letto.tools.enums.QuestionType
All Implemented Interfaces:
Selectable, Serializable, Comparable<QuestionType>, Constable

public enum QuestionType extends Enum<QuestionType> implements Selectable
  • Enum Constant Details

    • unused0

      public static final QuestionType unused0
    • unused1

      public static final QuestionType unused1
    • unused2

      public static final QuestionType unused2
    • unused3

      public static final QuestionType unused3
    • unused4

      public static final QuestionType unused4
    • unused5

      public static final QuestionType unused5
    • unused6

      public static final QuestionType unused6
    • unused7

      public static final QuestionType unused7
    • unused8

      public static final QuestionType unused8
    • unused9

      public static final QuestionType unused9
    • MoodleNumerical

      public static final QuestionType MoodleNumerical
    • MoodleCalculated

      public static final QuestionType MoodleCalculated
    • MoodleCalculated_Multi

      public static final QuestionType MoodleCalculated_Multi
    • MoodleCalculated_Simple

      public static final QuestionType MoodleCalculated_Simple
    • MoodleMultichoice

      public static final QuestionType MoodleMultichoice
    • MoodleShortAnswer

      public static final QuestionType MoodleShortAnswer
    • MoodleDescription

      public static final QuestionType MoodleDescription
    • MoodleEssay

      public static final QuestionType MoodleEssay
    • MoodleMatching

      public static final QuestionType MoodleMatching
    • MoodleCloze

      public static final QuestionType MoodleCloze
    • MoodleTrueFalse

      public static final QuestionType MoodleTrueFalse
    • MoodleRandomsMatch

      public static final QuestionType MoodleRandomsMatch
    • MoodleClozeCalc

      public static final QuestionType MoodleClozeCalc
    • LinkedQuestion

      public static final QuestionType LinkedQuestion
  • Constructor Details

    • QuestionType

      private QuestionType()
  • Method Details

    • values

      public static QuestionType[] 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

      public static QuestionType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getType

      public static QuestionType getType(int ordinal)
    • getSubQuestionType

      public SQMODE getSubQuestionType()
    • getType

      public static QuestionType getType(String questionType)
      Bestimmt den Fragetyp eines Moodle-XML Fagetyp-Bezeichners
      Parameters:
      questionType - Moodle-XML Fragetyp-Bezeichner
      Returns:
      QuestionTyp
    • getName

      public String getName()
      Liefert die volle Bezeichnung für den Fragetyp
      Returns:
      Bezeichnung des Fragetyps
    • toString

      public String toString()
      Overrides:
      toString in class Enum<QuestionType>
    • getText

      public String getText()
      Description copied from interface: Selectable
      Liefert den Inhalt für die Anzeige der Selectbox
      Specified by:
      getText in interface Selectable
      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 interface Selectable
      Returns:
      id des Objekts aus der Datenbank