Interface Instance
- All Known Implementing Classes:
InstanceImpl
public interface Instance
External representation of an instance.
-
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)
-
Method Details
-
setId
Sets instance ID- Parameters:
id-
-
getId
String getId()- Returns:
- Instance ID
-
setObjectType
Sets object type (typically 'KLAH' or 'MARA'). This attribute indicates that a node in the configuration represents a product or an abstract class node.- Parameters:
objectType-
-
getObjectType
String getObjectType()- Returns:
- Instances object type
-
isComplete
boolean isComplete()- Returns:
- Instance complete?
-
setComplete
void setComplete(boolean complete) Indicates that instance is complete- Parameters:
complete-
-
setConsistent
void setConsistent(boolean consistent) Indicates that instance does not carry conflicts- Parameters:
consistent- Instance consistent?
-
isConsistent
boolean isConsistent()- Returns:
- Instance consistent?
-
setQuantityUnit
- Parameters:
quantityUnit- in internal SAP format
-
getQuantityUnit
String getQuantityUnit()- Returns:
- Instance unit in internal SAP format
-
setQuantity
Sets quantity- Parameters:
quantity-
-
getQuantity
String getQuantity()Sub instances might occur n times in a BOM, therefore quantity is needed.- Returns:
- instance quantity
-
setAuthor
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- Parameters:
author-
-
getAuthor
String getAuthor()- Returns:
- Instance author
-
setClassType
Sets type of the underlying class, typically 300- Parameters:
classType-
-
getClassType
String getClassType()- Returns:
- Class type
-
setObjectText
Sets language dependent text- Parameters:
objectText-
-
getObjectText
String getObjectText()- Returns:
- Language dependent text
-
setObjectKey
Sets objects key (product ID for material BOM items)- Parameters:
objectKey-
-
getObjectKey
String getObjectKey()- Returns:
- Object key
-