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

public class Edge extends Object
Represents a directed edge in a graph.
  • Constructor Details

    • Edge

      public Edge()
  • Method Details

    • getId

      public String getId()
      A string that uniquely identifies the edge within its graph. (Required)
    • setId

      public void setId(String id)
      A string that uniquely identifies the edge within its graph. (Required)
    • withId

      public Edge withId(String id)
    • getLabel

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

      public void setLabel(Message label)
      Encapsulates a message intended to be read by the end user.
    • withLabel

      public Edge withLabel(Message label)
    • getSourceNodeId

      public String getSourceNodeId()
      Identifies the source node (the node at which the edge starts). (Required)
    • setSourceNodeId

      public void setSourceNodeId(String sourceNodeId)
      Identifies the source node (the node at which the edge starts). (Required)
    • withSourceNodeId

      public Edge withSourceNodeId(String sourceNodeId)
    • getTargetNodeId

      public String getTargetNodeId()
      Identifies the target node (the node at which the edge ends). (Required)
    • setTargetNodeId

      public void setTargetNodeId(String targetNodeId)
      Identifies the target node (the node at which the edge ends). (Required)
    • withTargetNodeId

      public Edge withTargetNodeId(String targetNodeId)
    • 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 Edge 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