Klasse DetailsTableModel.TableRow
java.lang.Object
io.jenkins.plugins.analysis.core.model.DetailsTableModel.TableRow
- Bekannte direkte Unterklassen:
BlamesModel.BlamesRow
,DuplicateCodeScanner.DryModel.DuplicationRow
,ForensicsModel.ForensicsRow
,IssuesModel.IssuesRow
,RevApi.RevApiModel.RevApiRow
- Umschließende Klasse:
DetailsTableModel
Base class for table rows. Contains columns that should be used by all tables.
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
TableRow
(StaticAnalysisLabelProvider.AgeBuilder ageBuilder, FileNameRenderer fileNameRenderer, DescriptionProvider descriptionProvider, edu.hm.hafner.analysis.Issue issue, io.jenkins.plugins.util.JenkinsFacade jenkinsFacade) Creates a newDetailsTableModel.TableRow
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected String
formatProperty
(String property, String value) Formats the text of the specified property column.protected String
formatSeverity
(edu.hm.hafner.analysis.Severity severity) Formats the text of the severity column.getAge()
io.jenkins.plugins.datatables.DetailedCell
<String> protected final String
render
(j2html.tags.UnescapedText text) Renders the specified HTML code.protected final String
Renders the specified HTML code.
-
Konstruktordetails
-
TableRow
protected TableRow(StaticAnalysisLabelProvider.AgeBuilder ageBuilder, FileNameRenderer fileNameRenderer, DescriptionProvider descriptionProvider, edu.hm.hafner.analysis.Issue issue, io.jenkins.plugins.util.JenkinsFacade jenkinsFacade) Creates a newDetailsTableModel.TableRow
.- Parameter:
ageBuilder
- renders the age columnfileNameRenderer
- renders the file name columndescriptionProvider
- renders the description textissue
- the issue to show in the rowjenkinsFacade
- Jenkins facade to be replaced with a stub during unit tests
-
-
Methodendetails
-
formatSeverity
Formats the text of the severity column.- Parameter:
severity
- the severity of the issue- Gibt zurück:
- the formatted column
-
formatProperty
Formats the text of the specified property column. The text actually is a link to the UI representation of the property.- Parameter:
property
- the property to formatvalue
- the value of the property- Gibt zurück:
- the formatted column
-
render
Renders the specified HTML code. Removes unsafe HTML constructs.- Parameter:
text
- the HTML to render- Gibt zurück:
- safe HTML
-
render
Renders the specified HTML code. Removes unsafe HTML constructs.- Parameter:
html
- the HTML to render- Gibt zurück:
- safe HTML
-
getDescription
-
getMessage
-
getFileName
-
getAge
-