Class Scorm2004ObjectiveMapping
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.ss.objective.Scorm2004ObjectiveMapping
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionDefault 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 TypeMethodDescriptionbooleanRetrieves the target objective identifier associated with this object.inthashCode()booleanDetermines whether the read operation for the completion status is allowed.booleanChecks if the read operation for the normalized measure is allowed.booleanIndicates whether the read operation for the satisfied status is allowed.booleanDetermines whether the write operation for the completion status is allowed.booleanChecks whether the write operation for the normalized measure is enabled.booleanDetermines whether the write operation for the satisfied status is allowed.voidsetReadCompletionStatus(boolean readCompletionStatus) Sets the read capability for the completion status associated with this Scorm2004ObjectiveMapping object.voidsetReadNormalizedMeasure(boolean readNormalizedMeasure) Sets the read capability for the normalized measure associated with this Scorm2004ObjectiveMapping object.voidsetReadSatisfiedStatus(boolean readSatisfiedStatus) Sets the read satisfied status for this Scorm2004ObjectiveMapping object.voidsetTargetObjectiveID(String targetObjectiveID) Sets the target objective identifier for this object.voidsetWriteCompletionStatus(boolean writeCompletionStatus) Sets the write capability for the completion status associated with this Scorm2004ObjectiveMapping object.voidsetWriteNormalizedMeasure(boolean writeNormalizedMeasure) Sets the write capability for the normalized measure associated with this Scorm2004ObjectiveMapping object.voidsetWriteSatisfiedStatus(boolean writeSatisfiedStatus) Sets the write capability for the satisfied status associated with this Scorm2004ObjectiveMapping object.
-
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 toreadSatisfiedStatus- a boolean indicating whether the "satisfied status" can be readreadNormalizedMeasure- a boolean indicating whether the "normalized measure" can be readwriteSatisfiedStatus- a boolean indicating whether the "satisfied status" can be writtenwriteNormalizedMeasure- a boolean indicating whether the "normalized measure" can be writtenreadCompletionStatus- a boolean indicating whether the "completion status" can be readwriteCompletionStatus- 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
Retrieves the target objective identifier associated with this object.- Returns:
- the target objective identifier as a String
-
setTargetObjectiveID
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
-
hashCode
public int hashCode()
-