Class Notification

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

public class Notification extends Object
Describes a condition relevant to the tool itself, as opposed to being relevant to a target being analyzed by the tool.
  • Constructor Details

    • Notification

      public Notification()
  • Method Details

    • getLocations

      public Set<Location> getLocations()
      The locations relevant to this notification.
    • setLocations

      public void setLocations(Set<Location> locations)
      The locations relevant to this notification.
    • withLocations

      public Notification withLocations(Set<Location> locations)
    • getMessage

      public Message getMessage()
      Encapsulates a message intended to be read by the end user. (Required)
    • setMessage

      public void setMessage(Message message)
      Encapsulates a message intended to be read by the end user. (Required)
    • withMessage

      public Notification withMessage(Message message)
    • getLevel

      public Notification.Level getLevel()
      A value specifying the severity level of the notification.
    • setLevel

      public void setLevel(Notification.Level level)
      A value specifying the severity level of the notification.
    • withLevel

      public Notification withLevel(Notification.Level level)
    • getThreadId

      public Integer getThreadId()
      The thread identifier of the code that generated the notification.
    • setThreadId

      public void setThreadId(Integer threadId)
      The thread identifier of the code that generated the notification.
    • withThreadId

      public Notification withThreadId(Integer threadId)
    • getTimeUtc

      public Date getTimeUtc()
      The Coordinated Universal Time (UTC) date and time at which the analysis tool generated the notification.
    • setTimeUtc

      public void setTimeUtc(Date timeUtc)
      The Coordinated Universal Time (UTC) date and time at which the analysis tool generated the notification.
    • withTimeUtc

      public Notification withTimeUtc(Date timeUtc)
    • getException

      public Exception getException()
      Describes a runtime exception encountered during the execution of an analysis tool.
    • setException

      public void setException(Exception exception)
      Describes a runtime exception encountered during the execution of an analysis tool.
    • withException

      public Notification withException(Exception exception)
    • getDescriptor

      public ReportingDescriptorReference getDescriptor()
      Information about how to locate a relevant reporting descriptor.
    • setDescriptor

      public void setDescriptor(ReportingDescriptorReference descriptor)
      Information about how to locate a relevant reporting descriptor.
    • withDescriptor

      public Notification withDescriptor(ReportingDescriptorReference descriptor)
    • getAssociatedRule

      public ReportingDescriptorReference getAssociatedRule()
      Information about how to locate a relevant reporting descriptor.
    • setAssociatedRule

      public void setAssociatedRule(ReportingDescriptorReference associatedRule)
      Information about how to locate a relevant reporting descriptor.
    • withAssociatedRule

      public Notification withAssociatedRule(ReportingDescriptorReference associatedRule)
    • 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 Notification 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