java.lang.Object
edu.hm.hafner.analysis.registry.ParserDescriptor
- Direct Known Subclasses:
CodeGeneratorDescriptor,DryDescriptor,EmbeddedEngineerDescriptor,FindBugsDescriptor,GrypeDescriptor,OwaspDependencyCheckDescriptor,PnpmAuditDescriptor,PolyspaceDescriptor,RevApiDescriptor,SimulinkCheckDescriptor
Interface to describe all descriptors.
- Author:
- Lorenz Munsch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA parser configuration option. -
Method Summary
Modifier and TypeMethodDescriptionabstract IssueParsercreateParser(ParserDescriptor.Option... options) Creates a newIssueParserinstance.getDescription(Issue issue) Returns a detailed description of the specified issue.getHelp()Returns an optional help text that can provide useful hints on how to configure the static analysis tool so that the report files could be parsed by Jenkins.Returns an optional URL to the icon or logo of the static analysis tool.getId()Returns the technical ID of the parser.getName()Returns a human-readable name of the parser.Returns the default filename pattern for this tool.getUrl()Returns an optional URL to the homepage of the static analysis tool.final booleanhasHelp()Returns whether an optional help text is available for this parser.final booleanhasUrl()Returns whether the URL for the parser is set.
-
Method Details
-
getId
Returns the technical ID of the parser.- Returns:
- the technical id of the parser
-
getName
Returns a human-readable name of the parser. Note that this property is not yet localizable.- Returns:
- the human-readable name
-
createParser
Creates a newIssueParserinstance.- Parameters:
options- options to configure the parser - may customize the new parser instance (if supported by the selected tool)- Returns:
- the parser
-
getPattern
Returns the default filename pattern for this tool. Override if your parser typically works on a specific file. This pattern will be interpreted as an ANT pattern or glob, resp.- Returns:
- the default pattern
-
getHelp
Returns an optional help text that can provide useful hints on how to configure the static analysis tool so that the report files could be parsed by Jenkins. This help can be a plain text message or an HTML snippet.- Returns:
- the help
-
hasHelp
public final boolean hasHelp()Returns whether an optional help text is available for this parser.- Returns:
trueif there is a help text available- See Also:
-
getUrl
Returns an optional URL to the homepage of the static analysis tool.- Returns:
- the help
-
hasUrl
public final boolean hasUrl()Returns whether the URL for the parser is set.- Returns:
trueif there is a URL available- See Also:
-
getIconUrl
Returns an optional URL to the icon or logo of the static analysis tool.- Returns:
- the help
-
getDescription
Returns a detailed description of the specified issue. If there is no additional description is available, then an empty String is returned.- Parameters:
issue- the issue to get the description for- Returns:
- the description
-