Class InstanceImpl

  • All Implemented Interfaces:
    Instance

    public class InstanceImpl
    extends java.lang.Object
    implements Instance
    External representation of an instance.
    • Constructor Summary

      Constructors 
      Constructor Description
      InstanceImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAuthor()  
      java.lang.String getClassType()  
      java.lang.String getId()  
      java.lang.String getObjectKey()  
      java.lang.String getObjectText()  
      java.lang.String getObjectType()  
      java.lang.String getQuantity()
      Sub instances might occur n times in a BOM, therefore quantity is needed.
      java.lang.String getQuantityUnit()  
      boolean isComplete()  
      boolean isConsistent()  
      void setAuthor​(java.lang.String author)
      Sets instance author.
      void setClassType​(java.lang.String classType)
      Sets type of the underlying class, typically 300
      void setComplete​(boolean complete)
      Indicates that instance is complete
      void setConsistent​(boolean consistent)
      Indicates that instance does not carry conflicts
      void setId​(java.lang.String id)
      Sets instance ID
      void setObjectKey​(java.lang.String objectKey)
      Sets objects key (product ID for material BOM items)
      void setObjectText​(java.lang.String objectText)
      Sets language dependent text
      void setObjectType​(java.lang.String objectType)
      Sets object type (typically 'KLAH' or 'MARA').
      void setQuantity​(java.lang.String quantity)
      Sets quantity
      void setQuantityUnit​(java.lang.String quantityUnit)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InstanceImpl

        public InstanceImpl()
    • Method Detail

      • setId

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

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

        public void setObjectType​(java.lang.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 java.lang.String getObjectType()
        Specified by:
        getObjectType in interface Instance
        Returns:
        Instances object type
      • getObjectKey

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

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

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

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

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

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

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

        public void setAuthor​(java.lang.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 java.lang.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​(java.lang.String quantity)
        Description copied from interface: Instance
        Sets quantity
        Specified by:
        setQuantity in interface Instance
      • getQuantityUnit

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

        public void setQuantityUnit​(java.lang.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