Class InstanceImpl
java.lang.Object
de.hybris.platform.sap.productconfig.runtime.interf.external.impl.InstanceImpl
- All Implemented Interfaces:
Instance
External representation of an instance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Sub instances might occur n times in a BOM, therefore quantity is needed.booleanbooleanvoidSets instance author.voidsetClassType(String classType) Sets type of the underlying class, typically 300voidsetComplete(boolean complete) Indicates that instance is completevoidsetConsistent(boolean consistent) Indicates that instance does not carry conflictsvoidSets instance IDvoidsetObjectKey(String objectKey) Sets objects key (product ID for material BOM items)voidsetObjectText(String objectText) Sets language dependent textvoidsetObjectType(String objectType) Sets object type (typically 'KLAH' or 'MARA').voidsetQuantity(String quantity) Sets quantityvoidsetQuantityUnit(String quantityUnit)
-
Constructor Details
-
InstanceImpl
public InstanceImpl()
-
-
Method Details
-
setId
Description copied from interface:InstanceSets instance ID -
getId
-
setObjectType
Description copied from interface:InstanceSets 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:
setObjectTypein interfaceInstance
-
getObjectType
- Specified by:
getObjectTypein interfaceInstance- Returns:
- Instances object type
-
getObjectKey
- Specified by:
getObjectKeyin interfaceInstance- Returns:
- Object key
-
setObjectKey
Description copied from interface:InstanceSets objects key (product ID for material BOM items)- Specified by:
setObjectKeyin interfaceInstance
-
getObjectText
- Specified by:
getObjectTextin interfaceInstance- Returns:
- Language dependent text
-
setObjectText
Description copied from interface:InstanceSets language dependent text- Specified by:
setObjectTextin interfaceInstance
-
getClassType
- Specified by:
getClassTypein interfaceInstance- Returns:
- Class type
-
setClassType
Description copied from interface:InstanceSets type of the underlying class, typically 300- Specified by:
setClassTypein interfaceInstance
-
getAuthor
-
setAuthor
Description copied from interface:InstanceSets 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 -
getQuantity
Description copied from interface:InstanceSub instances might occur n times in a BOM, therefore quantity is needed.- Specified by:
getQuantityin interfaceInstance- Returns:
- instance quantity
-
setQuantity
Description copied from interface:InstanceSets quantity- Specified by:
setQuantityin interfaceInstance
-
getQuantityUnit
- Specified by:
getQuantityUnitin interfaceInstance- Returns:
- Instance unit in internal SAP format
-
setQuantityUnit
- Specified by:
setQuantityUnitin interfaceInstance- Parameters:
quantityUnit- in internal SAP format
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistentin interfaceInstance- Returns:
- Instance consistent?
-
setConsistent
public void setConsistent(boolean consistent) Description copied from interface:InstanceIndicates that instance does not carry conflicts- Specified by:
setConsistentin interfaceInstance- Parameters:
consistent- Instance consistent?
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceInstance- Returns:
- Instance complete?
-
setComplete
public void setComplete(boolean complete) Description copied from interface:InstanceIndicates that instance is complete- Specified by:
setCompletein interfaceInstance
-