Enum Class Difficulty

java.lang.Object
java.lang.Enum<Difficulty>
dev.jcputney.elearning.parser.input.lom.types.Difficulty
All Implemented Interfaces:
Serializable, Comparable<Difficulty>, Constable

public enum Difficulty extends Enum<Difficulty>
The difficulty of the learning object. The following schema snippet shows the difficulty element:

   <xs:simpleType name="difficultyValues">
      <xs:restriction base="xs:token">
         <xs:enumeration value="very easy"/>
         <xs:enumeration value="easy"/>
         <xs:enumeration value="medium"/>
         <xs:enumeration value="difficult"/>
         <xs:enumeration value="very difficult"/>
      </xs:restriction>
   </xs:simpleType>
 
  • Enum Constant Details

    • VERY_EASY

      public static final Difficulty VERY_EASY
      The learning object is very easy.
    • EASY

      public static final Difficulty EASY
      The learning object is "easy".
    • MEDIUM

      public static final Difficulty MEDIUM
      The learning object is of medium difficulty.
    • DIFFICULT

      public static final Difficulty DIFFICULT
      The learning object is "difficult".
    • VERY_DIFFICULT

      public static final Difficulty VERY_DIFFICULT
      The learning object is very difficult.
    • UNKNOWN

      public static final Difficulty UNKNOWN
      The difficulty of the learning object is unknown.
  • Method Details

    • values

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