Package com.atlassian.bamboo.core
Enum Class BambooEntityType
- All Implemented Interfaces:
Serializable,Comparable<BambooEntityType>,Constable
An enum containing types of Bamboo entities which can be assigned their unique
BambooEntityOid.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull BambooEntityTypefromTypeId(int typeId) Obtains an enum constant ofBambooEntityTypeby type ID.intReturns the type ID of this enum constant.static BambooEntityTypeReturns the enum constant of this class with the specified name.static BambooEntityType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHAIN
-
STAGE
-
JOB
-
REPOSITORY
-
CHAIN_BRANCH
-
JOB_BRANCH
-
TASK
-
PROJECT
-
ARTIFACT_DEFINITION
-
DEPLOYMENT_PROJECT
-
SHARED_CREDENTIAL
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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
Obtains an enum constant ofBambooEntityTypeby type ID.- Parameters:
typeId- unique type ID; not related toEnum.ordinal()- Returns:
BambooEntityTypeinstance assigned to the given ID.- Throws:
IllegalArgumentException- if noBambooEntityTypewith the given ID could be found.
-