Class ArtifactContent

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

public class ArtifactContent extends Object
Represents the contents of an artifact.
  • Constructor Details

    • ArtifactContent

      public ArtifactContent()
  • Method Details

    • getText

      public String getText()
      UTF-8-encoded content from a text artifact.
    • setText

      public void setText(String text)
      UTF-8-encoded content from a text artifact.
    • withText

      public ArtifactContent withText(String text)
    • getBinary

      public String getBinary()
      MIME Base64-encoded content from a binary artifact, or from a text artifact in its original encoding.
    • setBinary

      public void setBinary(String binary)
      MIME Base64-encoded content from a binary artifact, or from a text artifact in its original encoding.
    • withBinary

      public ArtifactContent withBinary(String binary)
    • getRendered

      public MultiformatMessageString getRendered()
      A message string or message format string rendered in multiple formats.
    • setRendered

      public void setRendered(MultiformatMessageString rendered)
      A message string or message format string rendered in multiple formats.
    • withRendered

      public ArtifactContent withRendered(MultiformatMessageString rendered)
    • 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 ArtifactContent 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