Class DuplicateIdentifierRule
java.lang.Object
dev.jcputney.elearning.parser.validators.rules.common.DuplicateIdentifierRule
- All Implemented Interfaces:
ValidationRule<Scorm12Manifest>
Validates that all identifiers within the manifest are unique. Duplicate identifiers cause
unpredictable behavior in SCORM players.
Spec References:
- SCORM 1.2 CAM Section 2.3.1: "identifier must be unique"
- SCORM 2004 CAM Section 2.3.1: "identifier must be unique within scope"
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHuman-readable name of this rule for logging and debugging.Specification reference for traceability and documentation.validate(Scorm12Manifest manifest) Validates the manifest according to this rule.
-
Constructor Details
-
DuplicateIdentifierRule
public DuplicateIdentifierRule()
-
-
Method Details
-
getRuleName
Description copied from interface:ValidationRuleHuman-readable name of this rule for logging and debugging.- Specified by:
getRuleNamein interfaceValidationRule<Scorm12Manifest>- 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<Scorm12Manifest>- Returns:
- Spec reference (e.g., "SCORM 1.2 CAM Section 2.3.4")
-
validate
Description copied from interface:ValidationRuleValidates the manifest according to this rule.- Specified by:
validatein interfaceValidationRule<Scorm12Manifest>- Parameters:
manifest- The manifest to validate (must not be null)- Returns:
- ValidationResult with any issues found (never null)
-