Package ghidra.framework.model
Class DomainObjectChangeRecord
- java.lang.Object
-
- ghidra.framework.model.DomainObjectChangeRecord
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CodeUnitPropertyChangeRecord
,CodeUnitUserDataChangeRecord
,DataTypeArchiveChangeRecord
,ProgramChangeRecord
,UserDataChangeRecord
public class DomainObjectChangeRecord extends java.lang.Object implements java.io.Serializable
Information about a change that was made to a domain object. The record is delivered as part of the change notification.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DomainObjectChangeRecord()
Construct a new DomainObjectChangeRecord.DomainObjectChangeRecord(int type)
Construct a new DomainObjectChangeRecord.DomainObjectChangeRecord(int type, int subType, java.lang.Object oldValue, java.lang.Object newValue)
Construct a new DomainObjectChangeRecord.DomainObjectChangeRecord(int type, java.lang.Object oldValue, java.lang.Object newValue)
Construct a new DomainObjectChangeRecord.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEventType()
Return the event type for this change record.java.lang.Object
getNewValue()
Return the new value.java.lang.Object
getOldValue()
Return the old value.int
getSubEventType()
Return the sub-event type for this change record.java.lang.String
toString()
-
-
-
Constructor Detail
-
DomainObjectChangeRecord
public DomainObjectChangeRecord()
Construct a new DomainObjectChangeRecord.
-
DomainObjectChangeRecord
public DomainObjectChangeRecord(int type)
Construct a new DomainObjectChangeRecord.- Parameters:
type
- event type
-
DomainObjectChangeRecord
public DomainObjectChangeRecord(int type, java.lang.Object oldValue, java.lang.Object newValue)
Construct a new DomainObjectChangeRecord.- Parameters:
type
- event typeoldValue
- old valuenewValue
- new value
-
DomainObjectChangeRecord
public DomainObjectChangeRecord(int type, int subType, java.lang.Object oldValue, java.lang.Object newValue)
Construct a new DomainObjectChangeRecord.- Parameters:
type
- event typesubType
- sub-event type (use 0 if unspecified)oldValue
- old valuenewValue
- new value
-
-
Method Detail
-
getEventType
public int getEventType()
Return the event type for this change record.
-
getSubEventType
public int getSubEventType()
Return the sub-event type for this change record. A value of 0 is the default if unspecified.
-
getOldValue
public java.lang.Object getOldValue()
Return the old value.
-
getNewValue
public java.lang.Object getNewValue()
Return the new value.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-