Class VerdictCategory
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<VerdictCategory>
-
- com.sonyericsson.hudson.plugins.gerrit.trigger.VerdictCategory
-
- All Implemented Interfaces:
Describable<VerdictCategory>
public class VerdictCategory extends AbstractDescribableImpl<VerdictCategory>
A verdict category for setting comments in Gerrit, i.e. code-review, verify- Author:
- Tomas Westling <tomas.westling@sonymobile.com>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VerdictCategory.VerdictCategoryDescriptor
The Descriptor for a VerdictCategory.
-
Constructor Summary
Constructors Constructor Description VerdictCategory(String verdictValue, String verdictDescription)
Standard constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VerdictCategory
createVerdictCategoryFromJSON(net.sf.json.JSONObject obj)
Creates a VerdictCategory from a JSONObject.String
getVerdictDescription()
Standard getter for the description.String
getVerdictValue()
Standard getter for the value.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
getVerdictValue
public String getVerdictValue()
Standard getter for the value.- Returns:
- the value.
-
getVerdictDescription
public String getVerdictDescription()
Standard getter for the description.- Returns:
- the description.
-
createVerdictCategoryFromJSON
public static VerdictCategory createVerdictCategoryFromJSON(net.sf.json.JSONObject obj)
Creates a VerdictCategory from a JSONObject.- Parameters:
obj
- the JSONObject.- Returns:
- a VerdictCategory.
-
-