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

public final class RollupConditions extends Object implements Serializable
Represents a set of conditions that control when a rollup rule should apply. Rollup conditions define specific criteria based on the statuses of child activities, such as completion, satisfaction, and other properties that affect the rollup logic.

Conditions can be combined based on the logic defined in conditionCombination, allowing multiple criteria to be evaluated together.

See Also:
  • Constructor Details

    • RollupConditions

      public RollupConditions()
      Default constructor for the RollupConditions class.

      This no-argument constructor initializes an instance of the RollupConditions class without setting any fields or performing any specific actions. It can be used to create an empty instance of the class for further configuration or use.

  • Method Details

    • getRollupConditionList

      public List<RollupCondition> getRollupConditionList()
      Retrieves the list of rollup conditions associated with this instance. Each rollup condition defines a specific criterion, such as completion or satisfaction status, that determines whether a rollup rule should be applied.
      Returns:
      a list of RollupCondition objects representing the rollup conditions.
    • setRollupConditionList

      public void setRollupConditionList(List<RollupCondition> rollupConditionList)
      Sets the list of rollup conditions for this instance. The provided list contains individual conditions that define specific criteria, such as completion or satisfaction status, which determine whether the rollup logic should be applied.
      Parameters:
      rollupConditionList - the list of RollupCondition objects to set, representing the criteria for applying the rollup rule.
    • getConditionCombination

      public String getConditionCombination()
      Retrieves the logical combination of conditions associated with this instance. The combination specifies how the individual rollup conditions within the list are evaluated together to determine the overall rule's application.
      Returns:
      a string representing the logical combination of rollup conditions.
    • setConditionCombination

      public void setConditionCombination(String conditionCombination)
      Sets the logical combination of rollup conditions for this instance. The combination defines how individual rollup conditions are evaluated together to determine the overall application's rule logic.
      Parameters:
      conditionCombination - the logical combination of rollup conditions, specified as a string representation (e.g., "ALL", "ANY", etc.).
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object