Class FoundFailureCause
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.model.FoundFailureCause
- All Implemented Interfaces:
IFailureCauseMetricData
Found Failure Cause of a build.
- Author:
- Tomas Westling <tomas.westling@sonymobile.com>
-
Constructor Summary
ConstructorDescriptionFoundFailureCause
(FailureCause originalCause) Constructor used when converting old failureCauses to foundFailureCauses.FoundFailureCause
(FailureCause originalCause, List<FoundIndication> indications) Standard constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addIndication
(FoundIndication indication) Deprecated.Prefer adding indications via the constructor.void
addIndications
(List<FoundIndication> foundIndications) Deprecated.Prefer adding indications via the constructor.Getter for the categories.Getter for the description.getId()
Getter for the id.Getter for the list of found indications.getName()
Getter for the name.
-
Constructor Details
-
FoundFailureCause
Constructor used when converting old failureCauses to foundFailureCauses.- Parameters:
originalCause
- the original FailureCause.
-
FoundFailureCause
Standard constructor.- Parameters:
originalCause
- the original FailureCause.indications
- the indications found that imply this cause.
-
-
Method Details
-
getId
Getter for the id.- Returns:
- the id.
-
getName
Getter for the name.- Specified by:
getName
in interfaceIFailureCauseMetricData
- Returns:
- the name.
-
getDescription
Getter for the description.- Returns:
- the description.
-
getCategories
Getter for the categories.- Specified by:
getCategories
in interfaceIFailureCauseMetricData
- Returns:
- the categories.
-
getIndications
Getter for the list of found indications.- Returns:
- the list.
-
addIndication
Deprecated.Prefer adding indications via the constructor. Indication added with this method do not participate in the building of the formatted description.Adds a found indication to the list.- Parameters:
indication
- the indication to add.
-
addIndications
Deprecated.Prefer adding indications via the constructor. Indication added with this method do not participate in the building of the formatted description.Adds a list of FoundIndications to this cause.- Parameters:
foundIndications
- the list of FoundIndications to add.
-