Class InstanceModelImpl
java.lang.Object
de.hybris.platform.sap.productconfig.runtime.interf.model.impl.BaseModelImpl
de.hybris.platform.sap.productconfig.runtime.interf.model.impl.InstanceModelImpl
- All Implemented Interfaces:
BaseModel,InstanceModel,Serializable,Cloneable
Default implementation of the
InstanceModel- See Also:
-
Field Summary
Fields inherited from class de.hybris.platform.sap.productconfig.runtime.interf.model.impl.BaseModelImpl
DEFAULT_ARRAY_LIST_CAPACITYFields inherited from interface de.hybris.platform.sap.productconfig.runtime.interf.model.InstanceModel
GENERAL_GROUP_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCstic(CsticModel cstic) booleanprotected List<CsticModel>getCsticsForGroup(CsticGroupModel csticModelGroup) protected StringgetDisplayName(String langDepName, String name) getId()getName()getSubInstance(String subInstanceId) inthashCode()protected voidbooleanbooleanbooleanbooleanremoveCstic(CsticModel cstic) removeSubInstance(String subInstanceId) removes the subinstance from the subinstance list for the given subinstance idvoidsetComplete(boolean complete) voidsetConsistent(boolean consistent) voidsetCsticGroups(List<CsticGroupModel> csticGroups) voidsetCstics(List<CsticModel> cstics) voidvoidsetLanguageDependentName(String languageDependentName) voidvoidsetPosition(String position) voidsetRootInstance(boolean rootInstance) voidsetSubInstance(InstanceModel subInstance) voidsetSubInstances(List<InstanceModel> subInstances) voidsetVariantConditions(List<VariantConditionModel> variantConditions) toString()
-
Constructor Details
-
InstanceModelImpl
public InstanceModelImpl()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceInstanceModel- Returns:
- the instance id
-
setId
- Specified by:
setIdin interfaceInstanceModel- Parameters:
id- instance id
-
getName
- Specified by:
getNamein interfaceInstanceModel- Returns:
- the instance name
-
setName
- Specified by:
setNamein interfaceInstanceModel- Parameters:
name- instance name
-
getLanguageDependentName
- Specified by:
getLanguageDependentNamein interfaceInstanceModel- Returns:
- the instance language dependent name
-
setLanguageDependentName
- Specified by:
setLanguageDependentNamein interfaceInstanceModel- Parameters:
languageDependentName- instance language dependent name
-
getSubInstances
- Specified by:
getSubInstancesin interfaceInstanceModel- Returns:
- the list of subinstance models of this instance
-
setSubInstances
- Specified by:
setSubInstancesin interfaceInstanceModel- Parameters:
subInstances- list of subinstance models
-
getCstics
- Specified by:
getCsticsin interfaceInstanceModel- Returns:
- unmodifiable list of characteristic models of this instance, to add/remove cstics, use manipulators of this interface
-
setCstics
- Specified by:
setCsticsin interfaceInstanceModel- Parameters:
cstics- list of characteristic models
-
isRootInstance
public boolean isRootInstance()- Specified by:
isRootInstancein interfaceInstanceModel- Returns:
- true if this instance is a root instance
-
setRootInstance
public void setRootInstance(boolean rootInstance) - Specified by:
setRootInstancein interfaceInstanceModel- Parameters:
rootInstance- flag indicating whether this instance is a root instance
-
isComplete
public boolean isComplete()- Specified by:
isCompletein interfaceInstanceModel- Returns:
- true if this instance is complete
-
setComplete
public void setComplete(boolean complete) - Specified by:
setCompletein interfaceInstanceModel- Parameters:
complete- flag indicating whether this instance is complete
-
isConsistent
public boolean isConsistent()- Specified by:
isConsistentin interfaceInstanceModel- Returns:
- true if this instance is consistent
-
setConsistent
public void setConsistent(boolean consistent) - Specified by:
setConsistentin interfaceInstanceModel- Parameters:
consistent- flag indicating whether this instance is consistent
-
getCstic
- Specified by:
getCsticin interfaceInstanceModel- Parameters:
csticName- characteristic name- Returns:
- the characteristic model for the given characteristic name
-
initCache
protected void initCache() -
addCstic
- Specified by:
addCsticin interfaceInstanceModel- Parameters:
cstic- characteristic model
-
removeCstic
- Specified by:
removeCsticin interfaceInstanceModel- Parameters:
cstic- characteristic model- Returns:
- true if the cstics was part of the list
-
getSubInstance
- Specified by:
getSubInstancein interfaceInstanceModel- Parameters:
subInstanceId- subinstance id- Returns:
- the subinstance model for the given subinstance id
-
removeSubInstance
Description copied from interface:InstanceModelremoves the subinstance from the subinstance list for the given subinstance id- Specified by:
removeSubInstancein interfaceInstanceModel- Parameters:
subInstanceId- subinstance id- Returns:
- removed subinstance model
-
setSubInstance
- Specified by:
setSubInstancein interfaceInstanceModel- Parameters:
subInstance- subinstance model
-
setCsticGroups
- Specified by:
setCsticGroupsin interfaceInstanceModel- Parameters:
csticGroups- list of characteristic group models
-
getCsticGroups
- Specified by:
getCsticGroupsin interfaceInstanceModel- Returns:
- the list of characteristic group models from this instance
-
retrieveCsticGroupsWithCstics
- Specified by:
retrieveCsticGroupsWithCsticsin interfaceInstanceModel- Returns:
- the list of
CsticGroupfrom this instance
-
getDisplayName
-
getCsticsForGroup
-
getPosition
- Specified by:
getPositionin interfaceInstanceModel- Returns:
- the BOM position of this instance
-
setPosition
- Specified by:
setPositionin interfaceInstanceModel- Parameters:
position- BOM position of this instance
-
hashCode
public int hashCode() -
equals
-
toString
-
getVariantConditions
- Specified by:
getVariantConditionsin interfaceInstanceModel- Returns:
- the variantConditions
-
setVariantConditions
- Specified by:
setVariantConditionsin interfaceInstanceModel- Parameters:
variantConditions- the variantConditions to set
-