Class RuleAction
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.ss.sequencing.RuleAction
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the action to be performed if the conditions specified in the rule are met.inthashCode()voidSets the action to be performed if the conditions specified in the sequencing rule are met.
-
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
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
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
-
hashCode
public int hashCode()
-