Enum Class ScoreRollupType

java.lang.Object
java.lang.Enum<ScoreRollupType>
dev.jcputney.elearning.parser.input.lom.properties.ScoreRollupType
All Implemented Interfaces:
Serializable, Comparable<ScoreRollupType>, Constable

public enum ScoreRollupType extends Enum<ScoreRollupType>

Enum representing the scoreRollupType simple type.

The following schema snippet defines the possible values:


 <xs:simpleType name="scoreRollupType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="score provided by course" />
     <xs:enumeration value="average score of all units" />
     <xs:enumeration value="average score of all units with scores" />
     <xs:enumeration value="fixed average" />
   </xs:restriction>
 </xs:simpleType>
 
  • Enum Constant Details

    • SCORE_PROVIDED_BY_COURSE

      public static final ScoreRollupType SCORE_PROVIDED_BY_COURSE
      The course provides the score rollup type.
    • AVERAGE_SCORE_OF_ALL_UNITS

      public static final ScoreRollupType AVERAGE_SCORE_OF_ALL_UNITS
      The score rollup type is the average score of all units.
    • AVERAGE_SCORE_OF_ALL_UNITS_WITH_SCORES

      public static final ScoreRollupType AVERAGE_SCORE_OF_ALL_UNITS_WITH_SCORES
      The score rollup type is the average score of all units with scores.
    • FIXED_AVERAGE

      public static final ScoreRollupType FIXED_AVERAGE
      The score rollup type is a fixed average.
  • Method Details

    • values

      public static ScoreRollupType[] 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

      public static ScoreRollupType valueOf(String name)
      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 name
      NullPointerException - if the argument is null