Class Scorm2004ObjectiveMapping

java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.ss.objective.Scorm2004ObjectiveMapping
All Implemented Interfaces:
Serializable

public final class Scorm2004ObjectiveMapping extends Object implements Serializable
Represents a mapping from a local objective to a global objective within the SCORM IMS Simple Sequencing schema.

Objective mappings allow local objectives to share satisfaction and progress information with global objectives, providing consistency in tracking and reporting across different activities.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for the Scorm2004ObjectiveMapping class.
    Scorm2004ObjectiveMapping(String targetObjectiveID, boolean readSatisfiedStatus, boolean readNormalizedMeasure, boolean writeSatisfiedStatus, boolean writeNormalizedMeasure, boolean readCompletionStatus, boolean writeCompletionStatus)
    Constructs a Scorm2004ObjectiveMapping object with specified parameters to configure the capabilities for reading and writing SCORM 2004 objective properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Retrieves the target objective identifier associated with this object.
    int
     
    boolean
    Determines whether the read operation for the completion status is allowed.
    boolean
    Checks if the read operation for the normalized measure is allowed.
    boolean
    Indicates whether the read operation for the satisfied status is allowed.
    boolean
    Determines whether the write operation for the completion status is allowed.
    boolean
    Checks whether the write operation for the normalized measure is enabled.
    boolean
    Determines whether the write operation for the satisfied status is allowed.
    void
    setReadCompletionStatus(boolean readCompletionStatus)
    Sets the read capability for the completion status associated with this Scorm2004ObjectiveMapping object.
    void
    setReadNormalizedMeasure(boolean readNormalizedMeasure)
    Sets the read capability for the normalized measure associated with this Scorm2004ObjectiveMapping object.
    void
    setReadSatisfiedStatus(boolean readSatisfiedStatus)
    Sets the read satisfied status for this Scorm2004ObjectiveMapping object.
    void
    setTargetObjectiveID(String targetObjectiveID)
    Sets the target objective identifier for this object.
    void
    setWriteCompletionStatus(boolean writeCompletionStatus)
    Sets the write capability for the completion status associated with this Scorm2004ObjectiveMapping object.
    void
    setWriteNormalizedMeasure(boolean writeNormalizedMeasure)
    Sets the write capability for the normalized measure associated with this Scorm2004ObjectiveMapping object.
    void
    setWriteSatisfiedStatus(boolean writeSatisfiedStatus)
    Sets the write capability for the satisfied status associated with this Scorm2004ObjectiveMapping object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Scorm2004ObjectiveMapping

      public Scorm2004ObjectiveMapping(String targetObjectiveID, boolean readSatisfiedStatus, boolean readNormalizedMeasure, boolean writeSatisfiedStatus, boolean writeNormalizedMeasure, boolean readCompletionStatus, boolean writeCompletionStatus)
      Constructs a Scorm2004ObjectiveMapping object with specified parameters to configure the capabilities for reading and writing SCORM 2004 objective properties.
      Parameters:
      targetObjectiveID - the identifier for the SCORM objective that this mapping applies to
      readSatisfiedStatus - a boolean indicating whether the "satisfied status" can be read
      readNormalizedMeasure - a boolean indicating whether the "normalized measure" can be read
      writeSatisfiedStatus - a boolean indicating whether the "satisfied status" can be written
      writeNormalizedMeasure - a boolean indicating whether the "normalized measure" can be written
      readCompletionStatus - a boolean indicating whether the "completion status" can be read
      writeCompletionStatus - a boolean indicating whether the "completion status" can be written
    • Scorm2004ObjectiveMapping

      public Scorm2004ObjectiveMapping()
      Default constructor for the Scorm2004ObjectiveMapping class.

      This constructor initializes a Scorm2004ObjectiveMapping instance with no specific configuration or parameters. It serves as a no-operation constructor and provides an instance of the class without setting any attributes or enabling any SCORM objective properties.

  • Method Details

    • getTargetObjectiveID

      public String getTargetObjectiveID()
      Retrieves the target objective identifier associated with this object.
      Returns:
      the target objective identifier as a String
    • setTargetObjectiveID

      public void setTargetObjectiveID(String targetObjectiveID)
      Sets the target objective identifier for this object.
      Parameters:
      targetObjectiveID - the target objective identifier to be set
    • isReadSatisfiedStatus

      public boolean isReadSatisfiedStatus()
      Indicates whether the read operation for the satisfied status is allowed.
      Returns:
      true if the read operation for the satisfied status is enabled; false otherwise.
    • setReadSatisfiedStatus

      public void setReadSatisfiedStatus(boolean readSatisfiedStatus)
      Sets the read satisfied status for this Scorm2004ObjectiveMapping object.
      Parameters:
      readSatisfiedStatus - a boolean value indicating whether the satisfied status can be read
    • isReadNormalizedMeasure

      public boolean isReadNormalizedMeasure()
      Checks if the read operation for the normalized measure is allowed.
      Returns:
      true if the read operation for the normalized measure is enabled; false otherwise.
    • setReadNormalizedMeasure

      public void setReadNormalizedMeasure(boolean readNormalizedMeasure)
      Sets the read capability for the normalized measure associated with this Scorm2004ObjectiveMapping object.
      Parameters:
      readNormalizedMeasure - a boolean indicating whether the normalized measure can be read (true) or not (false)
    • isWriteSatisfiedStatus

      public boolean isWriteSatisfiedStatus()
      Determines whether the write operation for the satisfied status is allowed.
      Returns:
      true if the write operation for the satisfied status is enabled; false otherwise.
    • setWriteSatisfiedStatus

      public void setWriteSatisfiedStatus(boolean writeSatisfiedStatus)
      Sets the write capability for the satisfied status associated with this Scorm2004ObjectiveMapping object.
      Parameters:
      writeSatisfiedStatus - a boolean indicating whether the satisfied status can be written (true) or not (false)
    • isWriteNormalizedMeasure

      public boolean isWriteNormalizedMeasure()
      Checks whether the write operation for the normalized measure is enabled.
      Returns:
      true if the write operation for the normalized measure is enabled; false otherwise.
    • setWriteNormalizedMeasure

      public void setWriteNormalizedMeasure(boolean writeNormalizedMeasure)
      Sets the write capability for the normalized measure associated with this Scorm2004ObjectiveMapping object.
      Parameters:
      writeNormalizedMeasure - a boolean indicating whether the normalized measure can be written (true) or not (false)
    • isReadCompletionStatus

      public boolean isReadCompletionStatus()
      Determines whether the read operation for the completion status is allowed.
      Returns:
      true if the read operation for the completion status is enabled; false otherwise.
    • setReadCompletionStatus

      public void setReadCompletionStatus(boolean readCompletionStatus)
      Sets the read capability for the completion status associated with this Scorm2004ObjectiveMapping object.
      Parameters:
      readCompletionStatus - a boolean indicating whether the completion status can be read (true) or not (false)
    • isWriteCompletionStatus

      public boolean isWriteCompletionStatus()
      Determines whether the write operation for the completion status is allowed.
      Returns:
      true if the write operation for the completion status is enabled; false otherwise.
    • setWriteCompletionStatus

      public void setWriteCompletionStatus(boolean writeCompletionStatus)
      Sets the write capability for the completion status associated with this Scorm2004ObjectiveMapping object.
      Parameters:
      writeCompletionStatus - a boolean indicating whether the completion status can be written (true) or not (false)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object