Class Marker.Badge

java.lang.Object
io.jenkins.plugins.prism.Marker.Badge
Enclosing class:
Marker

public static final class Marker.Badge extends Object
A short label that is shown in the header of the box of a marker.
  • Constructor Details

    • Badge

      public Badge(String text, String tooltip)
      Creates a new badge.
      Parameters:
      text - the text of the badge, must not contain HTML tags
      tooltip - the tooltip of the badge, use an empty string if there is no tooltip
    • Badge

      public Badge(String text, String tooltip, String url)
      Creates a new badge that is a link.
      Parameters:
      text - the text of the badge, must not contain HTML tags
      tooltip - the tooltip of the badge, use an empty string if there is no tooltip
      url - the URL of the badge, use an empty string if the badge is no link
  • Method Details

    • getText

      public String getText()
    • getTooltip

      public String getTooltip()
    • getUrl

      public String getUrl()