com.atlassian.jira.studio.importer
Enum Access

java.lang.Object
  extended by java.lang.Enum<Access>
      extended by com.atlassian.jira.studio.importer.Access
All Implemented Interfaces:
Serializable, Comparable<Access>

public enum Access
extends Enum<Access>

This enum is a replication of AccessLevel without the AccessLevel#NO_ACCESS state. The funny thing is that this plugin1 CL can see the AccessLevel class and redefines it. The enum instance can be passed over to the studio-importer (plugin2) and the plugin's CL will (re-)define the class since it is in no relationship with the plugin1 CL. That means that f.e. two instances of DEVELOPER are created, thus f.e. testing for same instance (==, switch-case) won't work anymore.


Enum Constant Summary
COLLABORATOR
           
DEVELOPER
           
 
Method Summary
static Access valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Access[] 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

DEVELOPER

public static final Access DEVELOPER

COLLABORATOR

public static final Access COLLABORATOR
Method Detail

values

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

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

valueOf

public static Access 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-2012 Atlassian. All Rights Reserved.