 | 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.libGrAssembly: libGr (in libGr.dll) Version: GrGen.NET 7.1
Syntaxvoid ChangingNodeAttribute(
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/deque.
Or the new value to be assigned to the given position if changeType==AssignElement on array/deque.
- keyValue Object
- 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