Klasse ModelValidation

java.lang.Object
io.jenkins.plugins.analysis.core.util.ModelValidation

public class ModelValidation extends Object
Validates all properties of a configuration of a static analysis tool in a job.
Autor:
Ullrich Hafner
  • Konstruktordetails

    • ModelValidation

      public ModelValidation()
      Creates a new descriptor.
  • Methodendetails

    • getAllSeverityFilters

      public ListBoxModel getAllSeverityFilters()
      Returns a model with all available severity filters.
      Gibt zurück:
      a model with all available severity filters
    • getAllTrendChartTypes

      public ListBoxModel getAllTrendChartTypes()
      Returns a model with all available aggregation trend chart positions.
      Gibt zurück:
      a model with all available aggregation trend chart positions
    • getAllJobs

      public ComboBoxModel getAllJobs()
      Returns the model with the possible reference jobs.
      Gibt zurück:
      the model with the possible reference jobs
    • validateJob

      public FormValidation validateJob(String referenceJobName)
      Performs on-the-fly validation of the reference job.
      Parameter:
      referenceJobName - the reference job
      Gibt zurück:
      the validation result
    • validateThreshold

      public FormValidation validateThreshold(int threshold)
      Performs on-the-fly validation of the quality gate threshold.
      Parameter:
      threshold - the threshold
      Gibt zurück:
      the validation result
    • validateHealthy

      public FormValidation validateHealthy(int healthy, int unhealthy)
      Performs on-the-fly validation of the health report thresholds.
      Parameter:
      healthy - the healthy threshold
      unhealthy - the unhealthy threshold
      Gibt zurück:
      the validation result
    • validateUnhealthy

      public FormValidation validateUnhealthy(int healthy, int unhealthy)
      Performs on-the-fly validation of the health report thresholds.
      Parameter:
      healthy - the healthy threshold
      unhealthy - the unhealthy threshold
      Gibt zurück:
      the validation result