Package com.axelor.workflow.view
Record Class WorkflowGraphView.GraphNode
java.lang.Object
java.lang.Record
com.axelor.workflow.view.WorkflowGraphView.GraphNode
- Record Components:
nodePath- the subflow whose body holds this node, or null;(nodePath, id)identifies a nodeattrs- never null; empty for a node with nothing of its own to drawx- designer-only placement; null when the author never arranged this workflowy- as above
- Enclosing class:
WorkflowGraphView
public static record WorkflowGraphView.GraphNode(String id, String nodePath, String type, String title, String description, Map<String,Object> attrs, Double x, Double y)
extends Record
One node, as the viewer draws it. What a node draws from its own fields travels in
attrs, keyed as the designer's schema keys them.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattrs()Returns the value of theattrsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.nodePath()Returns the value of thenodePathrecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.
-
Constructor Details
-
GraphNode
public GraphNode(String id, String nodePath, String type, String title, String description, Map<String, Object> attrs, Double x, Double y) Creates an instance of aGraphNoderecord class.- Parameters:
id- the value for theidrecord componentnodePath- the value for thenodePathrecord componenttype- the value for thetyperecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentattrs- the value for theattrsrecord componentx- the value for thexrecord componenty- the value for theyrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
nodePath
Returns the value of thenodePathrecord component.- Returns:
- the value of the
nodePathrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
attrs
Returns the value of theattrsrecord component.- Returns:
- the value of the
attrsrecord component
-
x
Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-