Enum Class ObjectType

java.lang.Object
java.lang.Enum<ObjectType>
dev.learning.xapi.model.ObjectType
All Implemented Interfaces:
Serializable, Comparable<ObjectType>, Constable

public enum ObjectType extends Enum<ObjectType>
This enumeration class represents all valid xAPI object types.
Author:
István Rátkai (Selindek)
  • Enum Constant Details

    • ACTIVITY

      public static final ObjectType ACTIVITY
      Activity object type.
    • AGENT

      public static final ObjectType AGENT
      Agent object type.
    • PERSON

      public static final ObjectType PERSON
      Person object type.

      Note: Version 0.9 statements use the person object type.

      See Also:
    • GROUP

      public static final ObjectType GROUP
      Group object type.
    • SUBSTATEMENT

      public static final ObjectType SUBSTATEMENT
      SubStatement object type.
    • STATEMENTREF

      public static final ObjectType STATEMENTREF
      StatementRef object type.
  • Method Details

    • values

      public static ObjectType[] 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 ObjectType 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
    • getByValue

      public static Optional<ObjectType> getByValue(String url)