Klasse CoverageColumn
java.lang.Object
hudson.views.ListViewColumn
io.jenkins.plugins.coverage.model.visualization.dashboard.CoverageColumn
- Alle implementierten Schnittstellen:
ExtensionPoint
,Describable<ListViewColumn>
Dashboard column model which represents coverage metrics of different coverage types.
- Autor:
- Florian Orendi
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
Descriptor of the column.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Feldübersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetBackgroundColorFillPercentage
(String percentage) Transforms percentages with a ',' decimal separator to a representation using a '.' in order to use the percentage for styling HTML tags.getCoverageText
(Job<?, ?> job) Provides a text which represents the coverage percentage of the selected coverage type and metric.getCoverageValue
(Job<?, ?> job) Provides the coverage value of the selected coverage type and metric.getDisplayColors
(Job<?, ?> job, Optional<CoveragePercentage> coverage) Provides the line color for representing the passed coverage value.getRelativeCoverageUrl
(Job<?, ?> job) Provides the relative URL which can be used for accessing the coverage report.void
setColumnName
(String columnName) Sets the display name of the column.void
setCoverageMetric
(String coverageMetric) Defines which coverage metric should be shown in the column.void
setCoverageType
(String coverageType) Defines which coverage type should be shown in the column.Von Klasse geerbte Methoden hudson.views.ListViewColumn
all, createDefaultInitialColumnList, createDefaultInitialColumnList, createDefaultInitialColumnList, getColumnCaption, getDescriptor, shownByDefault
-
Konstruktordetails
-
CoverageColumn
@DataBoundConstructor public CoverageColumn()Empty constructor.
-
-
Methodendetails
-
getColumnName
-
setColumnName
Sets the display name of the column.- Parameter:
columnName
- The name of the column
-
getCoverageMetric
-
setCoverageType
Defines which coverage type should be shown in the column.- Parameter:
coverageType
- Thetype
to be shown
-
getCoverageType
-
setCoverageMetric
Defines which coverage metric should be shown in the column.- Parameter:
coverageMetric
- The coverage metric to be shown
-
getCoverageText
Provides a text which represents the coverage percentage of the selected coverage type and metric.- Parameter:
job
- The processed job- Gibt zurück:
- the coverage text
-
getCoverageValue
Provides the coverage value of the selected coverage type and metric.- Parameter:
job
- The processed job- Gibt zurück:
- the coverage percentage
-
getDisplayColors
public ColorProvider.DisplayColors getDisplayColors(Job<?, ?> job, Optional<CoveragePercentage> coverage) Provides the line color for representing the passed coverage value.- Parameter:
job
- The processed jobcoverage
- The coverage value as percentage- Gibt zurück:
- the line color as hex string
-
getRelativeCoverageUrl
Provides the relative URL which can be used for accessing the coverage report.- Parameter:
job
- The processed job- Gibt zurück:
- the relative URL or an empty string when there is no matching URL
-
getBackgroundColorFillPercentage
Transforms percentages with a ',' decimal separator to a representation using a '.' in order to use the percentage for styling HTML tags.- Parameter:
percentage
- The text representation of a percentage- Gibt zurück:
- the formatted percentage string
-
getSelectedCoverageColumnType
-