Class ConstrainChoiceConsiderations
java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.adl.sequencing.ConstrainChoiceConsiderations
- All Implemented Interfaces:
Serializable
Represents the constrainedChoiceConsiderationsType complex type, defining choice and activation
restrictions. The following schema snippet shows the structure of the
constrainedChoiceConsiderationsType element:
<xs:complexType name = "constrainChoiceConsiderationsType">
<xs:attribute name = "preventActivation" default = "false" type = "xs:boolean"/>
<xs:attribute name = "constrainChoice" default = "false" type = "xs:boolean"/>
</xs:complexType>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for the ConstrainChoiceConsiderations class. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanChecks whether choice is constrained based on the current state of the object.booleanIndicates whether activation is prevented.voidsetConstrainChoice(boolean constrainChoice) Sets whether the choice should be constrained.voidsetPreventActivation(boolean preventActivation) Sets whether to prevent activation.
-
Constructor Details
-
ConstrainChoiceConsiderations
public ConstrainChoiceConsiderations()Default constructor for the ConstrainChoiceConsiderations class. This constructor initializes a new instance of the class without setting any specific property values. BothpreventActivationandconstrainChoiceattributes are initialized to their default values as specified in the schema definition.
-
-
Method Details
-
isPreventActivation
public boolean isPreventActivation()Indicates whether activation is prevented.- Returns:
- true if activation is prevented, false otherwise.
-
setPreventActivation
public void setPreventActivation(boolean preventActivation) Sets whether to prevent activation.- Parameters:
preventActivation- true to prevent activation, false otherwise.
-
isConstrainChoice
public boolean isConstrainChoice()Checks whether choice is constrained based on the current state of the object.- Returns:
- true if choice is constrained, false otherwise.
-
setConstrainChoice
public void setConstrainChoice(boolean constrainChoice) Sets whether the choice should be constrained.- Parameters:
constrainChoice- true if the choice is to be constrained, false otherwise.
-
equals
-
hashCode
public int hashCode()
-