Click or drag to resize

ChangingNodeAttributeHandler Delegate

Represents a method called just before a node attribute is changed, with exact information about the change to occur, to allow rollback of changes, in case a transaction is underway.

Namespace: de.unika.ipd.grGen.libGr
Assembly: libGr (in libGr.dll) Version: GrGen.NET 7.1
Syntax
C#
public delegate void ChangingNodeAttributeHandler(
	INode node,
	AttributeType attrType,
	AttributeChangeType changeType,
	Object newValue,
	Object keyValue
)

Parameters

node  INode
The node whose attribute is to be changed.
attrType  AttributeType
The type of the attribute to be changed.
changeType  AttributeChangeType
The type of the change which will be made.
newValue  Object
The new value of the attribute, if changeType==Assign. Or the value to be inserted/removed if changeType==PutElement/RemoveElement on set. Or the new map pair value to be inserted if changeType==PutElement on map. Or the new value to be inserted/added if changeType==PutElement on array. Or the new value to be assigned to the given position if changeType==AssignElement on array.
keyValue  Object
The map pair key to be inserted/removed if changeType==PutElement/RemoveElement on map. The array index to be removed/written to if changeType==RemoveElement/AssignElement on array.
See Also