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 | 42 | this(propertyValues, propertyValue, null, null); |
18 | 42 | } |
19 | |
|
20 | |
public PropertyValueVisitEvent(MutablePropertyValues propertyValues, PropertyValue propertyValue, Object oldValue, |
21 | |
Object newValue) { |
22 | 84 | super(); |
23 | 84 | this.propertyValues = propertyValues; |
24 | 84 | this.propertyValue = propertyValue; |
25 | 84 | this.oldValue = oldValue; |
26 | 84 | this.newValue = newValue; |
27 | 84 | } |
28 | |
|
29 | |
public PropertyValue getPropertyValue() { |
30 | 84 | return propertyValue; |
31 | |
} |
32 | |
|
33 | |
public void setPropertyValue(PropertyValue propertyValue) { |
34 | 0 | this.propertyValue = propertyValue; |
35 | 0 | } |
36 | |
|
37 | |
public Object getOldValue() { |
38 | 42 | return oldValue; |
39 | |
} |
40 | |
|
41 | |
public void setOldValue(Object oldValue) { |
42 | 0 | this.oldValue = oldValue; |
43 | 0 | } |
44 | |
|
45 | |
public Object getNewValue() { |
46 | 42 | 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 | |
} |