java.lang.Object
hudson.views.ListViewColumn
io.jenkins.plugins.coverage.model.visualization.dashboard.CoverageColumn
Alle implementierten Schnittstellen:
ExtensionPoint, Describable<ListViewColumn>

public class CoverageColumn extends ListViewColumn
Dashboard column model which represents coverage metrics of different coverage types.
Autor:
Florian Orendi
  • Konstruktordetails Linksymbol

    • CoverageColumn Linksymbol

      @DataBoundConstructor public CoverageColumn()
      Empty constructor.
  • Methodendetails Linksymbol

    • getColumnName Linksymbol

      public String getColumnName()
    • setColumnName Linksymbol

      @DataBoundSetter public void setColumnName(String columnName)
      Sets the display name of the column.
      Parameter:
      columnName - The name of the column
    • getCoverageMetric Linksymbol

      public String getCoverageMetric()
    • setCoverageType Linksymbol

      @DataBoundSetter public void setCoverageType(String coverageType)
      Defines which coverage type should be shown in the column.
      Parameter:
      coverageType - The type to be shown
    • getCoverageType Linksymbol

      public String getCoverageType()
    • setCoverageMetric Linksymbol

      @DataBoundSetter public void setCoverageMetric(String coverageMetric)
      Defines which coverage metric should be shown in the column.
      Parameter:
      coverageMetric - The coverage metric to be shown
    • getCoverageText Linksymbol

      public String getCoverageText(Job<?,?> job)
      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 Linksymbol

      public Optional<CoveragePercentage> getCoverageValue(Job<?,?> job)
      Provides the coverage value of the selected coverage type and metric.
      Parameter:
      job - The processed job
      Gibt zurück:
      the coverage percentage
    • getDisplayColors Linksymbol

      public ColorProvider.DisplayColors getDisplayColors(Job<?,?> job, Optional<CoveragePercentage> coverage)
      Provides the line color for representing the passed coverage value.
      Parameter:
      job - The processed job
      coverage - The coverage value as percentage
      Gibt zurück:
      the line color as hex string
    • getRelativeCoverageUrl Linksymbol

      public String getRelativeCoverageUrl(Job<?,?> job)
      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 Linksymbol

      public String getBackgroundColorFillPercentage(String percentage)
      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 Linksymbol

      public CoverageColumnType getSelectedCoverageColumnType()