com.sonyericsson.jenkins.plugins.bfa.model.indication
Enum BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId

java.lang.Object
  extended by java.lang.Enum<BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId>
      extended by 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
LAST_BUILD
          Last build.
LAST_FAILED_BUILD
          Last failed build.
LAST_SUCCESSFUL_BUILD
          Last successful build.
LAST_UNSUCCESSFUL_BUILD
          Last unsuccessful build.
 
Method Summary
static BuildLogIndication.BuildLogIndicationDescriptor.StringBuildId fromString(String str)
          Returns a StringBuildId based on a given string.
abstract  hudson.model.AbstractBuild getBuild(hudson.model.AbstractProject<? extends hudson.model.AbstractProject<?,?>,? extends hudson.model.AbstractBuild<?,?>> 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - 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.

getBuild

public abstract hudson.model.AbstractBuild getBuild(hudson.model.AbstractProject<? extends hudson.model.AbstractProject<?,?>,? extends hudson.model.AbstractBuild<?,?>> project)
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.


Copyright © 2004-2014. All Rights Reserved.