com.atlassian.crucible.spi.data
Enum ReviewData.State

java.lang.Object
  extended by java.lang.Enum<ReviewData.State>
      extended by com.atlassian.crucible.spi.data.ReviewData.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ReviewData.State>
Enclosing class:
ReviewData

public static enum ReviewData.State
extends java.lang.Enum<ReviewData.State>

States of a review.

Commenting on a review is only allowed when the review is in draft (Draft and Approval) or open (Review and Summarize).


Enum Constant Summary
Approval
           
Closed
           
Dead
           
Draft
           
Rejected
           
Review
           
Summarize
           
Unknown
           
 
Method Summary
static ReviewData.State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ReviewData.State[] 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

Draft

public static final ReviewData.State Draft

Approval

public static final ReviewData.State Approval

Review

public static final ReviewData.State Review

Summarize

public static final ReviewData.State Summarize

Closed

public static final ReviewData.State Closed

Dead

public static final ReviewData.State Dead

Rejected

public static final ReviewData.State Rejected

Unknown

public static final ReviewData.State Unknown
Method Detail

values

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

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

valueOf

public static ReviewData.State 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