Class RuleConditions
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.ims.ss.sequencing.RuleConditions
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the condition combination type associated with this set of rule conditions.Retrieves the list of rule conditions associated with this instance.inthashCode()voidsetConditionCombination(ConditionCombinationType conditionCombination) Sets the condition combination type for the current instance.voidsetRuleConditionList(List<RuleCondition> ruleConditionList) Sets the list of rule conditions associated with this instance.
-
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
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
RuleConditionobjects representing the individual conditions for this set of rules, or an empty list if no conditions are defined
-
setRuleConditionList
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 ofRuleConditionobjects representing the individual conditions for the sequencing rule. If set tonull, this clears the current list of rule conditions.
-
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
ConditionCombinationTypeenum, which could beALL,ANY, orUNKNOWN.
-
setConditionCombination
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 aConditionCombinationTypeenum. Possible values includeALL,ANY, andUNKNOWN.
-
equals
-
hashCode
public int hashCode()
-