public static class ItemCloneCreator.CopyItem extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
CopyItem(ComposedType targetType,
Item original) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttribute(AttributeDescriptor ad,
Object value) |
protected void |
addPresetAttribute(AttributeDescriptor ad,
Object translated) |
Item |
getCopy()
Returns the newly created copy or
null if no copy has been created (yet). |
Item |
getOriginal()
Returns the original item to be copied.
|
protected Collection<ItemCloneCreator.CopyAttribute> |
getPartOfAttributes() |
Collection<ItemCloneCreator.CopyAttribute> |
getPendingAttributes()
Returns all attribute wrappers which have not been marked as consumed.
|
ComposedType |
getTargetType()
Returns configured target type.
|
boolean |
isComplete()
Tells whether or not the wrapped item has been copied completely.
|
protected void |
setCopy(Item copy) |
String |
toString() |
protected CopyItem(ComposedType targetType, Item 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 Collection<ItemCloneCreator.CopyAttribute> getPartOfAttributes()
public Collection<ItemCloneCreator.CopyAttribute> getPendingAttributes()
protected void addAttribute(AttributeDescriptor ad, Object value)
protected void addPresetAttribute(AttributeDescriptor ad, Object translated)
public Item getOriginal()
public Item getCopy()
null if no copy has been created (yet).protected void setCopy(Item copy)
public ComposedType getTargetType()
null - in that case a default type is being used (usually
the source item type).Copyright © 2017 SAP SE. All Rights Reserved.