Enum GradebookService.PointsPossibleValidation
- java.lang.Object
-
- java.lang.Enum<GradebookService.PointsPossibleValidation>
-
- org.sakaiproject.service.gradebook.shared.GradebookService.PointsPossibleValidation
-
- All Implemented Interfaces:
Serializable,Comparable<GradebookService.PointsPossibleValidation>
- Enclosing interface:
- GradebookService
public static enum GradebookService.PointsPossibleValidation extends Enum<GradebookService.PointsPossibleValidation>
An enum for defining valid/invalid information for a points possible/relative weight value for a gradebook item. SeeGradebookService.isPointsPossibleValid(String, Assignment, Double)for usage
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_DECIMALThe points possible/relative weight is invalid because it contains more than 2 decimal placesINVALID_NULL_VALUEThe points possible/relative weight is invalid because it is null and a value is required.INVALID_NUMERIC_VALUEThe points possible/relative weight is invalid because it is a value <= 0VALIDThe points possible/relative weight is valid
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GradebookService.PointsPossibleValidationvalueOf(String name)Returns the enum constant of this type with the specified name.static GradebookService.PointsPossibleValidation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALID
public static final GradebookService.PointsPossibleValidation VALID
The points possible/relative weight is valid
-
INVALID_NULL_VALUE
public static final GradebookService.PointsPossibleValidation INVALID_NULL_VALUE
The points possible/relative weight is invalid because it is null and a value is required.
-
INVALID_NUMERIC_VALUE
public static final GradebookService.PointsPossibleValidation INVALID_NUMERIC_VALUE
The points possible/relative weight is invalid because it is a value <= 0
-
INVALID_DECIMAL
public static final GradebookService.PointsPossibleValidation INVALID_DECIMAL
The points possible/relative weight is invalid because it contains more than 2 decimal places
-
-
Method Detail
-
values
public static GradebookService.PointsPossibleValidation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GradebookService.PointsPossibleValidation c : GradebookService.PointsPossibleValidation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GradebookService.PointsPossibleValidation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-