Klasse CoverageMetricColumn
java.lang.Object
hudson.views.ListViewColumn
io.jenkins.plugins.coverage.metrics.steps.CoverageMetricColumn
- Alle implementierten Schnittstellen:
ExtensionPoint
,Describable<ListViewColumn>
Dashboard column model which represents coverage metrics of different coverage types.
- Autor:
- Florian Orendi
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic class
Descriptor of the column.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Feldübersicht
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungformatMetric
(edu.hm.hafner.coverage.Value value) Returns a formatted and localized String representation of the specified value (without metric).formatValue
(edu.hm.hafner.coverage.Value value) Returns a formatted and localized String representation of the specified value (without metric).List
<edu.hm.hafner.coverage.Value> getAllValues
(Job<?, ?> job) Returns all available values for the specified baseline.getBackgroundColorFillPercentage
(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.Optional
<? extends edu.hm.hafner.coverage.Value> getCoverageValue
(Job<?, ?> job) Provides the coverage value of the selected coverage type and metric.getDisplayColors
(Job<?, ?> job, Optional<? extends edu.hm.hafner.coverage.Value> coverage) Provides the line color for representing the passed coverage value.edu.hm.hafner.coverage.Metric
getRelativeCoverageUrl
(Job<?, ?> job) Provides the relative URL which can be used for accessing the coverage report.void
setBaseline
(Baseline baseline) Sets the baseline of the values that will be shown.void
setColumnName
(String columnName) Sets the display name of the column.void
setMetric
(edu.hm.hafner.coverage.Metric metric) Sets the metric of the values that will be shown.Von Klasse geerbte Methoden hudson.views.ListViewColumn
all, createDefaultInitialColumnList, createDefaultInitialColumnList, createDefaultInitialColumnList, getColumnCaption, getDescriptor, shownByDefault
-
Konstruktordetails
-
CoverageMetricColumn
@DataBoundConstructor public CoverageMetricColumn()Creates a new column.
-
-
Methodendetails
-
getFormatter
-
setColumnName
Sets the display name of the column.- Parameter:
columnName
- the human-readable name of the column
-
getColumnName
-
setBaseline
Sets the baseline of the values that will be shown.- Parameter:
baseline
- the baseline to use
-
getBaseline
-
setMetric
@DataBoundSetter public void setMetric(edu.hm.hafner.coverage.Metric metric) Sets the metric of the values that will be shown.- Parameter:
metric
- the metric to use
-
getMetric
public edu.hm.hafner.coverage.Metric getMetric() -
getAllValues
-
formatMetric
Returns a formatted and localized String representation of the specified value (without metric).- Parameter:
value
- the value to format- Gibt zurück:
- the value formatted as a string
-
formatValue
Returns a formatted and localized String representation of the specified value (without metric).- Parameter:
value
- the value to format- Gibt zurück:
- the value formatted as a string
-
getCoverageText
-
getCoverageValue
-
getDisplayColors
public ColorProvider.DisplayColors getDisplayColors(Job<?, ?> job, Optional<? extends edu.hm.hafner.coverage.Value> coverage) Provides the line color for representing the passed coverage value.- Parameter:
job
- the job in the current rowcoverage
- The coverage value as percentage- Gibt zurück:
- the line color as hex string
-
getRelativeCoverageUrl
-
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
-