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

public class Fix extends Object
A proposed fix for the problem represented by a result object. A fix specifies a set of artifacts to modify. For each artifact, it specifies a set of bytes to remove, and provides a set of new bytes to replace them.
  • Constructor Details

    • Fix

      public Fix()
  • Method Details

    • getDescription

      public Message getDescription()
      Encapsulates a message intended to be read by the end user.
    • setDescription

      public void setDescription(Message description)
      Encapsulates a message intended to be read by the end user.
    • withDescription

      public Fix withDescription(Message description)
    • getArtifactChanges

      public Set<ArtifactChange> getArtifactChanges()
      One or more artifact changes that comprise a fix for a result. (Required)
    • setArtifactChanges

      public void setArtifactChanges(Set<ArtifactChange> artifactChanges)
      One or more artifact changes that comprise a fix for a result. (Required)
    • withArtifactChanges

      public Fix withArtifactChanges(Set<ArtifactChange> artifactChanges)
    • 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 Fix 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