Class LaunchUrlRequiredRule
java.lang.Object
dev.jcputney.elearning.parser.validators.rules.xapi.LaunchUrlRequiredRule
- All Implemented Interfaces:
ValidationRule<TincanManifest>
Validates that an xAPI package has a launch URL.
According to xAPI specification, at least one activity must have a launch attribute that serves as the entry point for the learning experience.
This rule defers validation when the activities list is null or empty, as that is
handled by ActivitiesRequiredRule.
- 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(TincanManifest manifest) Validates that the package has a launch URL.
-
Constructor Details
-
LaunchUrlRequiredRule
public LaunchUrlRequiredRule()
-
-
Method Details
-
validate
Validates that the package has a launch URL.- Specified by:
validatein interfaceValidationRule<TincanManifest>- Parameters:
manifest- The xAPI 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<TincanManifest>- 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<TincanManifest>- Returns:
- Spec reference (e.g., "SCORM 1.2 CAM Section 2.3.4")
-