Package ghidra.framework.model
Class DomainObjectChangeRecord
java.lang.Object
ghidra.framework.model.DomainObjectChangeRecord
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CodeUnitUserDataChangeRecord
,ProgramChangeRecord
,UserDataChangeRecord
Information about a change that was made to a domain object. The record is delivered as part of
the change notification. The event types correspond to Enums defined in
DomainObjectEvent
and other Enums or objects that implement the EventType
interface.
Each event record contains the event type and optionally an old value and a new value. The old value and new value meaning are determined by the event type.
- See Also:
-
Constructor Summary
ConstructorDescriptionDomainObjectChangeRecord
(EventType eventType) Construct a new DomainObjectChangeRecord.DomainObjectChangeRecord
(EventType eventType, Object oldValue, Object newValue) Construct a new DomainObjectChangeRecord. -
Method Summary
Modifier and TypeMethodDescriptionReturns the event type for this change.Return the new value for this event or null if not applicable.Return the old value for this event or null if not applicable.toString()
-
Constructor Details
-
DomainObjectChangeRecord
Construct a new DomainObjectChangeRecord.- Parameters:
eventType
- the type of event
-
DomainObjectChangeRecord
Construct a new DomainObjectChangeRecord.- Parameters:
eventType
- the type ofoldValue
- old valuenewValue
- new value
-
-
Method Details
-
getEventType
Returns the event type for this change.- Returns:
- the event type for this change
-
getOldValue
Return the old value for this event or null if not applicable.- Returns:
- the old value or null if not applicable
-
getNewValue
Return the new value for this event or null if not applicable.- Returns:
- the old value or null if not applicable for this event.
-
toString
-