Class ScoExitActionSpec
java.lang.Object
dev.jcputney.elearning.parser.input.lom.properties.ScoExitActionSpec
- All Implemented Interfaces:
Serializable
Represents the scoExitActionSpec complex type.
The following schema snippet specifies its contents:
<xs:complexType name="scoExitActionSpec">
<xs:all>
<xs:element name="satisfied" type="exitTypesSpec" minOccurs="0" maxOccurs="1" />
<xs:element name="notSatisfied" type="exitTypesSpec" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for the ScoExitActionSpec class.ScoExitActionSpec(ExitTypesSpec satisfied, ExitTypesSpec notSatisfied) Constructs an instance of the ScoExitActionSpec class with specified actions to take based on the satisfaction or non-satisfaction of the condition. -
Method Summary
Modifier and TypeMethodDescriptionbooleanRetrieves the action to take when the SCO is not satisfied.Retrieves the action to take when the SCO is satisfied.inthashCode()voidsetNotSatisfied(ExitTypesSpec notSatisfied) Sets the action to take when the SCO is not satisfied.voidsetSatisfied(ExitTypesSpec satisfied) Updates the action to take when the SCO is satisfied.
-
Constructor Details
-
ScoExitActionSpec
Constructs an instance of the ScoExitActionSpec class with specified actions to take based on the satisfaction or non-satisfaction of the condition.- Parameters:
satisfied- theExitTypesSpecdefining the action to be executed when the condition is satisfiednotSatisfied- theExitTypesSpecdefining the action to be executed when the condition is not satisfied
-
ScoExitActionSpec
public ScoExitActionSpec()Default constructor for the ScoExitActionSpec class. Initializes a new instance of the ScoExitActionSpec class with no specific configuration.
-
-
Method Details
-
getSatisfied
Retrieves the action to take when the SCO is satisfied.- Returns:
- the
ExitTypesSpecrepresenting the satisfied action, or null if not defined
-
setSatisfied
Updates the action to take when the SCO is satisfied.- Parameters:
satisfied- anExitTypesSpecobject representing the set of exit actions to be taken when the SCO is satisfied
-
getNotSatisfied
Retrieves the action to take when the SCO is not satisfied.- Returns:
- the
ExitTypesSpecrepresenting the not satisfied action, or null if not defined
-
setNotSatisfied
Sets the action to take when the SCO is not satisfied.- Parameters:
notSatisfied- anExitTypesSpecobject representing the set of exit actions to be taken when the SCO is not satisfied
-
equals
-
hashCode
public int hashCode()
-