Package de.hybris.platform.jalo.type
Class ItemCloneCreator.CopyAttribute
java.lang.Object
de.hybris.platform.jalo.type.ItemCloneCreator.CopyAttribute
- Enclosing class:
- ItemCloneCreator
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 Summary
ConstructorsModifierConstructorDescriptionprotectedCopyAttribute(ItemCloneCreator.CopyItem item, AttributeDescriptor ad, Object value) -
Method Summary
Modifier and TypeMethodDescriptiongetItem()Returns owning item wrapper.Returns the original attribute value.Returns attribute qualifier.Returns translated attribute value.booleanTells whether the attribute has been consumed yet.booleanisPartOf()Returns whether or not the attribute is marked as partOf.booleanTells whether or not the attribute is required for item creation.booleanTells whether or not the attribute has been translated yet.protected voidsetConsumed(boolean consumed) protected voidsetTranslatedValue(Object translatedValue) toString()
-
Constructor Details
-
CopyAttribute
-
-
Method Details
-
isPartOf
public boolean isPartOf()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
Returns translated attribute value.- Throws:
IllegalStateException- if the attribute has not been translated yet
-
setTranslatedValue
-
getItem
Returns owning item wrapper. -
getQualifier
Returns attribute qualifier. -
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) -
toString
-