Class Cmi5DetectorPlugin
java.lang.Object
dev.jcputney.elearning.parser.impl.detector.Cmi5DetectorPlugin
- All Implemented Interfaces:
ModuleTypeDetectorPlugin
Plugin for detecting cmi5 modules.
This plugin checks for the presence of a cmi5.xml file, which is the standard manifest file for cmi5 modules.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetect(FileAccess fileAccess) Detects if the provided FileAccess instance contains a cmi5 module.getName()Retrieves the name of this detector plugin.intRetrieves the priority of this detector plugin.
-
Constructor Details
-
Cmi5DetectorPlugin
public Cmi5DetectorPlugin()Default constructor for the cmi5 detector plugin.
-
-
Method Details
-
getPriority
public int getPriority()Retrieves the priority of this detector plugin.- Specified by:
getPriorityin interfaceModuleTypeDetectorPlugin- Returns:
- the priority value as an integer, where a higher value indicates a higher priority.
-
getName
Retrieves the name of this detector plugin.- Specified by:
getNamein interfaceModuleTypeDetectorPlugin- Returns:
- the name of the detector plugin as a String.
-
detect
Detects if the provided FileAccess instance contains a cmi5 module.- Specified by:
detectin interfaceModuleTypeDetectorPlugin- Parameters:
fileAccess- The FileAccess instance to check for cmi5 module.- Returns:
- ModuleType.CMI5 if a cmi5 module is detected, null otherwise.
- Throws:
ModuleDetectionException- if an error occurs during detection.
-