Enum Class BambooYamlVersion
java.lang.Object
java.lang.Enum<BambooYamlVersion>
com.atlassian.bamboo.configuration.external.yaml.BambooYamlVersion
- All Implemented Interfaces:
Serializable
,Comparable<BambooYamlVersion>
,Constable
Version of the Bamboo simplified YAML format.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull BambooYamlVersion
fromVersion
(@NotNull String version) Convert the given string value to an instance of this enum.The string value which is to be used in the YAML document to determine the YAML format version.static BambooYamlVersion
Returns the enum constant of this class with the specified name.static BambooYamlVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VERSION_1
First version, supporting only plans with very limited configuration options. -
VERSION_2
Second version, supporting plans, deployments, plan permissions and deployment permissions.
-
-
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
-
getVersion
The string value which is to be used in the YAML document to determine the YAML format version. -
fromVersion
@NotNull public static @NotNull BambooYamlVersion fromVersion(@NotNull @NotNull String version) throws YamlSpecsValidationException Convert the given string value to an instance of this enum. The string should correspond to the ones obtained throughgetVersion()
.- Throws:
YamlSpecsValidationException
- if the given string is invalid
-