Class VerdictCategory
java.lang.Object
hudson.model.AbstractDescribableImpl<VerdictCategory>
com.sonyericsson.hudson.plugins.gerrit.trigger.VerdictCategory
- All Implemented Interfaces:
Describable<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 ClassesModifier and TypeClassDescriptionstatic classThe Descriptor for a VerdictCategory. -
Constructor Summary
ConstructorsConstructorDescriptionVerdictCategory(String verdictValue, String verdictDescription) Standard constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic VerdictCategorycreateVerdictCategoryFromJSON(net.sf.json.JSONObject obj) Creates a VerdictCategory from a JSONObject.Standard getter for the description.Standard getter for the value.Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
VerdictCategory
Standard constructor.- Parameters:
verdictValue- the value in Gerrit for the verdict category.verdictDescription- the text describing the verdict category.
-
-
Method Details
-
getVerdictValue
Standard getter for the value.- Returns:
- the value.
-
getVerdictDescription
Standard getter for the description.- Returns:
- the description.
-
createVerdictCategoryFromJSON
Creates a VerdictCategory from a JSONObject.- Parameters:
obj- the JSONObject.- Returns:
- a VerdictCategory.
-