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

public class Graph extends Object
A network of nodes and directed edges that describes some aspect of the structure of the code (for example, a call graph).
  • Constructor Details

    • Graph

      public Graph()
  • 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 Graph withDescription(Message description)
    • getNodes

      public Set<Node> getNodes()
      An array of node objects representing the nodes of the graph.
    • setNodes

      public void setNodes(Set<Node> nodes)
      An array of node objects representing the nodes of the graph.
    • withNodes

      public Graph withNodes(Set<Node> nodes)
    • getEdges

      public Set<Edge> getEdges()
      An array of edge objects representing the edges of the graph.
    • setEdges

      public void setEdges(Set<Edge> edges)
      An array of edge objects representing the edges of the graph.
    • withEdges

      public Graph withEdges(Set<Edge> edges)
    • 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 Graph 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