Class Scorm2004Resource

java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.cp.Scorm2004Resource
All Implemented Interfaces:
Serializable

public final class Scorm2004Resource extends Object implements Serializable
Represents a single resource within the content package, typically corresponding to a physical file or collection of files that can be delivered within an LMS.
See Also:
  • Constructor Details

    • Scorm2004Resource

      public Scorm2004Resource()
      Constructs a new instance of the Scorm2004Resource class. This no-argument constructor initializes the object without setting any field values.
  • Method Details

    • getIdentifier

      public String getIdentifier()
      Retrieves the identifier of the SCORM 2004 resource.
      Returns:
      the identifier of the resource as a String
    • setIdentifier

      public void setIdentifier(String identifier)
      Sets the identifier of the SCORM 2004 resource.
      Parameters:
      identifier - the identifier for the resource as a String
    • getType

      public String getType()
      Retrieves the type of the SCORM 2004 resource.
      Returns:
      the type of the resource as a String
    • setType

      public void setType(String type)
      Sets the type of the SCORM 2004 resource.
      Parameters:
      type - the type of the resource as a String
    • getHref

      public String getHref()
      Retrieves the href value of the SCORM 2004 resource.
      Returns:
      the href representing the location of the resource as a String
    • setHref

      public void setHref(String href)
      Sets the href value of the SCORM 2004 resource. The href represents the location of the resource.
      Parameters:
      href - the href representing the location of the resource as a String
    • getBase

      public String getBase()
      Retrieves the base value of the SCORM 2004 resource.
      Returns:
      the base value as a String
    • setBase

      public void setBase(String base)
      Sets the base value of the SCORM 2004 resource.
      Parameters:
      base - the base value as a String
    • getScormType

      public ScormType getScormType()
      Retrieves the SCORM type of the resource.
      Returns:
      the SCORM type of the resource as an instance of ScormType
    • setScormType

      public void setScormType(ScormType scormType)
      Sets the SCORM type of the resource. The SCORM type can represent various types of resources defined in the SCORM ADLCP schema, such as SCOs (Shareable Content Objects) or assets.
      Parameters:
      scormType - an instance of ScormType representing the SCORM type of the resource (e.g., SCO, asset, or unknown)
    • getMetadata

      public Scorm2004SubMetadata getMetadata()
      Retrieves the metadata associated with the SCORM 2004 resource.
      Returns:
      an instance of Scorm2004SubMetadata representing the metadata, which may include inline LOM metadata or an external reference.
    • setMetadata

      public void setMetadata(Scorm2004SubMetadata metadata)
      Sets the metadata associated with the SCORM 2004 resource.
      Parameters:
      metadata - an instance of Scorm2004SubMetadata representing the metadata, which may include inline LOM metadata or an external reference
    • getFiles

      public List<Scorm2004File> getFiles()
      Retrieves the list of SCORM 2004 files associated with this resource. Each file represents a physical file defined in the content package.
      Returns:
      a list of Scorm2004File objects representing the files associated with this resource
    • setFiles

      public void setFiles(List<Scorm2004File> files)
      Sets the list of SCORM 2004 files associated with this resource. Each file represents a physical file defined in the content package.
      Parameters:
      files - a list of Scorm2004File objects representing the files associated with this resource
    • getDependencies

      public List<Scorm2004Dependency> getDependencies()
      Retrieves the list of dependencies associated with the SCORM 2004 resource. Each dependency represents a relationship to another resource that this resource relies on within the content package.
      Returns:
      a list of Scorm2004Dependency objects representing the dependencies associated with this resource.
    • setDependencies

      public void setDependencies(List<Scorm2004Dependency> dependencies)
      Sets the list of dependencies associated with the SCORM 2004 resource. Each dependency represents a relationship to another resource within the content package that this resource relies upon.
      Parameters:
      dependencies - a list of Scorm2004Dependency objects representing the dependencies associated with this resource
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object