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

public class Node extends Object
Represents a node in a graph.
  • Constructor Details

    • Node

      public Node()
  • Method Details

    • getId

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

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

      public Node 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 Node withLabel(Message label)
    • getLocation

      public Location getLocation()
      A location within a programming artifact.
    • setLocation

      public void setLocation(Location location)
      A location within a programming artifact.
    • withLocation

      public Node withLocation(Location location)
    • getChildren

      public Set<Node> getChildren()
      Array of child nodes.
    • setChildren

      public void setChildren(Set<Node> children)
      Array of child nodes.
    • withChildren

      public Node withChildren(Set<Node> children)
    • 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 Node 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