Class AiccDetectorPlugin
java.lang.Object
dev.jcputney.elearning.parser.util.detector.AiccDetectorPlugin
- All Implemented Interfaces:
ModuleTypeDetectorPlugin
Plugin for detecting AICC modules.
This plugin checks for the presence of .au and .crs files, which are standard files for AICC modules.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetect(FileAccess fileAccess) Detects if the provided FileAccess instance contains AICC module files.getName()Returns the name of this plugin.intReturns the priority of this plugin.
-
Constructor Details
-
AiccDetectorPlugin
public AiccDetectorPlugin()Default constructor for the AICC 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 if the provided FileAccess instance contains AICC module files.- Specified by:
detectin interfaceModuleTypeDetectorPlugin- Parameters:
fileAccess- The FileAccess instance to check for AICC module files.- Returns:
- ModuleType.AICC if AICC files are found, null otherwise.
- Throws:
ModuleDetectionException- if an error occurs during detection.
-