Class ConstrainChoiceConsiderations

java.lang.Object
dev.jcputney.elearning.parser.input.scorm2004.adl.sequencing.ConstrainChoiceConsiderations
All Implemented Interfaces:
Serializable

public final class ConstrainChoiceConsiderations extends Object implements 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 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. Both preventActivation and constrainChoice attributes 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

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

      public int hashCode()
      Overrides:
      hashCode in class Object