Enum JiraIssueLinkType
- java.lang.Object
-
- java.lang.Enum<JiraIssueLinkType>
-
- com.atlassian.bamboo.jira.jiraissues.JiraIssueLinkType
-
- All Implemented Interfaces:
Serializable
,Comparable<JiraIssueLinkType>
@PublicApi public enum JiraIssueLinkType extends Enum<JiraIssueLinkType>
Represents a type of link between a build result and a jira issue
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUILD_CAUSES
BUILD_FIXES
BUILD_RELATES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JiraIssueLinkType
fromInt(int intValue)
Get JiraIssueLinkType object by its int value.String
getLinkDescription()
Description of link for UI.String
getLinkType()
Returns a string representation of the link typeint
intValue()
Return integer representing this enum.static JiraIssueLinkType
valueOf(String name)
Returns the enum constant of this type with the specified name.static JiraIssueLinkType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BUILD_RELATES
public static final JiraIssueLinkType BUILD_RELATES
-
BUILD_FIXES
public static final JiraIssueLinkType BUILD_FIXES
-
BUILD_CAUSES
public static final JiraIssueLinkType BUILD_CAUSES
-
-
Method Detail
-
values
public static JiraIssueLinkType[] 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 (JiraIssueLinkType c : JiraIssueLinkType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JiraIssueLinkType 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
-
getLinkType
public String getLinkType()
Returns a string representation of the link type- Returns:
- String representation of the link type
-
getLinkDescription
public String getLinkDescription()
Description of link for UI.- Returns:
- Description of link
-
intValue
public int intValue()
Return integer representing this enum.- Since:
- 4.1
-
fromInt
public static JiraIssueLinkType fromInt(int intValue)
Get JiraIssueLinkType object by its int value.- Since:
- 4.1
-
-