Class ItemModelCloneCreator.CopyAttribute

java.lang.Object
de.hybris.platform.servicelayer.internal.model.impl.ItemModelCloneCreator.CopyAttribute
Enclosing class:
ItemModelCloneCreator

public static class ItemModelCloneCreator.CopyAttribute extends Object
A wrapper for each item attribute to be stored while creating a copy. It hold the original and translated attribute value and keeps track on whether this attribute has been consumed (written) yet or not.
  • Constructor Details

  • Method Details

    • isPartOf

      public boolean isPartOf()
      Returns whether or not the attribute is marked as partOf.
    • isLocalized

      public boolean isLocalized()
      Returns whether or not the attribute is marked as partOf.
    • isRequiredForCreation

      public boolean isRequiredForCreation()
      Tells whether or not the attribute is required for item creation.
    • getTranslatedValue

      public Object getTranslatedValue()
      Returns translated attribute value.
      Throws:
      IllegalStateException - if the attribute has not been translated yet
    • setTranslatedValue

      protected void setTranslatedValue(Object translatedValue)
      Registers translated value.
    • getItem

      Returns owning item wrapper.
    • getQualifier

      public String getQualifier()
      Returns attribute qualifier.
    • getOriginalValue

      public Object getOriginalValue()
      Returns the original attribute value.
    • isTranslated

      public boolean isTranslated()
      Tells whether or not the attribute has been translated yet.
    • isConsumed

      public boolean isConsumed()
      Tells whether the attribute has been consumed yet. Consumed means that the attribute value has been translated and it has been stored in copied item.
    • setConsumed

      protected void setConsumed(boolean consumed)
      Marks wrapper as consumed.
    • toString

      public String toString()
      Overrides:
      toString in class Object