Class Scorm12ResourceValidator
java.lang.Object
dev.jcputney.elearning.parser.validators.Scorm12ResourceValidator
Validator for SCORM 1.2 manifests and their resource references.
This validator checks that:
- All item identifierrefs point to valid resources
- Referenced resources have valid href attributes (launch URLs)
- Default organization exists if specified
- Organizations structure is valid
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new Scorm12ResourceValidator with default rules. -
Method Summary
Modifier and TypeMethodDescriptionvalidate(Scorm12Manifest manifest) Validates a SCORM 1.2 manifest for structural and reference integrity.
-
Constructor Details
-
Scorm12ResourceValidator
public Scorm12ResourceValidator()Constructs a new Scorm12ResourceValidator with default rules.
-
-
Method Details
-
validate
Validates a SCORM 1.2 manifest for structural and reference integrity. Uses rule-based validation for better testability and maintainability.- Parameters:
manifest- The SCORM 1.2 manifest to validate- Returns:
- ValidationResult containing any issues found
-