com.atlassian.jira.studio.importer
Enum Access
java.lang.Object
java.lang.Enum<Access>
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.
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. |
DEVELOPER
public static final Access DEVELOPER
COLLABORATOR
public static final Access COLLABORATOR
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.