Enum Class ModuleEditionType
- All Implemented Interfaces:
Serializable,Comparable<ModuleEditionType>,Constable
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).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAICC (Aviation Industry Computer-Based Training Committee) module type.cmi5 (xAPI for cmi5) module type.SCORM 1.2 module type.Generic SCORM 2004 module type (when an edition is unknown or unspecified).SCORM 2004 2nd Edition module type.SCORM 2004 3rd Edition module type.SCORM 2004 4th Edition module type.xAPI/TinCan module type. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleEditionTypefromModuleType(ModuleType moduleType, String edition) Creates a ModuleEditionType from a ModuleType and optional edition information.booleanDetermines if this edition type is a SCORM 2004 variant.Converts this edition type to the baseModuleType.static ModuleEditionTypeReturns the enum constant of this class with the specified name.static ModuleEditionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SCORM_12
SCORM 1.2 module type. -
SCORM_2004
Generic SCORM 2004 module type (when an edition is unknown or unspecified). -
SCORM_2004_2ND_EDITION
SCORM 2004 2nd Edition module type. -
SCORM_2004_3RD_EDITION
SCORM 2004 3rd Edition module type. -
SCORM_2004_4TH_EDITION
SCORM 2004 4th Edition module type. -
AICC
AICC (Aviation Industry Computer-Based Training Committee) module type. -
CMI5
cmi5 (xAPI for cmi5) module type. -
XAPI
xAPI/TinCan module type.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
fromModuleType
Creates a ModuleEditionType from a ModuleType and optional edition information.- Parameters:
moduleType- the base module typeedition- 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
Converts this edition type to the baseModuleType.- Returns:
- the corresponding base module type
-