Enum Class RandomizationTiming
java.lang.Object
java.lang.Enum<RandomizationTiming>
dev.jcputney.elearning.parser.input.scorm2004.ims.ss.types.RandomizationTiming
- All Implemented Interfaces:
Serializable,Comparable<RandomizationTiming>,Constable
Enum representing the possible values for
randomizationTiming and
selectionTiming, specifying when randomization and selection of child activities
should occur. The following schema snippet defines the possible values for this type:
<xs:simpleType name = "randomTimingType">
<xs:restriction base = "xs:token">
<xs:enumeration value = "never"/>
<xs:enumeration value = "once"/>
<xs:enumeration value = "onEachNewAttempt"/>
</xs:restriction>
</xs:simpleType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe "never" value specifies that randomization or selection should never occur.The "onEachNewAttempt" value specifies that randomization or selection should occur on each new attempt.The "once" value specifies that randomization or selection should occur once.The "unknown" value is used when the randomization timing type is not specified or is not recognized. -
Method Summary
Modifier and TypeMethodDescriptionstatic RandomizationTimingReturns the enum constant of this class with the specified name.static RandomizationTiming[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEVER
The "never" value specifies that randomization or selection should never occur. -
ONCE
The "once" value specifies that randomization or selection should occur once. -
ON_EACH_NEW_ATTEMPT
The "onEachNewAttempt" value specifies that randomization or selection should occur on each new attempt. -
UNKNOWN
The "unknown" value is used when the randomization timing type is not specified or is not recognized.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-