Class ScormDetectorPlugin
java.lang.Object
dev.jcputney.elearning.parser.util.detector.ScormDetectorPlugin
- All Implemented Interfaces:
ModuleTypeDetectorPlugin
Plugin for detecting SCORM modules (both 1.2 and 2004 versions).
This plugin checks for the presence of an imsmanifest.xml file, which is the standard manifest
file for SCORM modules. If found, it uses the ScormVersionDetector to determine the
specific SCORM version.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetect(FileAccess fileAccess) Detects the SCORM module type by checking for the presence of the SCORM manifest file.getName()Returns the name of this plugin.intReturns the priority of this plugin.
-
Constructor Details
-
ScormDetectorPlugin
public ScormDetectorPlugin()Default constructor for the SCORM detector plugin.
-
-
Method Details
-
getPriority
public int getPriority()Description copied from interface:ModuleTypeDetectorPluginReturns the priority of this plugin.Plugins with higher priority values are called before plugins with lower priority values.
- Specified by:
getPriorityin interfaceModuleTypeDetectorPlugin- Returns:
- the priority of this plugin
-
getName
Description copied from interface:ModuleTypeDetectorPluginReturns the name of this plugin.The name should be a descriptive identifier for the plugin, typically indicating the module type it detects (e.g., "SCORM 1.2 Detector", "AICC Detector").
- Specified by:
getNamein interfaceModuleTypeDetectorPlugin- Returns:
- the name of this plugin
-
detect
Detects the SCORM module type by checking for the presence of the SCORM manifest file.- Specified by:
detectin interfaceModuleTypeDetectorPlugin- Parameters:
fileAccess- An instance of FileAccess for reading files in the module package.- Returns:
- The detected SCORM module type, or null if not a SCORM module.
- Throws:
ModuleDetectionException- If an error occurs during detection.
-