com.atlassian.jira.bc.project.version
Enum VersionService.CreateVersionValidationResult.Reason

java.lang.Object
  extended by java.lang.Enum<VersionService.CreateVersionValidationResult.Reason>
      extended by com.atlassian.jira.bc.project.version.VersionService.CreateVersionValidationResult.Reason
All Implemented Interfaces:
Serializable, Comparable<VersionService.CreateVersionValidationResult.Reason>
Enclosing class:
VersionService.CreateVersionValidationResult

public static enum VersionService.CreateVersionValidationResult.Reason
extends Enum<VersionService.CreateVersionValidationResult.Reason>


Enum Constant Summary
BAD_NAME
          Version name is not valid.
BAD_PROJECT
          Project was not specified.
BAD_RELEASE_DATE
          The release date specified was invalid.
BAD_START_DATE
          The start date specified was invalid.
BAD_START_RELEASE_DATE_ORDER
          The start date is after the release date.
DUPLICATE_NAME
          Version name already exists for that project.
FORBIDDEN
          Not allowed to create a version.
VERSION_NAME_TOO_LONG
          The value was beyond specified length
 
Method Summary
static VersionService.CreateVersionValidationResult.Reason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static VersionService.CreateVersionValidationResult.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

FORBIDDEN

public static final VersionService.CreateVersionValidationResult.Reason FORBIDDEN
Not allowed to create a version.


BAD_PROJECT

public static final VersionService.CreateVersionValidationResult.Reason BAD_PROJECT
Project was not specified.


BAD_NAME

public static final VersionService.CreateVersionValidationResult.Reason BAD_NAME
Version name is not valid.


DUPLICATE_NAME

public static final VersionService.CreateVersionValidationResult.Reason DUPLICATE_NAME
Version name already exists for that project.


BAD_START_DATE

public static final VersionService.CreateVersionValidationResult.Reason BAD_START_DATE
The start date specified was invalid.

Since:
v6.0

BAD_RELEASE_DATE

public static final VersionService.CreateVersionValidationResult.Reason BAD_RELEASE_DATE
The release date specified was invalid.


BAD_START_RELEASE_DATE_ORDER

public static final VersionService.CreateVersionValidationResult.Reason BAD_START_RELEASE_DATE_ORDER
The start date is after the release date.

Since:
v6.0

VERSION_NAME_TOO_LONG

public static final VersionService.CreateVersionValidationResult.Reason VERSION_NAME_TOO_LONG
The value was beyond specified length

Method Detail

values

public static VersionService.CreateVersionValidationResult.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 (VersionService.CreateVersionValidationResult.Reason c : VersionService.CreateVersionValidationResult.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 VersionService.CreateVersionValidationResult.Reason 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 © 2002-2014 Atlassian. All Rights Reserved.