Class LabelProviderFactory

java.lang.Object
io.jenkins.plugins.analysis.core.model.LabelProviderFactory

public class LabelProviderFactory extends Object
Creates StaticAnalysisLabelProvider instances based on a provided ID and name.
Author:
Ullrich Hafner
  • Constructor Details

    • LabelProviderFactory

      public LabelProviderFactory()
      Creates a new instance of LabelProviderFactory.
  • Method Details

    • create

      public StaticAnalysisLabelProvider create(String id)
      Finds the label provider for the static analysis tool with the specified ID.
      Parameters:
      id - the ID of the tool to find
      Returns:
      The label provider of the selected static analysis tool. If the tool is not found then a default label provider is returned.
    • create

      public StaticAnalysisLabelProvider create(String id, @CheckForNull String name)
      Finds the label provider for the static analysis tool with the specified ID.
      Parameters:
      id - the ID of the tool to find
      name - the name of the tool (might be empty or null)
      Returns:
      The label provider of the selected static analysis tool. If the tool is not found then a default label provider is returned.