java.lang.Object
se.bjurr.violations.lib.model.generated.sarif.Message

public class Message extends Object
Encapsulates a message intended to be read by the end user.
  • Constructor Details

    • Message

      public Message()
  • Method Details

    • getText

      public String getText()
      A plain text message string.
    • setText

      public void setText(String text)
      A plain text message string.
    • withText

      public Message withText(String text)
    • getMarkdown

      public String getMarkdown()
      A Markdown message string.
    • setMarkdown

      public void setMarkdown(String markdown)
      A Markdown message string.
    • withMarkdown

      public Message withMarkdown(String markdown)
    • getId

      public String getId()
      The identifier for this message.
    • setId

      public void setId(String id)
      The identifier for this message.
    • withId

      public Message withId(String id)
    • getArguments

      public List<String> getArguments()
      An array of strings to substitute into the message string.
    • setArguments

      public void setArguments(List<String> arguments)
      An array of strings to substitute into the message string.
    • withArguments

      public Message withArguments(List<String> arguments)
    • getProperties

      public PropertyBag getProperties()
      Key/value pairs that provide additional information about the object.
    • setProperties

      public void setProperties(PropertyBag properties)
      Key/value pairs that provide additional information about the object.
    • withProperties

      public Message withProperties(PropertyBag properties)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object