Node

open class Node : PropertyOwner

Represents a node in a graph.

Constructors

Link copied to clipboard
constructor()
No args constructor for use in serialization
constructor(id: String)

Properties

Link copied to clipboard
@SerializedName(value = "children")
@Expose
open var children: Set<Node>
Array of child nodes.
Link copied to clipboard
@SerializedName(value = "id")
@Expose
open var id: String
A string that uniquely identifies the node within its graph.
Link copied to clipboard
@SerializedName(value = "label")
@Expose
open var label: Message
Encapsulates a message intended to be read by the end user.
Link copied to clipboard
@SerializedName(value = "location")
@Expose
open var location: Location
A location within a programming artifact.
Link copied to clipboard
@SerializedName(value = "properties")
@Expose
open var properties: PropertyBag
Key/value pairs that provide additional information about the object.

Functions

Link copied to clipboard
open fun equals(other: Any): Boolean
Link copied to clipboard
abstract fun getProperties(): PropertyBag
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
abstract fun setProperties(<set-?>: PropertyBag)
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun updateProperties(mutator: (in PropertyBag) -> Unit)
Link copied to clipboard
open fun withChildren(children: Set<Node>): Node
Link copied to clipboard
open fun withId(id: String): Node
Link copied to clipboard
open fun withLabel(label: Message): Node
Link copied to clipboard
open fun withLocation(location: Location): Node
Link copied to clipboard
open fun withProperties(properties: PropertyBag): Node