Class StringValue
- java.lang.Object
-
- org.jenkinsci.plugins.benchmark.results.TestGroup
-
- org.jenkinsci.plugins.benchmark.results.TestValue
-
- org.jenkinsci.plugins.benchmark.results.StringValue
-
- Direct Known Subclasses:
StringCondensed
public class StringValue extends TestValue
Holds the information for boolean test result- Since:
- 5/10/2017
- Author:
- Daniel Mercier
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jenkinsci.plugins.benchmark.results.TestValue
TestValue.ValueType
-
Nested classes/interfaces inherited from class org.jenkinsci.plugins.benchmark.results.TestGroup
TestGroup.ClassType
-
-
Field Summary
-
Fields inherited from class org.jenkinsci.plugins.benchmark.results.TestValue
FAILED_STATE_COLOR, group, PASSED_STATE_COLOR, properties, type, unit
-
Fields inherited from class org.jenkinsci.plugins.benchmark.results.TestGroup
ctype, description, groupHash, groups, name, parent, thresholds
-
-
Constructor Summary
Constructors Constructor Description StringValue(TestGroup parent, String group, String name)
StringValue(TestGroup parent, String group, String name, String unit)
StringValue(TestGroup parent, String group, String name, String description, String unit)
StringValue(TestGroup parent, String group, String name, String description, String unit, TestGroup.ClassType ctype)
StringValue(TestGroup parent, String group, String name, String unit, TestGroup.ClassType ctype)
StringValue(TestGroup parent, String name, String unit, TestGroup.ClassType ctype)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonObject
getCondensedJsonObject(int build, int hash)
Create an JSON object with the condensed information of this result [EXPORT CONDENSED]com.google.gson.JsonObject
getJsonObject(int hash)
Get last build result content in Json Object [EXPORT RAW] Works with TestValue getJsonObject()String
getValue()
String
getValue(int build)
String
getValueAsLocaleString(int build, char decimalSeparator)
Return last value as string in locale format [TABLE PAGE][DETAIL PAGE]String
getValueAsString(int build)
Return last value as string in default locale [TABLE PAGE][DETAIL PAGE]Map<Integer,String>
getValues()
void
setValue(int build, String value)
void
setValue(String value)
-
Methods inherited from class org.jenkinsci.plugins.benchmark.results.TestValue
checkThresholdStatus, checkType, convertCondensedParameterJsonObject, convertCondensedResultJsonObject, convertParameterJsonObject, convertResultJsonObject, getColor, getCSVCondensed, getCSVResult, getCSVResultState, getDataAsJsonArray, getFailedState, getFailedState, getGroup, getHTMLCondensed, getHTMLCondensedDetail, getHTMLDetails, getHTMLParameter, getHTMLParameters, getHTMLResult, getHTMLResult, getId, getId, getMessages, getMessages, getNumberOfProperties, getParameterJsonObject, getParameters, getParameters, getProperties, getType, getUnit, isNumeral, outputType, setFailedState, setFailedState, setGroup, setGroup, setId, setId, setMessage, setMessage, setMessages, setMessages, setParameter, setParameter, setParameters, setParameters
-
Methods inherited from class org.jenkinsci.plugins.benchmark.results.TestGroup
addGroup, addThreshold, convertCondensedFileJsonObject, getAllConnectedParameters, getAllConnectedThresholds, getClassType, getConnectedParameters, getConnectedParentParameters, getConnectedParentThresholds, getConnectedThresholds, getDescription, getDescriptions, getFileGroup, getFileHash, getFileSubGroupFullName, getFullName, getGroup, getGroupHash, getName, getNumberOfGroups, getNumberOfThresholds, getParent, getTestGroups, getThreshold, isArray, isParameterGrp, isThresholdGrp
-
-
-
-
Constructor Detail
-
StringValue
public StringValue(TestGroup parent, String group, String name, String description, String unit)
-
StringValue
public StringValue(TestGroup parent, String name, String unit, TestGroup.ClassType ctype)
-
StringValue
public StringValue(TestGroup parent, String group, String name, String unit, TestGroup.ClassType ctype)
-
-
Method Detail
-
getCondensedJsonObject
public com.google.gson.JsonObject getCondensedJsonObject(int build, int hash)
Create an JSON object with the condensed information of this result [EXPORT CONDENSED]- Overrides:
getCondensedJsonObject
in classTestValue
- Parameters:
build
- Build numberhash
- Result hash- Returns:
- JSON object
-
getJsonObject
public com.google.gson.JsonObject getJsonObject(int hash)
Get last build result content in Json Object [EXPORT RAW] Works with TestValue getJsonObject()- Overrides:
getJsonObject
in classTestValue
- Parameters:
hash
- Result hash- Returns:
- Json object
-
getValueAsString
public String getValueAsString(int build)
Return last value as string in default locale [TABLE PAGE][DETAIL PAGE]- Overrides:
getValueAsString
in classTestValue
- Parameters:
build
- Build number- Returns:
- String of value
-
getValueAsLocaleString
public String getValueAsLocaleString(int build, char decimalSeparator)
Return last value as string in locale format [TABLE PAGE][DETAIL PAGE]- Overrides:
getValueAsLocaleString
in classTestValue
- Parameters:
build
- Build numberdecimalSeparator
- Decimal separator- Returns:
- String of value
-
setValue
public void setValue(String value)
-
setValue
public void setValue(int build, String value)
-
getValue
public String getValue()
-
getValue
public String getValue(int build)
-
-