Change.ChangeCategory| Modifier and Type | Field and Description |
|---|---|
private Change.ChangeCategory |
changeCategory |
private Type |
changeType |
private java.lang.String |
instanceKey |
private Instance |
instanceValue |
private Instance |
originalInstanceValue |
private java.util.List<java.beans.PropertyChangeEvent> |
propertyChanges |
| Constructor and Description |
|---|
ChangeImpl(Change.ChangeCategory changeCategory,
Type changeType,
java.lang.String instanceKey,
Instance instanceValue,
Instance originalInstanceValue,
java.util.List<java.beans.PropertyChangeEvent> propertyChanges) |
| Modifier and Type | Method and Description |
|---|---|
Change.ChangeCategory |
getChangeCategory()
Gets the category of change this Change object
represents
|
Type |
getChangeType()
Gets the type of the change for all change categories.
|
java.lang.String |
getInstanceKey()
Returns the key of the instance that was removed, added or modified
for the categories ADD_INSTANCE, REMOVE_INSTANCE and MODIFY_INSTANCE
|
Instance |
getInstanceValue()
Returns the value of the instance that was removed, added or modified
for the categories ADD_INSTANCE, REMOVE_INSTANCE and MODIFY_INSTANCE.
|
java.util.List<java.beans.PropertyChangeEvent> |
getModifiedProperties()
Returns a list of properties that were changed if the change category
is MODIFY_INSTANCE.
|
Instance |
getOriginalInstanceValue()
Returns the original Instance for the category MODIFY_INSTANCE
|
java.lang.String |
toString() |
private final Change.ChangeCategory changeCategory
private final Type changeType
private final java.lang.String instanceKey
private final Instance instanceValue
private final Instance originalInstanceValue
private final java.util.List<java.beans.PropertyChangeEvent> propertyChanges
ChangeImpl(Change.ChangeCategory changeCategory, Type changeType, java.lang.String instanceKey, Instance instanceValue, Instance originalInstanceValue, java.util.List<java.beans.PropertyChangeEvent> propertyChanges)
public Change.ChangeCategory getChangeCategory()
ChangegetChangeCategory in interface Changepublic Type getChangeType()
ChangegetChangeType in interface Changepublic java.lang.String getInstanceKey()
ChangegetInstanceKey in interface Changepublic Instance getInstanceValue()
ChangegetInstanceValue in interface Changepublic Instance getOriginalInstanceValue()
ChangegetOriginalInstanceValue in interface Changepublic java.util.List<java.beans.PropertyChangeEvent> getModifiedProperties()
ChangegetModifiedProperties in interface Changepublic java.lang.String toString()
toString in class java.lang.Object