Class Cmi5Manifest

java.lang.Object
dev.jcputney.elearning.parser.input.cmi5.Cmi5Manifest
All Implemented Interfaces:
PackageManifest, Serializable

public class Cmi5Manifest extends Object implements PackageManifest
Represents the root element of a CMI5 course structure manifest. Implements the PackageManifest interface to provide common manifest functionality.

Defined in the schema as:


 <xs:element name="courseStructure" type="courseType"/>
 

The Cmi5Manifest includes the following components:

  • A Course element defining the course metadata.
  • An optional Objectives element listing the objectives for the course.
  • A sequence of Block and AU (Assignable Unit) elements defining the course structure.
See Also:
  • Constructor Details

    • Cmi5Manifest

      public Cmi5Manifest()
  • Method Details

    • getTitle

      public String getTitle()
      Returns the title of the course. If the title is not present, returns null.
      Specified by:
      getTitle in interface PackageManifest
      Returns:
      the title of the course
    • getDescription

      public String getDescription()
      Returns the description of the course. If the description is not present, returns null.
      Specified by:
      getDescription in interface PackageManifest
      Returns:
      the description of the course
    • getLaunchUrl

      public String getLaunchUrl()
      Returns the launch URL for the course. First checks for assignable units at the root level, and if none are found, looks for assignable units inside the first block.
      Specified by:
      getLaunchUrl in interface PackageManifest
      Returns:
      the launch URL for the course, or null if no assignable units are found
    • getIdentifier

      public String getIdentifier()
      Returns the identifier for the course. If the course does not have an identifier, returns null.
      Specified by:
      getIdentifier in interface PackageManifest
      Returns:
      the identifier for the course
    • getVersion

      public String getVersion()
      Returns null, as the CMI5 manifest does not include a version number.
      Specified by:
      getVersion in interface PackageManifest
      Returns:
      null
    • getDuration

      public Duration getDuration()
      Description copied from interface: PackageManifest
      The duration of the package, which indicates how long the package is expected to take.
      Specified by:
      getDuration in interface PackageManifest
      Returns:
      the duration of the package