Enum Class BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId
java.lang.Object
java.lang.Enum<BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId>
com.sonyericsson.jenkins.plugins.bfa.model.indication.BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId
- All Implemented Interfaces:
Serializable
,Comparable<BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId>
,Constable
- Enclosing class:
- BuildLogIndication.BuildLogIndicationDescriptor
public static enum BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId
extends Enum<BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId>
An identifier for a non-numeric build for a given project,
like "last build" and "last failed build".
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionLast build.Last failed build.Last successful build.Last unsuccessful build. -
Method Summary
Modifier and TypeMethodDescriptionfromString
(String str) Returns a StringBuildId based on a given string.abstract Run
Returns a build of a given project based on this StringBuildId.getName()
Returns the name of this StringBuildId.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LAST_BUILD
Last build. -
LAST_FAILED_BUILD
Last failed build. -
LAST_UNSUCCESSFUL_BUILD
public static final BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId LAST_UNSUCCESSFUL_BUILDLast unsuccessful build. -
LAST_SUCCESSFUL_BUILD
public static final BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId LAST_SUCCESSFUL_BUILDLast successful build.
-
-
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
-
getName
Returns the name of this StringBuildId.- Returns:
- the name of this StringBuildId.
-
fromString
Returns a StringBuildId based on a given string.- Parameters:
str
- a string.- Returns:
- the StringBuildId whose name equals str, if such a StringBuildId exists; otherwise, return null.
-
getBuild
Returns a build of a given project based on this StringBuildId.- Parameters:
project
- a project.- Returns:
- the build of the given project based on this StringBuildId.
-