Class ItemCloneCreator.CopyItem

java.lang.Object
de.hybris.platform.jalo.type.ItemCloneCreator.CopyItem
Enclosing class:
ItemCloneCreator

public static class ItemCloneCreator.CopyItem extends Object
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 Details

  • Method Details

    • isComplete

      public boolean isComplete()
      Tells whether or not the wrapped item has been copied completely. If it returns false either no copy has been created yet or there are attributes left which have not been set upon the newly created copy.
    • getPartOfAttributes

      protected Collection<ItemCloneCreator.CopyAttribute> getPartOfAttributes()
    • getPendingAttributes

      public Collection<ItemCloneCreator.CopyAttribute> getPendingAttributes()
      Returns all attribute wrappers which have not been marked as consumed.
    • addAttribute

      protected void addAttribute(AttributeDescriptor ad, Object value)
    • addPresetAttribute

      protected void addPresetAttribute(AttributeDescriptor ad, Object translated)
    • getOriginal

      public Item getOriginal()
      Returns the original item to be copied.
    • getCopy

      public Item getCopy()
      Returns the newly created copy or null if no copy has been created (yet).
    • setCopy

      protected void setCopy(Item copy)
    • getTargetType

      public ComposedType getTargetType()
      Returns configured target type. May be null - in that case a default type is being used (usually the source item type).
    • toString

      public String toString()
      Overrides:
      toString in class Object