Class FileExistenceValidator
java.lang.Object
dev.jcputney.elearning.parser.config.FileExistenceValidator
Configuration utility for controlling file existence validation in module parsers.
File existence validation checks whether all files referenced in a module manifest actually exist in the module package. While useful for validation reports, this can be expensive for modules with many files (e.g., HLS video streams with thousands of .ts segments).
Validation is disabled by default. It can be enabled via:
- System property
elearning.parser.validateFileExists=true - Environment variable
ELEARNING_VALIDATE_FILE_EXISTS=true - Programmatically via
ParserOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDetermines whether file existence validation is enabled based on system properties or environment variables.
-
Method Details
-
isEnabled
public static boolean isEnabled()Determines whether file existence validation is enabled based on system properties or environment variables.- Returns:
trueif validation is enabled; otherwisefalse.
-