Enum Class ModuleEditionType

java.lang.Object
java.lang.Enum<ModuleEditionType>
dev.jcputney.elearning.parser.enums.ModuleEditionType
All Implemented Interfaces:
Serializable, Comparable<ModuleEditionType>, Constable

public enum ModuleEditionType extends Enum<ModuleEditionType>
Enum representing the different types and editions of modules.

This enum extends the concept of ModuleType by providing more granular edition information, particularly for SCORM 2004 modules which have multiple editions (2nd, 3rd, and 4th).

  • Enum Constant Details

    • SCORM_12

      public static final ModuleEditionType SCORM_12
      SCORM 1.2 module type.
    • SCORM_2004

      public static final ModuleEditionType SCORM_2004
      Generic SCORM 2004 module type (when an edition is unknown or unspecified).
    • SCORM_2004_2ND_EDITION

      public static final ModuleEditionType SCORM_2004_2ND_EDITION
      SCORM 2004 2nd Edition module type.
    • SCORM_2004_3RD_EDITION

      public static final ModuleEditionType SCORM_2004_3RD_EDITION
      SCORM 2004 3rd Edition module type.
    • SCORM_2004_4TH_EDITION

      public static final ModuleEditionType SCORM_2004_4TH_EDITION
      SCORM 2004 4th Edition module type.
    • AICC

      public static final ModuleEditionType AICC
      AICC (Aviation Industry Computer-Based Training Committee) module type.
    • CMI5

      public static final ModuleEditionType CMI5
      cmi5 (xAPI for cmi5) module type.
    • XAPI

      public static final ModuleEditionType XAPI
      xAPI/TinCan module type.
  • Method Details

    • values

      public static ModuleEditionType[] 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 ModuleEditionType 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
    • fromModuleType

      public static ModuleEditionType fromModuleType(ModuleType moduleType, String edition)
      Creates a ModuleEditionType from a ModuleType and optional edition information.
      Parameters:
      moduleType - the base module type
      edition - optional edition string (e.g., "2nd", "3rd", "4th") for SCORM 2004
      Returns:
      the corresponding ModuleEditionType
    • isScorm2004

      public boolean isScorm2004()
      Determines if this edition type is a SCORM 2004 variant.
      Returns:
      true if this is any SCORM 2004 edition type, false otherwise
    • toModuleType

      public ModuleType toModuleType()
      Converts this edition type to the base ModuleType.
      Returns:
      the corresponding base module type