Class ObjectValueContainer.ObjectValueHolder
- java.lang.Object
-
- de.hybris.platform.cockpit.services.values.ObjectValueContainer.ObjectValueHolder
-
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- ObjectValueContainer
public class ObjectValueContainer.ObjectValueHolder extends java.lang.Object implements java.lang.CloneableEncapsulates a single property value. Hold current value, original value and (after update) the live value too.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassureLoaded()protected ObjectValueContainer.ObjectValueHolderclone()booleanequals(java.lang.Object obj)java.lang.ObjectgetCurrentValue()Returns the most recent value for this property.java.lang.StringgetLanguageIso()java.lang.ObjectgetLiveValue()java.lang.ObjectgetLocalValue()java.lang.ObjectgetOriginalValue()PropertyDescriptorgetPropertyDescriptor()booleanhasConflict()inthashCode()booleanisModified()voidsetLocalValue(java.lang.Object currentValue)voidsetModified(boolean modified)voidstored()java.lang.StringtoString()voidunmodify()voidupdate(java.lang.Object liveValue)
-
-
-
Method Detail
-
clone
protected ObjectValueContainer.ObjectValueHolder clone()
- Overrides:
clonein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getCurrentValue
public java.lang.Object getCurrentValue()
Returns the most recent value for this property. If the property has been modified this returns the local value. Otherwise it returns the live value (which may be the same as local or different after update).
-
setModified
public void setModified(boolean modified)
-
getLanguageIso
public java.lang.String getLanguageIso()
-
getLiveValue
public java.lang.Object getLiveValue()
-
getLocalValue
public java.lang.Object getLocalValue()
-
getOriginalValue
public java.lang.Object getOriginalValue()
-
getPropertyDescriptor
public PropertyDescriptor getPropertyDescriptor()
-
hasConflict
public boolean hasConflict()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isModified
public boolean isModified()
-
setLocalValue
public void setLocalValue(java.lang.Object currentValue)
-
stored
public void stored()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
unmodify
public void unmodify()
-
update
public void update(java.lang.Object liveValue)
-
assureLoaded
protected void assureLoaded()
-
-