Class ScoExitActionSpec

java.lang.Object
dev.jcputney.elearning.parser.input.lom.properties.ScoExitActionSpec
All Implemented Interfaces:
Serializable

public final class ScoExitActionSpec extends Object implements Serializable

Represents the scoExitActionSpec complex type.

The following schema snippet specifies its contents:


 <xs:complexType name="scoExitActionSpec">
   <xs:all>
     <xs:element name="satisfied" type="exitTypesSpec" minOccurs="0" maxOccurs="1" />
     <xs:element name="notSatisfied" type="exitTypesSpec" minOccurs="0" maxOccurs="1" />
   </xs:all>
 </xs:complexType>
 
See Also:
  • Constructor Details

    • ScoExitActionSpec

      public ScoExitActionSpec(ExitTypesSpec satisfied, ExitTypesSpec notSatisfied)
      Constructs an instance of the ScoExitActionSpec class with specified actions to take based on the satisfaction or non-satisfaction of the condition.
      Parameters:
      satisfied - the ExitTypesSpec defining the action to be executed when the condition is satisfied
      notSatisfied - the ExitTypesSpec defining the action to be executed when the condition is not satisfied
    • ScoExitActionSpec

      public ScoExitActionSpec()
      Default constructor for the ScoExitActionSpec class. Initializes a new instance of the ScoExitActionSpec class with no specific configuration.
  • Method Details

    • getSatisfied

      public ExitTypesSpec getSatisfied()
      Retrieves the action to take when the SCO is satisfied.
      Returns:
      the ExitTypesSpec representing the satisfied action, or null if not defined
    • setSatisfied

      public void setSatisfied(ExitTypesSpec satisfied)
      Updates the action to take when the SCO is satisfied.
      Parameters:
      satisfied - an ExitTypesSpec object representing the set of exit actions to be taken when the SCO is satisfied
    • getNotSatisfied

      public ExitTypesSpec getNotSatisfied()
      Retrieves the action to take when the SCO is not satisfied.
      Returns:
      the ExitTypesSpec representing the not satisfied action, or null if not defined
    • setNotSatisfied

      public void setNotSatisfied(ExitTypesSpec notSatisfied)
      Sets the action to take when the SCO is not satisfied.
      Parameters:
      notSatisfied - an ExitTypesSpec object representing the set of exit actions to be taken when the SCO is not satisfied
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object