Class ValidationCodes

java.lang.Object
dev.jcputney.elearning.parser.validation.ValidationCodes

public final class ValidationCodes extends Object
Standard validation error and warning codes. Organized by eLearning standard.
  • Field Details

    • SCORM12_MISSING_RESOURCE_REF

      public static final String SCORM12_MISSING_RESOURCE_REF
      Validation error code indicating that a referenced resource is missing in a SCORM 1.2 manifest.

      This error occurs when the manifest references a resource which is not defined in the <resources> section of the SCORM 1.2 manifest file. The absence of this resource prevents the proper functioning of specific SCORM components or activities.

      Error Code: SCORM12_MISSING_RESOURCE_REF

      Severity: ERROR

      Example use case includes validation of SCORM 1.2 module manifests where resource definitions fail to align with their references.

      See Also:
    • SCORM12_MISSING_LAUNCH_URL

      public static final String SCORM12_MISSING_LAUNCH_URL
      Validation error code indicating that the launch URL is missing in a SCORM 1.2 manifest.

      This error occurs when a SCORM 1.2 resource does not define a launch location for the activity or content item, which is required for proper runtime interaction with the resource in a compliant LMS.

      Error Code: SCORM12_MISSING_LAUNCH_URL

      Severity: ERROR

      See Also:
    • SCORM12_INVALID_SCORMTYPE

      public static final String SCORM12_INVALID_SCORMTYPE
      Validation error code indicating an invalid SCORM type attribute in a SCORM 1.2 resource.

      This error occurs when a resource's adlcp:scormtype attribute contains an invalid value. Valid SCORM types include "sco" (Sharable Content Object) and "asset".

      Error Code: SCORM12_INVALID_SCORMTYPE

      Severity: ERROR

      Required by SCORM 1.2 CAM specification section 2.3.4.

      See Also:
    • SCORM12_INVALID_DEFAULT_ORG

      public static final String SCORM12_INVALID_DEFAULT_ORG
      Validation error code indicating an invalid default organization reference in a SCORM 1.2 manifest.

      This error occurs when the organizations element's default attribute references an organization identifier that does not exist in the manifest. The default organization determines which content structure is presented to learners by default.

      Error Code: SCORM12_INVALID_DEFAULT_ORG

      Severity: ERROR

      Required by SCORM 1.2 CAM specification section 2.3.2.

      See Also:
    • SCORM12_FILE_NOT_FOUND

      public static final String SCORM12_FILE_NOT_FOUND
      Validation error code indicating a referenced file cannot be found in a SCORM 1.2 package.

      This error occurs when a resource references a file (via href or dependency) that does not exist in the package's physical file structure. This prevents the content from being properly delivered to learners.

      Error Code: SCORM12_FILE_NOT_FOUND

      Severity: ERROR

      Required by SCORM 1.2 CAM specification section 2.3.4.

      See Also:
    • SCORM12_MISSING_ORGANIZATIONS

      public static final String SCORM12_MISSING_ORGANIZATIONS
      Validation error code indicating the organizations element is missing from a SCORM 1.2 manifest.

      This error occurs when the required <organizations> element is not present in the manifest. The organizations element defines the content structure and is mandatory in SCORM 1.2 manifests.

      Error Code: SCORM12_MISSING_ORGANIZATIONS

      Severity: ERROR

      Required by SCORM 1.2 CAM specification section 2.3.2.

      See Also:
    • SCORM12_MISSING_RESOURCES

      public static final String SCORM12_MISSING_RESOURCES
      Validation error code indicating the resources element is missing from a SCORM 1.2 manifest.

      This error occurs when the required <resources> element is not present in the manifest. The resources element contains all content files and their metadata, and is mandatory in SCORM 1.2 manifests.

      Error Code: SCORM12_MISSING_RESOURCES

      Severity: ERROR

      Required by SCORM 1.2 CAM specification section 2.3.4.

      See Also:
    • SCORM12_INVALID_IDENTIFIER

      public static final String SCORM12_INVALID_IDENTIFIER
      Validation error code indicating an invalid or missing identifier attribute in a SCORM 1.2 manifest element.

      This error occurs when a required identifier attribute is missing, empty, or contains invalid characters. Identifiers must be unique within their scope and follow XML ID naming conventions.

      Error Code: SCORM12_INVALID_IDENTIFIER

      Severity: ERROR

      Required by SCORM 1.2 CAM specification section 2.1.

      See Also:
    • SCORM12_DUPLICATE_IDENTIFIER

      public static final String SCORM12_DUPLICATE_IDENTIFIER
      Validation error code indicating duplicate identifier values in a SCORM 1.2 manifest.

      This error occurs when multiple elements (manifest, organizations, items, or resources) share the same identifier value. All identifiers within a manifest must be unique to ensure unambiguous references.

      Error Code: SCORM12_DUPLICATE_IDENTIFIER

      Severity: ERROR

      Required by SCORM 1.2 CAM specification section 2.1.

      See Also:
    • SCORM12_MISSING_TITLE

      public static final String SCORM12_MISSING_TITLE
      Validation error code indicating a missing title element in a SCORM 1.2 manifest component.

      This error occurs when a required <title> element is missing from an organization or item. Titles provide human-readable labels for content structure elements and are required for proper display in learning management systems.

      Error Code: SCORM12_MISSING_TITLE

      Severity: ERROR

      Required by SCORM 1.2 CAM specification section 2.3.2.

      See Also:
    • SCORM12_MISSING_MANIFEST_IDENTIFIER

      public static final String SCORM12_MISSING_MANIFEST_IDENTIFIER
      Validation error code indicating a missing manifest identifier in a SCORM 1.2 package.

      This error occurs when the required identifier attribute is missing from the manifest element. The manifest identifier uniquely identifies the content package and is mandatory for SCORM 1.2 compliance.

      Error Code: SCORM12_MISSING_MANIFEST_IDENTIFIER

      Severity: ERROR

      Required by SCORM 1.2 CAM specification section 2.1.

      See Also:
    • SCORM12_NO_LAUNCHABLE_RESOURCE

      public static final String SCORM12_NO_LAUNCHABLE_RESOURCE
      Validation error code indicating an organization has no launchable resources.

      This error occurs when an organization structure contains only container items without any items that reference actual content resources (items with identifierref attributes). At least one launchable resource is required for the organization to be functional in a learning management system.

      Error Code: SCORM12_NO_LAUNCHABLE_RESOURCE

      Severity: ERROR

      Required by SCORM 1.2 CAM specification section 2.3.3.

      See Also:
    • SCORM2004_INVALID_SEQUENCING

      public static final String SCORM2004_INVALID_SEQUENCING
      Validation error code indicating invalid sequencing rules in a SCORM 2004 manifest.

      This error occurs when sequencing and navigation (S&N) rules are malformed, contain logical contradictions, or violate SCORM 2004 sequencing constraints. Sequencing controls the order and conditions under which learners can access content.

      Error Code: SCORM2004_INVALID_SEQUENCING

      Severity: ERROR

      Required by SCORM 2004 4th Edition Sequencing and Navigation specification.

      See Also:
    • SCORM2004_MISSING_RESOURCE_REF

      public static final String SCORM2004_MISSING_RESOURCE_REF
      Validation error code indicating a missing resource reference in a SCORM 2004 manifest.

      This error occurs when an item's identifierref attribute references a resource that does not exist in the manifest's resources section. This prevents the content from being launched in the learning management system.

      Error Code: SCORM2004_MISSING_RESOURCE_REF

      Severity: ERROR

      Required by SCORM 2004 CAM specification section 2.3.

      See Also:
    • AICC_INVALID_AU_REFERENCE

      public static final String AICC_INVALID_AU_REFERENCE
      Validation error code indicating an invalid Assignable Unit (AU) reference in AICC content.

      This error occurs when a course structure element references an AU that is not defined in the assignable unit (.au) file. AICC uses AUs as the primary learning objects that can be tracked independently.

      Error Code: AICC_INVALID_AU_REFERENCE

      Severity: ERROR

      Required by AICC CMI Guidelines specification.

      See Also:
    • AICC_MISSING_COURSE_ID

      public static final String AICC_MISSING_COURSE_ID
      Validation error code indicating a missing Course ID in AICC descriptor file.

      This error occurs when the required Course_ID field is missing from the [Course_Description] block in the .des (descriptor) file. The Course ID is mandatory and uniquely identifies the AICC course.

      Error Code: AICC_MISSING_COURSE_ID

      Severity: ERROR

      Required by AICC CMI Guidelines specification.

      See Also:
    • CMI5_MISSING_LAUNCH_METHOD

      public static final String CMI5_MISSING_LAUNCH_METHOD
      Validation error code indicating a missing launch method in a cmi5 AU.

      This error occurs when an Assignable Unit in a cmi5 course structure does not specify a required launchMethod attribute. The launch method determines how the AU is presented to the learner (e.g., "OwnWindow", "AnyWindow").

      Error Code: CMI5_MISSING_LAUNCH_METHOD

      Severity: ERROR

      Required by cmi5 specification section 8.1.

      See Also:
    • CMI5_INVALID_LAUNCH_URL

      public static final String CMI5_INVALID_LAUNCH_URL
      Validation error code indicating an invalid launch URL in a cmi5 AU.

      This error occurs when an Assignable Unit's launch URL is malformed, empty, or points to a non-existent resource. The launch URL must be a valid URI that the LMS can use to launch the content.

      Error Code: CMI5_INVALID_LAUNCH_URL

      Severity: ERROR

      Required by cmi5 specification section 8.1.

      See Also:
    • XAPI_INVALID_ACTIVITY_ID

      public static final String XAPI_INVALID_ACTIVITY_ID
      Validation error code indicating an invalid Activity ID in xAPI/Tin Can content.

      This error occurs when an activity's ID is not a valid IRI (Internationalized Resource Identifier). Activity IDs must be absolute IRIs and are used to uniquely identify learning activities in xAPI statements.

      Error Code: XAPI_INVALID_ACTIVITY_ID

      Severity: ERROR

      Required by xAPI specification section 4.1.4.1.

      See Also:
    • XAPI_MISSING_LAUNCH_URL

      public static final String XAPI_MISSING_LAUNCH_URL
      Validation error code indicating a missing launch URL in xAPI/Tin Can content.

      This error occurs when an activity definition does not include a required launch URL or the URL is empty. The launch URL is needed for the LMS to present the activity to learners.

      Error Code: XAPI_MISSING_LAUNCH_URL

      Severity: ERROR

      Required by xAPI specification and Tin Can packaging format.

      See Also: