pt.digitalis.dif.dem.objects.parameters.errors
Enum ParameterErrorType

java.lang.Object
  extended by java.lang.Enum<ParameterErrorType>
      extended by pt.digitalis.dif.dem.objects.parameters.errors.ParameterErrorType
All Implemented Interfaces:
Serializable, Comparable<ParameterErrorType>

public enum ParameterErrorType
extends Enum<ParameterErrorType>

Describes the error that has occurred in a classification type

Author:
Pedro Viegas pviegas@digitalis.pt

Enum Constant Summary
CONSTRAINT
          A constraint has been violated
MISSING
          Required parameter missing
NO_SESSION
          No session was available for the session scoped parameter
NO_USER
          No user in session was available for the user scoped parameter
OTHER
          Another rule has been violated
RULE
          A rule has been violated
VALIDATOR
          A validator has been violated
 
Method Summary
static ParameterErrorType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ParameterErrorType[] 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

CONSTRAINT

public static final ParameterErrorType CONSTRAINT
A constraint has been violated


VALIDATOR

public static final ParameterErrorType VALIDATOR
A validator has been violated


RULE

public static final ParameterErrorType RULE
A rule has been violated


NO_SESSION

public static final ParameterErrorType NO_SESSION
No session was available for the session scoped parameter


MISSING

public static final ParameterErrorType MISSING
Required parameter missing


NO_USER

public static final ParameterErrorType NO_USER
No user in session was available for the user scoped parameter


OTHER

public static final ParameterErrorType OTHER
Another rule has been violated

Method Detail

values

public static ParameterErrorType[] 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 (ParameterErrorType c : ParameterErrorType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ParameterErrorType 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 © 2014 Digitalis Informática Lda. All Rights Reserved.