java.lang.Object
de.hybris.platform.sap.productconfig.runtime.interf.external.impl.InstanceImpl
All Implemented Interfaces:
Instance

public class InstanceImpl extends Object implements Instance
External representation of an instance.
  • Constructor Details

    • InstanceImpl

      public InstanceImpl()
  • Method Details

    • setId

      public void setId(String id)
      Description copied from interface: Instance
      Sets instance ID
      Specified by:
      setId in interface Instance
    • getId

      public String getId()
      Specified by:
      getId in interface Instance
      Returns:
      Instance ID
    • setObjectType

      public void setObjectType(String objectType)
      Description copied from interface: Instance
      Sets object type (typically 'KLAH' or 'MARA'). This attribute indicates that a node in the configuration represents a product or an abstract class node.
      Specified by:
      setObjectType in interface Instance
    • getObjectType

      public String getObjectType()
      Specified by:
      getObjectType in interface Instance
      Returns:
      Instances object type
    • getObjectKey

      public String getObjectKey()
      Specified by:
      getObjectKey in interface Instance
      Returns:
      Object key
    • setObjectKey

      public void setObjectKey(String objectKey)
      Description copied from interface: Instance
      Sets objects key (product ID for material BOM items)
      Specified by:
      setObjectKey in interface Instance
    • getObjectText

      public String getObjectText()
      Specified by:
      getObjectText in interface Instance
      Returns:
      Language dependent text
    • setObjectText

      public void setObjectText(String objectText)
      Description copied from interface: Instance
      Sets language dependent text
      Specified by:
      setObjectText in interface Instance
    • getClassType

      public String getClassType()
      Specified by:
      getClassType in interface Instance
      Returns:
      Class type
    • setClassType

      public void setClassType(String classType)
      Description copied from interface: Instance
      Sets type of the underlying class, typically 300
      Specified by:
      setClassType in interface Instance
    • getAuthor

      public String getAuthor()
      Specified by:
      getAuthor in interface Instance
      Returns:
      Instance author
    • setAuthor

      public void setAuthor(String author)
      Description copied from interface: Instance
      Sets instance author. Following values are possible:
      1 - action
      2 - selection condition
      3 - classification
      4 - constraint
      5 - dynamic database
      6 - static knowledgebase (e.g. bill of materials)
      7 - procedure
      8 - default
      A - monitoring rule
      B - reevaluating rule
      X - external system
      Specified by:
      setAuthor in interface Instance
    • getQuantity

      public String getQuantity()
      Description copied from interface: Instance
      Sub instances might occur n times in a BOM, therefore quantity is needed.
      Specified by:
      getQuantity in interface Instance
      Returns:
      instance quantity
    • setQuantity

      public void setQuantity(String quantity)
      Description copied from interface: Instance
      Sets quantity
      Specified by:
      setQuantity in interface Instance
    • getQuantityUnit

      public String getQuantityUnit()
      Specified by:
      getQuantityUnit in interface Instance
      Returns:
      Instance unit in internal SAP format
    • setQuantityUnit

      public void setQuantityUnit(String quantityUnit)
      Specified by:
      setQuantityUnit in interface Instance
      Parameters:
      quantityUnit - in internal SAP format
    • isConsistent

      public boolean isConsistent()
      Specified by:
      isConsistent in interface Instance
      Returns:
      Instance consistent?
    • setConsistent

      public void setConsistent(boolean consistent)
      Description copied from interface: Instance
      Indicates that instance does not carry conflicts
      Specified by:
      setConsistent in interface Instance
      Parameters:
      consistent - Instance consistent?
    • isComplete

      public boolean isComplete()
      Specified by:
      isComplete in interface Instance
      Returns:
      Instance complete?
    • setComplete

      public void setComplete(boolean complete)
      Description copied from interface: Instance
      Indicates that instance is complete
      Specified by:
      setComplete in interface Instance