org.nuiton.util.beans.PropertyDiff Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nuiton-utils Show documentation
Show all versions of nuiton-utils Show documentation
Library of usefull classes to be used in any project.
/*
* #%L
* Nuiton Utils
* %%
* Copyright (C) 2004 - 2011 CodeLutin
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
package org.nuiton.util.beans;
/**
* TODO
*
* @author Brendan Le Ny - [email protected]
* @since 2.4
*/
public class PropertyDiff {
protected Class> propertyType;
protected String sourceProperty;
protected Object sourceValue;
protected String targetProperty;
protected Object targetValue;
public PropertyDiff() {
}
public PropertyDiff(String sourceProperty,
Object sourceValue,
String targetProperty,
Object targetValue,
Class> propertyType) {
this.sourceProperty = sourceProperty;
this.sourceValue = sourceValue;
this.targetProperty = targetProperty;
this.targetValue = targetValue;
this.propertyType = propertyType;
}
public String getSourceProperty() {
return sourceProperty;
}
public void setSourceProperty(String sourceProperty) {
this.sourceProperty = sourceProperty;
}
public Object getSourceValue() {
return sourceValue;
}
public void setSourceValue(Object sourceValue) {
this.sourceValue = sourceValue;
}
public String getTargetProperty() {
return targetProperty;
}
public void setTargetProperty(String targetProperty) {
this.targetProperty = targetProperty;
}
public Object getTargetValue() {
return targetValue;
}
public void setTargetValue(Object targetValue) {
this.targetValue = targetValue;
}
public Class> getPropertyType() {
return propertyType;
}
public void setPropertyType(Class> propertyType) {
this.propertyType = propertyType;
}
}