public static class ItemModelCloneCreator.CopyItem
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
CopyItem(ComposedTypeModel targetType,
ItemModel original) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttribute(AttributeDescriptorModel attributeDescriptor,
java.util.Set<de.hybris.platform.servicelayer.internal.model.impl.ItemModelCloneCreator.ModifiersFlag> modifiers,
java.lang.Object value)
Registers a new attribute to store while creating a new copy.
|
protected void |
addPresetAttribute(AttributeDescriptorModel attributeDescriptor,
java.util.Set<de.hybris.platform.servicelayer.internal.model.impl.ItemModelCloneCreator.ModifiersFlag> modifiers,
java.lang.Object translated)
Registers a new preset attribute to store while creating a new copy.
|
ItemModel |
getCopy()
Returns the newly created copy or
null if no copy has been created (yet). |
ItemModel |
getOriginal()
Returns the original item to be copied.
|
protected java.util.Collection<ItemModelCloneCreator.CopyAttribute> |
getPartOfAttributes()
Returns all partOf attributes
|
java.util.Collection<ItemModelCloneCreator.CopyAttribute> |
getPendingAttributes()
Returns all attribute wrappers which have not been marked as consumed.
|
ComposedTypeModel |
getTargetType()
Returns configured target type.
|
boolean |
isComplete()
Tells whether or not the wrapped item has been copied completely.
|
protected void |
setCopy(ItemModel copy)
Registers the copy item.
|
java.lang.String |
toString() |
protected CopyItem(ComposedTypeModel targetType, ItemModel original)
public boolean isComplete()
false either no
copy has been created yet or there are attributes left which have not been set upon the newly created copy.protected java.util.Collection<ItemModelCloneCreator.CopyAttribute> getPartOfAttributes()
public java.util.Collection<ItemModelCloneCreator.CopyAttribute> getPendingAttributes()
protected void addAttribute(AttributeDescriptorModel attributeDescriptor, java.util.Set<de.hybris.platform.servicelayer.internal.model.impl.ItemModelCloneCreator.ModifiersFlag> modifiers, java.lang.Object value)
protected void addPresetAttribute(AttributeDescriptorModel attributeDescriptor, java.util.Set<de.hybris.platform.servicelayer.internal.model.impl.ItemModelCloneCreator.ModifiersFlag> modifiers, java.lang.Object translated)
public ItemModel getOriginal()
public ItemModel getCopy()
null if no copy has been created (yet).protected void setCopy(ItemModel copy)
public ComposedTypeModel getTargetType()
null - in that case a default type is being used (usually
the source item type).public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 SAP SE. All Rights Reserved.