org.nuxeo.ecm.diff.model.impl
Class SimplePropertyDiff
java.lang.Object
org.nuxeo.ecm.diff.model.PropertyDiff
org.nuxeo.ecm.diff.model.impl.SimplePropertyDiff
- All Implemented Interfaces:
- Serializable
public class SimplePropertyDiff
- extends PropertyDiff
Implementation of PropertyDiff
for a simple property.
- Since:
- 5.6
- Author:
- Antoine Taillefer
- See Also:
- Serialized Form
Methods inherited from class org.nuxeo.ecm.diff.model.PropertyDiff |
getDifferenceType, getPropertyType, isComplexListType, isComplexType, isContentListType, isContentType, isListType, isScalarListType, isSimpleType, setDifferenceType, setPropertyType |
SimplePropertyDiff
public SimplePropertyDiff(String propertyType)
- Instantiates a new simple property diff with a property type.
- Parameters:
propertyType
- the property type
SimplePropertyDiff
public SimplePropertyDiff(String propertyType,
String leftValue,
String rightValue)
- Instantiates a new simple property diff with a property type, the
DifferenceType.different
difference type, a left value and right
value.
- Parameters:
propertyType
- the property typeleftValue
- the left valuerightValue
- the right value
SimplePropertyDiff
public SimplePropertyDiff(String propertyType,
DifferenceType differenceType,
String leftValue,
String rightValue)
- Instantiates a new simple property diff with a property type, difference
type, left value and right value.
- Parameters:
propertyType
- the property typedifferenceType
- the difference typeleftValue
- the left valuerightValue
- the right value
equals
public boolean equals(Object other)
- Overrides:
equals
in class PropertyDiff
toString
public String toString()
- Overrides:
toString
in class PropertyDiff
getLeftValue
public String getLeftValue()
setLeftValue
public void setLeftValue(String leftValue)
getRightValue
public String getRightValue()
setRightValue
public void setRightValue(String rightValue)
Copyright © 2012 Nuxeo SA. All Rights Reserved.