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

public final class RuleConditions extends Object implements Serializable
Represents a set of conditions that must be met for a sequencing rule to apply. Rule conditions define specific criteria, such as completion status or objective measure, that determine whether a rule's action should be executed.

The rule conditions are combined based on the specified combination logic, such as "all" (all conditions must be met) or "any" (at least one condition must be met).

See Also:
  • Constructor Details

    • RuleConditions

      public RuleConditions()
      Default constructor for the RuleConditions class.

      This constructor initializes an instance of the RuleConditions object with default settings. It does not initialize or modify any fields or properties during its execution. This constructor can be used to create a new instance for defining or managing conditions in a sequencing rule.

  • Method Details

    • getRuleConditionList

      public List<RuleCondition> getRuleConditionList()
      Retrieves the list of rule conditions associated with this instance. Each rule condition defines a specific criterion that must be evaluated or met within the context of a sequencing rule.
      Returns:
      a list of RuleCondition objects representing the individual conditions for this set of rules, or an empty list if no conditions are defined
    • setRuleConditionList

      public void setRuleConditionList(List<RuleCondition> ruleConditionList)
      Sets the list of rule conditions associated with this instance. Each rule condition specifies a criterion that must be evaluated or met as part of the sequencing rule.
      Parameters:
      ruleConditionList - a list of RuleCondition objects representing the individual conditions for the sequencing rule. If set to null, this clears the current list of rule conditions.
    • getConditionCombination

      public ConditionCombinationType getConditionCombination()
      Retrieves the condition combination type associated with this set of rule conditions. The condition combination determines whether all conditions must be satisfied, any one condition needs to be satisfied, or if the type is unknown.
      Returns:
      the condition combination type, represented as a ConditionCombinationType enum, which could be ALL, ANY, or UNKNOWN.
    • setConditionCombination

      public void setConditionCombination(ConditionCombinationType conditionCombination)
      Sets the condition combination type for the current instance. The condition combination determines how multiple conditions in a sequencing rule are evaluated, such as requiring all conditions to be met or allowing any one condition to be sufficient.
      Parameters:
      conditionCombination - the condition combination type to set, represented as a ConditionCombinationType enum. Possible values include ALL, ANY, and UNKNOWN.
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object