public enum ScopeType extends Enum<ScopeType>
| Enum Constant and Description |
|---|
GLOBAL |
PROJECT |
REPOSITORY |
| Modifier and Type | Method and Description |
|---|---|
static ScopeType |
fromId(int id) |
int |
getId() |
static ScopeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScopeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScopeType GLOBAL
public static final ScopeType PROJECT
public static final ScopeType REPOSITORY
public static ScopeType[] values()
for (ScopeType c : ScopeType.values()) System.out.println(c);
public static ScopeType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull public static ScopeType fromId(int id)
id - the unique identifier for the type (not its Enum.ordinal())IllegalArgumentException - if the specified ID does not match a typepublic int getId()
Copyright © 2023 Atlassian. All rights reserved.