Package de.hybris.platform.jalo.type
Class ItemCloneCreator.CopyItem
java.lang.Object
de.hybris.platform.jalo.type.ItemCloneCreator.CopyItem
- Enclosing class:
- ItemCloneCreator
Wrapper for a single (partOf) item to be copied. It holds both original and copy item. Finally it keeps track of
all attributes to be written.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAttribute(AttributeDescriptor ad, Object value) protected voidaddPresetAttribute(AttributeDescriptor ad, Object translated) getCopy()Returns the newly created copy ornullif no copy has been created (yet).Returns the original item to be copied.protected Collection<ItemCloneCreator.CopyAttribute>Returns all attribute wrappers which have not been marked as consumed.Returns configured target type.booleanTells whether or not the wrapped item has been copied completely.protected voidtoString()
-
Constructor Details
-
CopyItem
-
-
Method Details
-
isComplete
public boolean isComplete()Tells whether or not the wrapped item has been copied completely. If it returnsfalseeither no copy has been created yet or there are attributes left which have not been set upon the newly created copy. -
getPartOfAttributes
-
getPendingAttributes
Returns all attribute wrappers which have not been marked as consumed. -
addAttribute
-
addPresetAttribute
-
getOriginal
Returns the original item to be copied. -
getCopy
Returns the newly created copy ornullif no copy has been created (yet). -
setCopy
-
getTargetType
Returns configured target type. May benull- in that case a default type is being used (usually the source item type). -
toString
-