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

public class Location extends Object
A location within a programming artifact.
  • Constructor Details

    • Location

      public Location()
  • Method Details

    • getId

      public Integer getId()
      Value that distinguishes this location from all other locations within a single result object.
    • setId

      public void setId(Integer id)
      Value that distinguishes this location from all other locations within a single result object.
    • withId

      public Location withId(Integer id)
    • getPhysicalLocation

      public PhysicalLocation getPhysicalLocation()
      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.
    • setPhysicalLocation

      public void setPhysicalLocation(PhysicalLocation physicalLocation)
      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.
    • withPhysicalLocation

      public Location withPhysicalLocation(PhysicalLocation physicalLocation)
    • getLogicalLocations

      public Set<LogicalLocation> getLogicalLocations()
      The logical locations associated with the result.
    • setLogicalLocations

      public void setLogicalLocations(Set<LogicalLocation> logicalLocations)
      The logical locations associated with the result.
    • withLogicalLocations

      public Location withLogicalLocations(Set<LogicalLocation> logicalLocations)
    • getMessage

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

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

      public Location withMessage(Message message)
    • getAnnotations

      public Set<Region> getAnnotations()
      A set of regions relevant to the location.
    • setAnnotations

      public void setAnnotations(Set<Region> annotations)
      A set of regions relevant to the location.
    • withAnnotations

      public Location withAnnotations(Set<Region> annotations)
    • getRelationships

      public Set<LocationRelationship> getRelationships()
      An array of objects that describe relationships between this location and others.
    • setRelationships

      public void setRelationships(Set<LocationRelationship> relationships)
      An array of objects that describe relationships between this location and others.
    • withRelationships

      public Location withRelationships(Set<LocationRelationship> relationships)
    • 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 Location 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