Class AiccDetectorPlugin

java.lang.Object
dev.jcputney.elearning.parser.impl.detector.AiccDetectorPlugin
All Implemented Interfaces:
ModuleTypeDetectorPlugin

public class AiccDetectorPlugin extends Object implements 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 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:
      getPriority in interface ModuleTypeDetectorPlugin
      Returns:
      the priority value as an integer, where a higher value denotes a higher priority.
    • getName

      public String getName()
      Retrieves the name of this detector plugin.
      Specified by:
      getName in interface ModuleTypeDetectorPlugin
      Returns:
      the name of the detector plugin as a String.
    • detect

      public ModuleType detect(FileAccess fileAccess) throws ModuleDetectionException
      Detects if the provided FileAccess instance contains AICC module files.
      Specified by:
      detect in interface ModuleTypeDetectorPlugin
      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.