Klasse Marker.MarkerBuilder

java.lang.Object
io.jenkins.plugins.prism.Marker.MarkerBuilder
Umschließende Klasse:
Marker

public static class Marker.MarkerBuilder extends Object
Creates markers using the builder pattern.
Autor:
Ullrich Hafner
  • Konstruktordetails

    • MarkerBuilder

      public MarkerBuilder()
  • Methodendetails

    • withTitle

      public Marker.MarkerBuilder withTitle(String title)
      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

      public Marker.MarkerBuilder withIcon(String icon)
      Defines the icon of the marker.
      Parameter:
      icon - the icon (if available use an SVG icon)
      Gibt zurück:
      this builder
    • withDescription

      public Marker.MarkerBuilder withDescription(String description)
      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

      public Marker.MarkerBuilder withLineStart(int lineStart)
      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

      public Marker.MarkerBuilder withLineEnd(int lineEnd)
      Defines the last line of this marker (lines start at 1).
      Parameter:
      lineEnd - the last line
      Gibt zurück:
      this builder
    • withColumnStart

      public Marker.MarkerBuilder withColumnStart(int columnStart)
      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

      public Marker.MarkerBuilder withColumnEnd(int columnEnd)
      Defines the last column of this marker (columns start at 1).
      Parameter:
      columnEnd - the last column
      Gibt zurück:
      this builder
    • build

      public Marker build()
      Creates an immutable Marker instance using the configured properties.
      Gibt zurück:
      the new annotation