Enum 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>
- 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".
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LAST_BUILD
Last build.LAST_FAILED_BUILD
Last failed build.LAST_SUCCESSFUL_BUILD
Last successful build.LAST_UNSUCCESSFUL_BUILD
Last unsuccessful build.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId
fromString(String str)
Returns a StringBuildId based on a given string.abstract Run
getBuild(Job<? extends Job<?,?>,? extends Run<?,?>> project)
Returns a build of a given project based on this StringBuildId.String
getName()
Returns the name of this StringBuildId.static BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId
valueOf(String name)
Returns the enum constant of this type with the specified name.static BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LAST_BUILD
public static final BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId LAST_BUILD
Last build.
-
LAST_FAILED_BUILD
public static final BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId LAST_FAILED_BUILD
Last failed build.
-
LAST_UNSUCCESSFUL_BUILD
public static final BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId LAST_UNSUCCESSFUL_BUILD
Last unsuccessful build.
-
LAST_SUCCESSFUL_BUILD
public static final BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId LAST_SUCCESSFUL_BUILD
Last successful build.
-
-
Method Detail
-
values
public static BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId[] 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 (BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId c : BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId 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
-
getName
public String getName()
Returns the name of this StringBuildId.- Returns:
- the name of this StringBuildId.
-
fromString
public static BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId fromString(String str)
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.
-
-