Class Notification
java.lang.Object
se.bjurr.violations.lib.model.generated.sarif.Notification
Describes a condition relevant to the tool itself, as opposed to being relevant to a target being analyzed by the tool.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA value specifying the severity level of the notification. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanInformation about how to locate a relevant reporting descriptor.Information about how to locate a relevant reporting descriptor.Describes a runtime exception encountered during the execution of an analysis tool.getLevel()A value specifying the severity level of the notification.The locations relevant to this notification.Encapsulates a message intended to be read by the end user.Key/value pairs that provide additional information about the object.The thread identifier of the code that generated the notification.The Coordinated Universal Time (UTC) date and time at which the analysis tool generated the notification.inthashCode()voidsetAssociatedRule(ReportingDescriptorReference associatedRule) Information about how to locate a relevant reporting descriptor.voidsetDescriptor(ReportingDescriptorReference descriptor) Information about how to locate a relevant reporting descriptor.voidsetException(Exception exception) Describes a runtime exception encountered during the execution of an analysis tool.voidsetLevel(Notification.Level level) A value specifying the severity level of the notification.voidsetLocations(Set<Location> locations) The locations relevant to this notification.voidsetMessage(Message message) Encapsulates a message intended to be read by the end user.voidsetProperties(PropertyBag properties) Key/value pairs that provide additional information about the object.voidsetThreadId(Integer threadId) The thread identifier of the code that generated the notification.voidsetTimeUtc(Date timeUtc) The Coordinated Universal Time (UTC) date and time at which the analysis tool generated the notification.toString()withAssociatedRule(ReportingDescriptorReference associatedRule) withDescriptor(ReportingDescriptorReference descriptor) withException(Exception exception) withLevel(Notification.Level level) withLocations(Set<Location> locations) withMessage(Message message) withProperties(PropertyBag properties) withThreadId(Integer threadId) withTimeUtc(Date timeUtc)
-
Constructor Details
-
Notification
public Notification()
-
-
Method Details
-
getLocations
The locations relevant to this notification. -
setLocations
The locations relevant to this notification. -
withLocations
-
getMessage
Encapsulates a message intended to be read by the end user. (Required) -
setMessage
Encapsulates a message intended to be read by the end user. (Required) -
withMessage
-
getLevel
A value specifying the severity level of the notification. -
setLevel
A value specifying the severity level of the notification. -
withLevel
-
getThreadId
The thread identifier of the code that generated the notification. -
setThreadId
The thread identifier of the code that generated the notification. -
withThreadId
-
getTimeUtc
The Coordinated Universal Time (UTC) date and time at which the analysis tool generated the notification. -
setTimeUtc
The Coordinated Universal Time (UTC) date and time at which the analysis tool generated the notification. -
withTimeUtc
-
getException
Describes a runtime exception encountered during the execution of an analysis tool. -
setException
Describes a runtime exception encountered during the execution of an analysis tool. -
withException
-
getDescriptor
Information about how to locate a relevant reporting descriptor. -
setDescriptor
Information about how to locate a relevant reporting descriptor. -
withDescriptor
-
getAssociatedRule
Information about how to locate a relevant reporting descriptor. -
setAssociatedRule
Information about how to locate a relevant reporting descriptor. -
withAssociatedRule
-
getProperties
Key/value pairs that provide additional information about the object. -
setProperties
Key/value pairs that provide additional information about the object. -
withProperties
-
toString
-
hashCode
public int hashCode() -
equals
-