Class AiccDetectorPlugin
java.lang.Object
dev.jcputney.elearning.parser.impl.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()Retrieves the name of this detector plugin.intRetrieves the priority of this detector plugin.
-
Constructor Details
-
AiccDetectorPlugin
public AiccDetectorPlugin()Default constructor for the AICC 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 denotes 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 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.
-