 | IGraphChangingNodeAttribute Method |
Fires an OnChangingNodeAttribute event.
To be called before changing an attribute of a node,
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.2
Syntaxvoid ChangingNodeAttribute(
INode node,
AttributeType attrType,
AttributeChangeType changeType,
Object newValue,
Object keyValue
)
Parameters
- node
- Type: de.unika.ipd.grGen.libGrINode
The node whose attribute is to be changed. - attrType
- Type: de.unika.ipd.grGen.libGrAttributeType
The type of the attribute to be changed. - changeType
- Type: de.unika.ipd.grGen.libGrAttributeChangeType
The type of the change which will be made. - newValue
- Type: SystemObject
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/deque.
Or the new value to be assigned to the given position if changeType==AssignElement on array/deque. - keyValue
- Type: SystemObject
The map pair key to be inserted/removed if changeType==PutElement/RemoveElement on map.
The index to be removed/written to if changeType==RemoveElement/AssignElement on array/deque.
See Also