Package com.atlassian.bamboo.core
Enum BambooEntityType
- java.lang.Object
-
- java.lang.Enum<BambooEntityType>
-
- com.atlassian.bamboo.core.BambooEntityType
-
- All Implemented Interfaces:
Serializable
,Comparable<BambooEntityType>
public enum BambooEntityType extends Enum<BambooEntityType>
An enum containing types of Bamboo entities which can be assigned their uniqueBambooEntityOid
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARTIFACT_DEFINITION
CHAIN
CHAIN_BRANCH
DEPLOYMENT_PROJECT
JOB
JOB_BRANCH
PROJECT
REPOSITORY
SHARED_CREDENTIAL
STAGE
TASK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull BambooEntityType
fromTypeId(int typeId)
Obtains an enum constant ofBambooEntityType
by type ID.int
getTypeId()
Returns the type ID of this enum constant.static BambooEntityType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BambooEntityType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHAIN
public static final BambooEntityType CHAIN
-
STAGE
public static final BambooEntityType STAGE
-
JOB
public static final BambooEntityType JOB
-
REPOSITORY
public static final BambooEntityType REPOSITORY
-
CHAIN_BRANCH
public static final BambooEntityType CHAIN_BRANCH
-
JOB_BRANCH
public static final BambooEntityType JOB_BRANCH
-
TASK
public static final BambooEntityType TASK
-
PROJECT
public static final BambooEntityType PROJECT
-
ARTIFACT_DEFINITION
public static final BambooEntityType ARTIFACT_DEFINITION
-
DEPLOYMENT_PROJECT
public static final BambooEntityType DEPLOYMENT_PROJECT
-
SHARED_CREDENTIAL
public static final BambooEntityType SHARED_CREDENTIAL
-
-
Method Detail
-
values
public static BambooEntityType[] 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 (BambooEntityType c : BambooEntityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BambooEntityType 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 nameNullPointerException
- if the argument is null
-
getTypeId
public int getTypeId()
Returns the type ID of this enum constant. The ID is unique for each element, but is not related toEnum.ordinal
.
-
fromTypeId
@NotNull public static @NotNull BambooEntityType fromTypeId(int typeId)
Obtains an enum constant ofBambooEntityType
by type ID.- Parameters:
typeId
- unique type ID; not related toEnum.ordinal()
- Returns:
BambooEntityType
instance assigned to the given ID.- Throws:
IllegalArgumentException
- if noBambooEntityType
with the given ID could be found.
-
-