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

public final class Scorm2004Item extends Object implements Serializable
Represents a single item within an organization, typically mapping to a learning object or resource. Items define the hierarchical structure within an organization.
See Also:
  • Constructor Details

    • Scorm2004Item

      public Scorm2004Item()
      Default constructor for the Scorm2004Item class. Initializes a new instance of the Scorm2004Item without any specific configuration or data. This constructor is primarily used to create a blank SCORM 2004 item that can later be configured using setter methods.
  • Method Details

    • getIdentifier

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

      public void setIdentifier(String identifier)
      Sets the identifier for this SCORM 2004 item.
      Parameters:
      identifier - the unique identifier to be set for this item
    • getIdentifierRef

      public String getIdentifierRef()
      Retrieves the identifier reference for this SCORM 2004 item.
      Returns:
      the identifier reference as a String
    • setIdentifierRef

      public void setIdentifierRef(String identifierRef)
      Sets the identifier reference for this SCORM 2004 item.
      Parameters:
      identifierRef - the identifier reference to be set for this item
    • isVisible

      public boolean isVisible()
      Determines the visibility status of this SCORM 2004 item.
      Returns:
      true if the item is visible, false otherwise
    • setVisible

      public void setVisible(boolean visible)
      Sets the visibility status for this SCORM 2004 item.
      Parameters:
      visible - a boolean value where true makes the item visible, and false makes it invisible
    • getParameters

      public String getParameters()
      Retrieves the parameters associated with this SCORM 2004 item.
      Returns:
      the parameters of this SCORM 2004 item as a String
    • setParameters

      public void setParameters(String parameters)
      Sets the parameters associated with this SCORM 2004 item.
      Parameters:
      parameters - the parameters to be set as a String
    • getTitle

      public String getTitle()
      Retrieves the title of the SCORM 2004 item.
      Returns:
      the title of this SCORM 2004 item as a String
    • setTitle

      public void setTitle(String title)
      Sets the title for this SCORM 2004 item.
      Parameters:
      title - the title of the SCORM 2004 item
    • getItems

      public List<Scorm2004Item> getItems()
      Retrieves the list of child items associated with this SCORM 2004 item.
      Returns:
      a List of Scorm2004Item objects representing the child items
    • setItems

      public void setItems(List<Scorm2004Item> items)
      Sets the list of child items associated with this SCORM 2004 item.
      Parameters:
      items - a List of Scorm2004Item objects representing the child items
    • getData

      public ADLData getData()
      Retrieves the ADLData associated with this SCORM 2004 item.
      Returns:
      the ADLData object containing the data map elements and configurations
    • setData

      public void setData(ADLData data)
      Sets the ADLData object associated with this SCORM 2004 item.
      Parameters:
      data - the ADLData object containing data map elements and configurations
    • getCompletionThreshold

      public CompletionThreshold getCompletionThreshold()
      Retrieves the completion threshold for this SCORM 2004 item.
      Returns:
      the CompletionThreshold object containing the completion threshold settings for this item
    • setCompletionThreshold

      public void setCompletionThreshold(CompletionThreshold completionThreshold)
      Sets the completion threshold for this SCORM 2004 item.
      Parameters:
      completionThreshold - the CompletionThreshold object containing the completion threshold settings to be applied to this item
    • getSequencing

      public Sequencing getSequencing()
      Retrieves the sequencing settings associated with this SCORM 2004 item.
      Returns:
      the Sequencing object defining the sequencing rules and behaviors for this item
    • setSequencing

      public void setSequencing(Sequencing sequencing)
      Sets the sequencing settings for this SCORM 2004 item.
      Parameters:
      sequencing - the Sequencing object containing the sequencing rules and behaviors to be applied to this item
    • getMetadata

      public Scorm2004SubMetadata getMetadata()
      Retrieves the metadata associated with this SCORM 2004 item.
      Returns:
      the Scorm2004SubMetadata object that encapsulates the metadata for this SCORM 2004 item, which may include inline metadata or an external reference to a metadata file.
    • setMetadata

      public void setMetadata(Scorm2004SubMetadata metadata)
      Sets the metadata associated with this SCORM 2004 item.
      Parameters:
      metadata - the Scorm2004SubMetadata object containing the metadata for this SCORM 2004 item, which may include inline metadata or an external reference to a metadata file
    • getPresentation

      public Presentation getPresentation()
      Retrieves the presentation settings associated with this SCORM 2004 item.
      Returns:
      the Presentation object containing the navigation control settings, or null if no presentation settings are defined
    • setPresentation

      public void setPresentation(Presentation presentation)
      Sets the presentation settings associated with this SCORM 2004 item.
      Parameters:
      presentation - the Presentation object containing the navigation control settings for this item
    • getMasteryScore

      public Double getMasteryScore()
      Retrieves the mastery score for this SCORM 2004 item.
      Returns:
      the mastery score as a Double, or null if no mastery score is defined
    • setMasteryScore

      public void setMasteryScore(Double masteryScore)
      Sets the mastery score for this SCORM 2004 item.
      Parameters:
      masteryScore - the mastery score to be set as a Double
    • getPrerequisites

      public String getPrerequisites()
      Retrieves the prerequisites for this SCORM 2004 item.
      Returns:
      the prerequisites as a String
    • setPrerequisites

      public void setPrerequisites(String prerequisites)
      Sets the prerequisites for this SCORM 2004 item.
      Parameters:
      prerequisites - the prerequisites to be set, represented as a String
    • getTimeLimitAction

      public TimeLimitAction getTimeLimitAction()
      Retrieves the time limit action associated with this SCORM 2004 item. The TimeLimitAction specifies how the system should behave when a time limit is exceeded, such as exiting or continuing the activity with or without a message.
      Returns:
      the TimeLimitAction associated with this SCORM 2004 item, or TimeLimitAction.UNKNOWN if no action is defined.
    • setTimeLimitAction

      public void setTimeLimitAction(TimeLimitAction timeLimitAction)
      Sets the time limit action for this SCORM 2004 item. The TimeLimitAction specifies how the system should behave when the time limit is exceeded, such as exiting or continuing the activity with or without a message.
      Parameters:
      timeLimitAction - the TimeLimitAction to be set for this SCORM 2004 item, which defines the system's behavior on exceeding the time limit
    • getDataFromLMS

      public String getDataFromLMS()
      Retrieves data associated with this SCORM 2004 item from the LMS.
      Returns:
      the data from the LMS as a String
    • setDataFromLMS

      public void setDataFromLMS(String dataFromLMS)
      Sets the data associated with this SCORM 2004 item from the LMS.
      Parameters:
      dataFromLMS - the data from the LMS to be set as a String
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object