Class PhysicalLocation

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

public class PhysicalLocation extends Object
A physical location relevant to a result. Specifies a reference to a programming artifact together with a range of bytes or characters within that artifact.
  • Constructor Details

    • PhysicalLocation

      public PhysicalLocation()
  • Method Details

    • getAddress

      public Address getAddress()
      A physical or virtual address, or a range of addresses, in an 'addressable region' (memory or a binary file).
    • setAddress

      public void setAddress(Address address)
      A physical or virtual address, or a range of addresses, in an 'addressable region' (memory or a binary file).
    • withAddress

      public PhysicalLocation withAddress(Address address)
    • getArtifactLocation

      public ArtifactLocation getArtifactLocation()
      Specifies the location of an artifact.
    • setArtifactLocation

      public void setArtifactLocation(ArtifactLocation artifactLocation)
      Specifies the location of an artifact.
    • withArtifactLocation

      public PhysicalLocation withArtifactLocation(ArtifactLocation artifactLocation)
    • getRegion

      public Region getRegion()
      A region within an artifact where a result was detected.
    • setRegion

      public void setRegion(Region region)
      A region within an artifact where a result was detected.
    • withRegion

      public PhysicalLocation withRegion(Region region)
    • getContextRegion

      public Region getContextRegion()
      A region within an artifact where a result was detected.
    • setContextRegion

      public void setContextRegion(Region contextRegion)
      A region within an artifact where a result was detected.
    • withContextRegion

      public PhysicalLocation withContextRegion(Region contextRegion)
    • 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 PhysicalLocation 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