Interface ModuleParserFactory
- All Known Implementing Classes:
DefaultModuleParserFactory
public interface ModuleParserFactory
Interface for creating and managing module parsers.
This interface defines the contract for factory classes that create appropriate parsers for different types of eLearning modules. Implementations should detect the module type and return the corresponding parser.
This interface follows the Factory pattern, allowing different strategies for creating parsers to be implemented and used interchangeably.
-
Method Summary
Modifier and TypeMethodDescriptionModuleParser<?>Returns an appropriate parser for the module type detected.Parses the module and returns a ModuleMetadata object containing the extracted metadata.
-
Method Details
-
getParser
Returns an appropriate parser for the module type detected.- Returns:
- A ModuleParser instance for the detected module type.
- Throws:
ModuleDetectionException- if the module type cannot be determined.
-
parseModule
Parses the module and returns a ModuleMetadata object containing the extracted metadata.- Returns:
- A ModuleMetadata object containing the extracted metadata.
- Throws:
ModuleDetectionException- if the module type cannot be determined.ModuleParsingException- if an error occurs during parsing.ModuleException
-