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

public final class RuleAction extends Object implements Serializable
Represents the action to perform if the conditions specified in a sequencing rule are met. Rule actions determine the sequencing behavior for the activity, such as enabling, disabling, hiding, or skipping an activity.

Actions are only executed if the conditions in the rule's RuleConditions are met.

See Also:
  • Constructor Details

    • RuleAction

      public RuleAction()
      Default constructor for the RuleAction class.

      This constructor initializes the RuleAction object without any specific values. It is primarily used to create an instance of RuleAction with default settings.

  • Method Details

    • getAction

      public String getAction()
      Retrieves the action to be performed if the conditions specified in the rule are met.
      Returns:
      the action associated with the rule, such as "skip", "disabled", "hiddenFromChoice", or "stopForwardTraversal"
    • setAction

      public void setAction(String action)
      Sets the action to be performed if the conditions specified in the sequencing rule are met.
      Parameters:
      action - the action to set. Possible values include "skip", "disabled", "hiddenFromChoice", or "stopForwardTraversal", which determine the behavior of the rule.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object