Class CourseRequiredRule
java.lang.Object
dev.jcputney.elearning.parser.validators.rules.aicc.CourseRequiredRule
- All Implemented Interfaces:
ValidationRule<AiccManifest>
Validates that an AICC manifest contains course information.
According to AICC specification, every AICC package must have a course (.crs) file that defines the basic course properties.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHuman-readable name of this rule for logging and debugging.Specification reference for traceability and documentation.validate(AiccManifest manifest) Validates that the manifest contains course information.
-
Constructor Details
-
CourseRequiredRule
public CourseRequiredRule()
-
-
Method Details
-
validate
Validates that the manifest contains course information.- Specified by:
validatein interfaceValidationRule<AiccManifest>- Parameters:
manifest- The AICC manifest to validate (must not be null)- Returns:
- ValidationResult containing any issues found
- Throws:
IllegalArgumentException- if manifest is null
-
getRuleName
Description copied from interface:ValidationRuleHuman-readable name of this rule for logging and debugging.- Specified by:
getRuleNamein interfaceValidationRule<AiccManifest>- Returns:
- Rule name (e.g., "Resource Reference Validation")
-
getSpecReference
Description copied from interface:ValidationRuleSpecification reference for traceability and documentation. Used to trace validation back to spec requirements.- Specified by:
getSpecReferencein interfaceValidationRule<AiccManifest>- Returns:
- Spec reference (e.g., "SCORM 1.2 CAM Section 2.3.4")
-