Class ModuleMetadata<M extends PackageManifest>
java.lang.Object
dev.jcputney.elearning.parser.output.ModuleMetadata<M>
- Type Parameters:
M- the type of the package manifest
- All Implemented Interfaces:
PackageManifest,Serializable
- Direct Known Subclasses:
BaseModuleMetadata
public abstract class ModuleMetadata<M extends PackageManifest>
extends Object
implements PackageManifest
Represents the core metadata for an eLearning module, providing common fields shared across
various module types, such as SCORM, AICC, or cmi5.
Each module type can extend this class to include additional fields specific to that type.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MThe package manifest for the module.protected @NonNull ModuleEditionTypeThe specific edition type of the module, including SCORM 2004 edition information.protected @NonNull ModuleTypeThe type of the module (for example, SCORM, AICC, cmi5).protected booleanIndicates whether xAPI is enabled for the module. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedModuleMetadata(M manifest, ModuleType moduleType, ModuleEditionType moduleEditionType, boolean xapiEnabled) Constructor for ModuleMetadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe description of the package, which provides additional information about it.The duration of the package, which indicates how long the package is expected to take.The identifier of the package, which is a unique string that identifies the package.The launch URL of the package, which is the URL to start the package.getTitle()The title of the package, which is a human-readable name.The version of the package.inthashCode()
-
Field Details
-
manifest
The package manifest for the module. -
moduleType
The type of the module (for example, SCORM, AICC, cmi5). -
moduleEditionType
The specific edition type of the module, including SCORM 2004 edition information. -
xapiEnabled
protected boolean xapiEnabledIndicates whether xAPI is enabled for the module.
-
-
Constructor Details
-
ModuleMetadata
protected ModuleMetadata(M manifest, ModuleType moduleType, ModuleEditionType moduleEditionType, boolean xapiEnabled) Constructor for ModuleMetadata.- Parameters:
manifest- the package manifestmoduleType- the module typemoduleEditionType- the module edition typexapiEnabled- whether xAPI is enabled
-
-
Method Details
-
getTitle
Description copied from interface:PackageManifestThe title of the package, which is a human-readable name.- Specified by:
getTitlein interfacePackageManifest- Returns:
- the title of the package
-
getDescription
Description copied from interface:PackageManifestThe description of the package, which provides additional information about it.- Specified by:
getDescriptionin interfacePackageManifest- Returns:
- the description of the package
-
getLaunchUrl
Description copied from interface:PackageManifestThe launch URL of the package, which is the URL to start the package.- Specified by:
getLaunchUrlin interfacePackageManifest- Returns:
- the launch URL of the package
-
getIdentifier
Description copied from interface:PackageManifestThe identifier of the package, which is a unique string that identifies the package.- Specified by:
getIdentifierin interfacePackageManifest- Returns:
- the identifier of the package
-
getVersion
Description copied from interface:PackageManifestThe version of the package.- Specified by:
getVersionin interfacePackageManifest- Returns:
- the version of the package
-
getDuration
Description copied from interface:PackageManifestThe duration of the package, which indicates how long the package is expected to take.- Specified by:
getDurationin interfacePackageManifest- Returns:
- the duration of the package
-
equals
-
hashCode
public int hashCode()
-