Class LabelProviderFactory
- java.lang.Object
-
- io.jenkins.plugins.analysis.core.model.LabelProviderFactory
-
public class LabelProviderFactory extends Object
CreatesStaticAnalysisLabelProvider
instances based on a provided ID and name.- Author:
- Ullrich Hafner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LabelProviderFactory.StaticAnalysisToolFactory
Provides additionalStaticAnalysisLabelProvider
instances that are created dynamically.
-
Constructor Summary
Constructors Constructor Description LabelProviderFactory()
Creates a new instance ofLabelProviderFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StaticAnalysisLabelProvider
create(String id)
Finds the label provider for the static analysis tool with the specified ID.StaticAnalysisLabelProvider
create(String id, String name)
Finds the label provider for the static analysis tool with the specified ID.
-
-
-
Constructor Detail
-
LabelProviderFactory
public LabelProviderFactory()
Creates a new instance ofLabelProviderFactory
.
-
-
Method Detail
-
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 findname
- 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.
-
-