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

public final class Scorm2004File extends Object implements Serializable
Represents a file element within a resource, specifying a particular physical file in the content package.
See Also:
  • Constructor Details

    • Scorm2004File

      public Scorm2004File()
      Default constructor for the Scorm2004File class. This constructor creates an instance of the Scorm2004File class with no initial parameters.
  • Method Details

    • getHref

      public String getHref()
      Retrieves the URL or path to the file within the content package.
      Returns:
      the href representing the location of the file in the content package
    • setHref

      public void setHref(String href)
      Sets the URL or path to the file within the content package.
      Parameters:
      href - the href representing the location of the file in the content package
    • getMetadata

      public Scorm2004SubMetadata getMetadata()
      Retrieves the metadata associated with this file. The metadata provides details such as file size, creation date, and other descriptive information relevant to the file.
      Returns:
      the metadata of type Scorm2004SubMetadata associated with this file
    • setMetadata

      public void setMetadata(Scorm2004SubMetadata metadata)
      Sets the metadata associated with this file. The metadata provides details such as file size, creation date, and other descriptive information relevant to the file.
      Parameters:
      metadata - the metadata object containing detailed information about the file
    • isExists

      public boolean isExists()
      Checks whether the file exists in the content package.
      Returns:
      true if the file exists, false otherwise
    • setExists

      public void setExists(boolean exists)
      Sets the existence status of the file.
      Parameters:
      exists - a boolean value where true indicates that the file exists, and false indicates that it does not exist.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object