Package io.jenkins.plugins.prism
Klasse Marker.MarkerBuilder
java.lang.Object
io.jenkins.plugins.prism.Marker.MarkerBuilder
- Umschließende Klasse:
Marker
Creates
markers
using the builder pattern.- Autor:
- Ullrich Hafner
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuild()
Creates an immutableMarker
instance using the configured properties.withColumnEnd
(int columnEnd) Defines the last column of this marker (columns start at 1).withColumnStart
(int columnStart) Defines the first column of this marker (columns start at 1, 0 indicates the whole line).withDescription
(String description) Defines the title of the marker.Defines the icon of the marker.withLineEnd
(int lineEnd) Defines the last line of this marker (lines start at 1).withLineStart
(int lineStart) Defines the first line of this marker (lines start at 1; 0 indicates the whole file).Defines the title of the marker.
-
Konstruktordetails
-
MarkerBuilder
public MarkerBuilder()
-
-
Methodendetails
-
withTitle
Defines the title of the marker. This title must not contain HTML tags.- Parameter:
title
- the title, should fit into a single line- Gibt zurück:
- this builder
-
withIcon
Defines the icon of the marker.- Parameter:
icon
- the icon (if available use an SVG icon)- Gibt zurück:
- this builder
-
withDescription
Defines the title of the marker.- Parameter:
description
- the detailed description of the maker. This description may contain valid HTML elements.- Gibt zurück:
- this builder
-
withLineStart
Defines the first line of this marker (lines start at 1; 0 indicates the whole file).- Parameter:
lineStart
- the first line- Gibt zurück:
- this builder
-
withLineEnd
Defines the last line of this marker (lines start at 1).- Parameter:
lineEnd
- the last line- Gibt zurück:
- this builder
-
withColumnStart
Defines the first column of this marker (columns start at 1, 0 indicates the whole line).- Parameter:
columnStart
- the first column- Gibt zurück:
- this builder
-
withColumnEnd
Defines the last column of this marker (columns start at 1).- Parameter:
columnEnd
- the last column- Gibt zurück:
- this builder
-
build
Creates an immutableMarker
instance using the configured properties.- Gibt zurück:
- the new annotation
-