| 1 | |
package org.kuali.spring.util.event; |
| 2 | |
|
| 3 | |
import org.springframework.beans.MutablePropertyValues; |
| 4 | |
import org.springframework.beans.PropertyValue; |
| 5 | |
|
| 6 | |
public class PropertyValueVisitEvent { |
| 7 | |
MutablePropertyValues propertyValues; |
| 8 | |
PropertyValue propertyValue; |
| 9 | |
Object oldValue; |
| 10 | |
Object newValue; |
| 11 | |
|
| 12 | |
public PropertyValueVisitEvent() { |
| 13 | 0 | this(null, null, null, null); |
| 14 | 0 | } |
| 15 | |
|
| 16 | |
public PropertyValueVisitEvent(MutablePropertyValues propertyValues, PropertyValue propertyValue) { |
| 17 | 12 | this(propertyValues, propertyValue, null, null); |
| 18 | 12 | } |
| 19 | |
|
| 20 | |
public PropertyValueVisitEvent(MutablePropertyValues propertyValues, PropertyValue propertyValue, |
| 21 | |
Object oldValue, Object newValue) { |
| 22 | 24 | super(); |
| 23 | 24 | this.propertyValues = propertyValues; |
| 24 | 24 | this.propertyValue = propertyValue; |
| 25 | 24 | this.oldValue = oldValue; |
| 26 | 24 | this.newValue = newValue; |
| 27 | 24 | } |
| 28 | |
|
| 29 | |
public PropertyValue getPropertyValue() { |
| 30 | 24 | return propertyValue; |
| 31 | |
} |
| 32 | |
|
| 33 | |
public void setPropertyValue(PropertyValue propertyValue) { |
| 34 | 0 | this.propertyValue = propertyValue; |
| 35 | 0 | } |
| 36 | |
|
| 37 | |
public Object getOldValue() { |
| 38 | 12 | return oldValue; |
| 39 | |
} |
| 40 | |
|
| 41 | |
public void setOldValue(Object oldValue) { |
| 42 | 0 | this.oldValue = oldValue; |
| 43 | 0 | } |
| 44 | |
|
| 45 | |
public Object getNewValue() { |
| 46 | 12 | return newValue; |
| 47 | |
} |
| 48 | |
|
| 49 | |
public void setNewValue(Object newValue) { |
| 50 | 0 | this.newValue = newValue; |
| 51 | 0 | } |
| 52 | |
|
| 53 | |
public MutablePropertyValues getPropertyValues() { |
| 54 | 0 | return propertyValues; |
| 55 | |
} |
| 56 | |
|
| 57 | |
public void setPropertyValues(MutablePropertyValues propertyValues) { |
| 58 | 0 | this.propertyValues = propertyValues; |
| 59 | 0 | } |
| 60 | |
|
| 61 | |
} |