Nuxeo ECM Projects 5.6-RC1

org.nuxeo.ecm.diff.model.impl
Class SimplePropertyDiff

java.lang.Object
  extended by org.nuxeo.ecm.diff.model.PropertyDiff
      extended by 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

Constructor Summary
SimplePropertyDiff(String propertyType)
          Instantiates a new simple property diff with a property type.
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.
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.
 
Method Summary
 boolean equals(Object other)
           
 String getLeftValue()
           
 String getRightValue()
           
 void setLeftValue(String leftValue)
           
 void setRightValue(String rightValue)
           
 String toString()
           
 
Methods inherited from class org.nuxeo.ecm.diff.model.PropertyDiff
getDifferenceType, getPropertyType, isComplexListType, isComplexType, isContentListType, isContentType, isListType, isScalarListType, isSimpleType, setDifferenceType, setPropertyType
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 type
leftValue - the left value
rightValue - 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 type
differenceType - the difference type
leftValue - the left value
rightValue - the right value
Method Detail

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)

Nuxeo ECM Projects 5.6-RC1

Copyright © 2012 Nuxeo SA. All Rights Reserved.