Class AttributedVertex

java.lang.Object
ghidra.service.graph.Attributed
ghidra.service.graph.AttributedVertex

public class AttributedVertex extends Attributed
Graph vertex with attributes
  • Field Details

  • Constructor Details

    • AttributedVertex

      public AttributedVertex(String id, String name)
      Constructs a new GhidraVertex with the given id and name
      Parameters:
      id - the unique id for the vertex
      name - the name for the vertex
    • AttributedVertex

      public AttributedVertex(String id)
  • Method Details

    • setName

      public void setName(String name)
      Sets the name on the vertex
      Parameters:
      name - the new name for the vertex
    • getId

      public String getId()
      Returns the id for this vertex
      Returns:
      the id for this vertex
    • getName

      public String getName()
      returns the name of the vertex
      Returns:
      the name of the vertex
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getVertexType

      public String getVertexType()
      Returns the vertex type for this vertex
      Returns:
      the vertex type for this vertex
    • setVertexType

      public void setVertexType(String vertexType)
      Sets the vertex type for this vertex. Should be a value defined by the GraphType for this graph, but there is no enforcement for this. If the value is not defined in GraphType, it will be rendered using the default vertex shape and color for the GraphType
      Parameters:
      vertexType - the vertex type for this vertex