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()
Change
getChangeCategory
in interface Change
public Type getChangeType()
Change
getChangeType
in interface Change
public java.lang.String getInstanceKey()
Change
getInstanceKey
in interface Change
public Instance getInstanceValue()
Change
getInstanceValue
in interface Change
public Instance getOriginalInstanceValue()
Change
getOriginalInstanceValue
in interface Change
public java.util.List<java.beans.PropertyChangeEvent> getModifiedProperties()
Change
getModifiedProperties
in interface Change
public java.lang.String toString()
toString
in class java.lang.Object