Package ghidra.service.graph
Class AttributedVertex
- java.lang.Object
- 
- ghidra.service.graph.Attributed
- 
- ghidra.service.graph.AttributedVertex
 
 
- 
 public class AttributedVertex extends Attributed Graph vertex with attributes
- 
- 
Field SummaryFields Modifier and Type Field Description static java.lang.StringNAME_KEYstatic java.lang.StringVERTEX_TYPE_KEY
 - 
Constructor SummaryConstructors Constructor Description AttributedVertex(java.lang.String id)AttributedVertex(java.lang.String id, java.lang.String name)Constructs a new GhidraVertex with the given id and name
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetId()Returns the id for this vertexjava.lang.StringgetName()returns the name of the vertexjava.lang.StringgetVertexType()Returns the vertex type for this vertexinthashCode()voidsetName(java.lang.String name)Sets the name on the vertexvoidsetVertexType(java.lang.String vertexType)Sets the vertex type for this vertex.java.lang.StringtoString()- 
Methods inherited from class ghidra.service.graph.Attributedclear, entrySet, getAttribute, getAttributes, getDescription, hasAttribute, isEmpty, keys, putAttributes, removeAttribute, setAttribute, setDescription, size, values
 
- 
 
- 
- 
- 
Field Detail- 
NAME_KEYpublic static final java.lang.String NAME_KEY - See Also:
- Constant Field Values
 
 - 
VERTEX_TYPE_KEYpublic static final java.lang.String VERTEX_TYPE_KEY - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
AttributedVertexpublic AttributedVertex(java.lang.String id, java.lang.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
 
 - 
AttributedVertexpublic AttributedVertex(java.lang.String id) 
 
- 
 - 
Method Detail- 
setNamepublic void setName(java.lang.String name) Sets the name on the vertex- Parameters:
- name- the new name for the vertex
 
 - 
getIdpublic java.lang.String getId() Returns the id for this vertex- Returns:
- the id for this vertex
 
 - 
getNamepublic java.lang.String getName() returns the name of the vertex- Returns:
- the name of the vertex
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
getVertexTypepublic java.lang.String getVertexType() Returns the vertex type for this vertex- Returns:
- the vertex type for this vertex
 
 - 
setVertexTypepublic void setVertexType(java.lang.String vertexType) Sets the vertex type for this vertex. Should be a value defined by theGraphTypefor 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 theGraphType- Parameters:
- vertexType- the vertex type for this vertex
 
 
- 
 
-