Class SequencingUsageDetector

java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.SequencingUsageDetector

public final class SequencingUsageDetector extends Object
The `SequencingUsageDetector` class provides functionalities for analyzing and detecting sequencing levels and indicators in SCORM 2004 manifests and associated components.

The methods in this class evaluate various aspects of SCORM manifests, including namespaces, schema locations, sequencing collections, organizations, resources, and items, to determine sequencing-related features. The class operates as a utility and follows a structured approach to sequencing detection, updating the provided indicators and detection states accordingly.

The primary detection process involves inspecting components of SCORM 2004 manifests and interpreting the sequencing structures, yielding a result that classifies the overall sequencing level and the identified indicators.

  • Method Details

    • detect

      public static SequencingUsageDetector.Result detect(Scorm2004Manifest manifest)
      Detects the sequencing support level and relevant indicators within a given SCORM 2004 manifest.

      This method analyzes the manifest and its components to determine various sequencing indicators and assigns an appropriate sequencing level based on the presence of sequencing content or structures in the manifest.

      Parameters:
      manifest - the SCORM 2004 manifest to be analyzed; can be null
      Returns:
      a Result object containing the determined sequencing level and the set of detected sequencing indicators