Enum ResponsibilityEntry.RemoveMethod
- java.lang.Object
-
- java.lang.Enum<ResponsibilityEntry.RemoveMethod>
-
- jetbrains.buildServer.responsibility.ResponsibilityEntry.RemoveMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<ResponsibilityEntry.RemoveMethod>
- Enclosing interface:
- ResponsibilityEntry
public static enum ResponsibilityEntry.RemoveMethod extends Enum<ResponsibilityEntry.RemoveMethod>
Represents the method how to remove responsibility.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MANUALLY
Method represents a "sticky" responsibility (TW-10167).WHEN_FIXED
A default method, which removes the responsibility once the problem is fixed (everywhere).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponsibilityEntry.RemoveMethod
from(String methodString)
Returns the enum constant of RemoveMethod with the specified name in lowercase.boolean
isManually()
boolean
isWhenFixed()
static ResponsibilityEntry.RemoveMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResponsibilityEntry.RemoveMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MANUALLY
public static final ResponsibilityEntry.RemoveMethod MANUALLY
Method represents a "sticky" responsibility (TW-10167). Removed only manually.
-
WHEN_FIXED
public static final ResponsibilityEntry.RemoveMethod WHEN_FIXED
A default method, which removes the responsibility once the problem is fixed (everywhere).
-
-
Method Detail
-
values
public static ResponsibilityEntry.RemoveMethod[] 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 (ResponsibilityEntry.RemoveMethod c : ResponsibilityEntry.RemoveMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResponsibilityEntry.RemoveMethod 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
-
isManually
public boolean isManually()
-
isWhenFixed
public boolean isWhenFixed()
-
from
@NotNull public static ResponsibilityEntry.RemoveMethod from(@NotNull String methodString) throws IllegalArgumentException
Returns the enum constant of RemoveMethod with the specified name in lowercase. Used solely in the REST API plugin.- Returns:
- the enum constant with the specified name in lowercase
- Throws:
IllegalArgumentException
-
-