com.atlassian.greenhopper.model.validation
Enum ErrorCollection.Reason

java.lang.Object
  extended by java.lang.Enum<ErrorCollection.Reason>
      extended by com.atlassian.greenhopper.model.validation.ErrorCollection.Reason
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ErrorCollection.Reason>
Enclosing class:
ErrorCollection

public static enum ErrorCollection.Reason
extends java.lang.Enum<ErrorCollection.Reason>

Copied from JIRA's ErrorCollection interface. Ordering implies priority in terms of "definitive-ness".


Enum Constant Summary
FORBIDDEN
          Not allowed to perform function.
NOT_FOUND
          That which you are seeking is not here.
SERVER_ERROR
          We are all broken.
VALIDATION_FAILED
          Data validation failed.
 
Field Summary
 javax.ws.rs.core.Response.Status mappedStatus
           
 
Method Summary
static ErrorCollection.Reason valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ErrorCollection.Reason[] 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

SERVER_ERROR

public static final ErrorCollection.Reason SERVER_ERROR
We are all broken.


FORBIDDEN

public static final ErrorCollection.Reason FORBIDDEN
Not allowed to perform function.


NOT_FOUND

public static final ErrorCollection.Reason NOT_FOUND
That which you are seeking is not here.


VALIDATION_FAILED

public static final ErrorCollection.Reason VALIDATION_FAILED
Data validation failed.

Field Detail

mappedStatus

public final javax.ws.rs.core.Response.Status mappedStatus
Method Detail

values

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

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

valueOf

public static ErrorCollection.Reason valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2007-2012 Atlassian. All Rights Reserved.