Class Scorm2004Metadata
java.lang.Object
dev.jcputney.elearning.parser.output.ModuleMetadata<M>
dev.jcputney.elearning.parser.output.metadata.BaseModuleMetadata<Scorm2004Manifest>
dev.jcputney.elearning.parser.output.metadata.scorm2004.Scorm2004Metadata
- All Implemented Interfaces:
PackageManifest,MetadataComponent,Serializable
Represents metadata for SCORM 2004 eLearning modules, including SCORM 2004-specific fields such
as sequencing information, mastery score, custom data, prerequisites, and additional metadata
from external manifests.
This class extends the base BaseModuleMetadata class to provide metadata that describes
the structure and rules that are specific to SCORM 2004 modules.
- See Also:
-
Field Summary
Fields inherited from class dev.jcputney.elearning.parser.output.metadata.BaseModuleMetadata
compositeMetadata, DESCRIPTION, DURATION, IDENTIFIER, LAUNCH_URL, MODULE_TYPE, TITLE, VERSION, XAPI_ENABLEDFields inherited from class dev.jcputney.elearning.parser.output.ModuleMetadata
manifest, moduleEditionType, moduleType, xapiEnabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Scorm2004Metadatacreate(Scorm2004Manifest manifest, boolean xapiEnabled) Creates a new Scorm2004Metadata instance with standard SCORM 2004 metadata components.Retrieves the set of global objective IDs from the manifest.static booleanhasSequencing(Scorm2004Manifest manifest) Determines if a SCORM 2004 manifest has sequencing information.Methods inherited from class dev.jcputney.elearning.parser.output.metadata.BaseModuleMetadata
addMetadataComponent, getMetadata, getMetadata, getSimpleMetadata, hasMetadataMethods inherited from class dev.jcputney.elearning.parser.output.ModuleMetadata
equals, getDescription, getDuration, getIdentifier, getLaunchUrl, getTitle, getVersion, hashCode
-
Constructor Details
-
Scorm2004Metadata
public Scorm2004Metadata()
-
-
Method Details
-
create
Creates a new Scorm2004Metadata instance with standard SCORM 2004 metadata components.- Parameters:
manifest- The SCORM 2004 manifest.xapiEnabled- Whether xAPI is enabled.- Returns:
- A new Scorm2004Metadata instance.
-
hasSequencing
Determines if a SCORM 2004 manifest has sequencing information.This method checks if any item in any organization has sequencing rules defined. Sequencing is considered present if any item has a non-null sequencing element.
- Parameters:
manifest- The SCORM 2004 manifest to check.- Returns:
- true if the manifest contains sequencing information, false otherwise.
-
getGlobalObjectiveIds
Retrieves the set of global objective IDs from the manifest. A global objective ID is defined by the presence of a targetObjectiveID in a mapInfo element.- Returns:
- A set of global objective IDs.
-