Class ItemCloneCreator.CopyAttribute

  • Enclosing class:
    ItemCloneCreator

    public static class ItemCloneCreator.CopyAttribute
    extends java.lang.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.
    • Method Detail

      • 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

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

        protected void setTranslatedValue​(java.lang.Object translatedValue)
      • getQualifier

        public java.lang.String getQualifier()
        Returns attribute qualifier.
      • getOriginalValue

        public java.lang.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)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object