View Javadoc
1   /*
2    * #%L
3    * Nuiton Utils
4    * %%
5    * Copyright (C) 2004 - 2011 CodeLutin
6    * %%
7    * This program is free software: you can redistribute it and/or modify
8    * it under the terms of the GNU Lesser General Public License as 
9    * published by the Free Software Foundation, either version 3 of the 
10   * License, or (at your option) any later version.
11   * 
12   * This program is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   * GNU General Lesser Public License for more details.
16   * 
17   * You should have received a copy of the GNU General Lesser Public 
18   * License along with this program.  If not, see
19   * <http://www.gnu.org/licenses/lgpl-3.0.html>.
20   * #L%
21   */
22  package org.nuiton.util.beans;
23  
24  /**
25   * TODO
26   *
27   * @author Brendan Le Ny - bleny@codelutin.com
28   * @since 2.4
29   */
30  public class PropertyDiff {
31  
32      protected Class<?> propertyType;
33  
34      protected String sourceProperty;
35  
36      protected Object sourceValue;
37  
38      protected String targetProperty;
39  
40      protected Object targetValue;
41  
42      public PropertyDiff() {
43      }
44  
45      public PropertyDiff(String sourceProperty,
46                          Object sourceValue,
47                          String targetProperty,
48                          Object targetValue,
49                          Class<?> propertyType) {
50          this.sourceProperty = sourceProperty;
51          this.sourceValue = sourceValue;
52          this.targetProperty = targetProperty;
53          this.targetValue = targetValue;
54          this.propertyType = propertyType;
55      }
56  
57      public String getSourceProperty() {
58          return sourceProperty;
59      }
60  
61      public void setSourceProperty(String sourceProperty) {
62          this.sourceProperty = sourceProperty;
63      }
64  
65      public Object getSourceValue() {
66          return sourceValue;
67      }
68  
69      public void setSourceValue(Object sourceValue) {
70          this.sourceValue = sourceValue;
71      }
72  
73      public String getTargetProperty() {
74          return targetProperty;
75      }
76  
77      public void setTargetProperty(String targetProperty) {
78          this.targetProperty = targetProperty;
79      }
80  
81      public Object getTargetValue() {
82          return targetValue;
83      }
84  
85      public void setTargetValue(Object targetValue) {
86          this.targetValue = targetValue;
87      }
88  
89      public Class<?> getPropertyType() {
90          return propertyType;
91      }
92  
93      public void setPropertyType(Class<?> propertyType) {
94          this.propertyType = propertyType;
95      }
96  
97  }