org.sakaiproject.service.gradebook.shared
Enum GradebookService.PointsPossibleValidation

java.lang.Object
  extended by java.lang.Enum<GradebookService.PointsPossibleValidation>
      extended by 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. See GradebookService.isPointsPossibleValid(String, Assignment, Double) for usage


Enum Constant Summary
INVALID_DECIMAL
          The points possible/relative weight is invalid because it contains more than 2 decimal places
INVALID_NULL_VALUE
          The points possible/relative weight is invalid because it is null and a value is required.
INVALID_NUMERIC_VALUE
          The points possible/relative weight is invalid because it is a value <= 0
VALID
          The points possible/relative weight is valid
 
Method Summary
static GradebookService.PointsPossibleValidation valueOf(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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null


Copyright © 2003-2013 Sakai Project. All Rights Reserved.