Package com.google.gerrit.common.data
Enum SubmitRecord.Label.Status
- java.lang.Object
-
- java.lang.Enum<SubmitRecord.Label.Status>
-
- com.google.gerrit.common.data.SubmitRecord.Label.Status
-
- All Implemented Interfaces:
Serializable
,Comparable<SubmitRecord.Label.Status>
- Enclosing class:
- SubmitRecord.Label
public static enum SubmitRecord.Label.Status extends Enum<SubmitRecord.Label.Status>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IMPOSSIBLE
The label is required for submission, but is impossible to complete.MAY
The label may be set, but it's neither necessary for submission nor does it block submission if set.NEED
The label is required for submission, but has not been satisfied.OK
This label provides what is necessary for submission.REJECT
This label prevents the change from being submitted.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubmitRecord.Label.Status
valueOf(String name)
Returns the enum constant of this type with the specified name.static SubmitRecord.Label.Status[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final SubmitRecord.Label.Status OK
This label provides what is necessary for submission.If provided,
SubmitRecord.Label.appliedBy
describes the user account that applied this label to the change.
-
REJECT
public static final SubmitRecord.Label.Status REJECT
This label prevents the change from being submitted.If provided,
SubmitRecord.Label.appliedBy
describes the user account that applied this label to the change.
-
NEED
public static final SubmitRecord.Label.Status NEED
The label is required for submission, but has not been satisfied.
-
MAY
public static final SubmitRecord.Label.Status MAY
The label may be set, but it's neither necessary for submission nor does it block submission if set.
-
IMPOSSIBLE
public static final SubmitRecord.Label.Status IMPOSSIBLE
The label is required for submission, but is impossible to complete. The likely cause is access has not been granted correctly by the project owner or site administrator.
-
-
Method Detail
-
values
public static SubmitRecord.Label.Status[] 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 (SubmitRecord.Label.Status c : SubmitRecord.Label.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubmitRecord.Label.Status 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
-
-