Class RegisteredParser
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<Tool>
-
- io.jenkins.plugins.analysis.core.model.Tool
-
- io.jenkins.plugins.analysis.core.model.ReportScanningTool
-
- io.jenkins.plugins.analysis.warnings.RegisteredParser
-
- All Implemented Interfaces:
Describable<Tool>
,Serializable
public class RegisteredParser extends ReportScanningTool
Selects a parser from the registered parsers of the analysis-model library by providing a specific ID.- Author:
- Ullrich Hafner
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RegisteredParser.Descriptor
Descriptor for this static analysis tool.-
Nested classes/interfaces inherited from class io.jenkins.plugins.analysis.core.model.ReportScanningTool
ReportScanningTool.ReportScanningToolDescriptor
-
Nested classes/interfaces inherited from class io.jenkins.plugins.analysis.core.model.Tool
Tool.ToolDescriptor
-
-
Constructor Summary
Constructors Constructor Description RegisteredParser(String id)
Creates a new instance ofRegisteredParser
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.hm.hafner.analysis.IssueParser
createParser()
Returns a new parser to scan a log file and return the issues reported in such a file.String
getActualPattern()
Returns the actual pattern to work with.String
getId()
StaticAnalysisLabelProvider
getLabelProvider()
Returns the associated label provider for this tool.String
getName()
-
Methods inherited from class io.jenkins.plugins.analysis.core.model.ReportScanningTool
getDescriptor, getPattern, getReportEncoding, getSkipSymbolicLinks, scan, setPattern, setReportEncoding, setSkipSymbolicLinks
-
Methods inherited from class io.jenkins.plugins.analysis.core.model.Tool
getActualId, getActualName, getSymbolName, setId, setName
-
-
-
-
Constructor Detail
-
RegisteredParser
@DataBoundConstructor public RegisteredParser(String id)
Creates a new instance ofRegisteredParser
.- Parameters:
id
- the unique ID of the tool
-
-
Method Detail
-
createParser
public edu.hm.hafner.analysis.IssueParser createParser()
Description copied from class:ReportScanningTool
Returns a new parser to scan a log file and return the issues reported in such a file.- Specified by:
createParser
in classReportScanningTool
- Returns:
- the parser to use
-
getLabelProvider
public StaticAnalysisLabelProvider getLabelProvider()
Description copied from class:Tool
Returns the associated label provider for this tool.- Overrides:
getLabelProvider
in classTool
- Returns:
- the label provider
-
getActualPattern
public String getActualPattern()
Description copied from class:ReportScanningTool
Returns the actual pattern to work with. If no user defined pattern is given, then the default pattern is returned.- Overrides:
getActualPattern
in classReportScanningTool
- Returns:
- the name
- See Also:
ReportScanningTool.setPattern(String)
,AnalysisModelParser.AnalysisModelParserDescriptor.getPattern()
-
-