Enum Class Context

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

public enum Context extends Enum<Context>
The context to which the learning object applies. The following schema snippet shows the context element:

   <xs:simpleType name="contextValues">
      <xs:restriction base="xs:token">
         <xs:enumeration value="school"/>
         <xs:enumeration value="higherEducation"/>
         <xs:enumeration value="training"/>
         <xs:enumeration value="other"/>
      </xs:restriction>
   </xs:simpleType>
 
  • Enum Constant Details

    • SCHOOL

      public static final Context SCHOOL
      The learning object is intended for use in a school context.
    • HIGHER_EDUCATION

      public static final Context HIGHER_EDUCATION
      The learning object is intended for use in a higher education context.
    • TRAINING

      public static final Context TRAINING
      The learning object is intended for use in a training context.
    • OTHER

      public static final Context OTHER
      The learning object is intended for use in another context.
    • UNKNOWN

      public static final Context UNKNOWN
      The context of the learning object is unknown.
  • Method Details

    • values

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