Class ConfPipeMockImpl
java.lang.Object
de.hybris.platform.sap.productconfig.runtime.mock.impl.BaseRunTimeConfigMockImpl
de.hybris.platform.sap.productconfig.runtime.mock.impl.ConfPipeMockImpl
- All Implemented Interfaces:
ConfigMock
Mock implementation for a configurable pipe
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringstatic final intstatic final intstatic final intstatic final intFields inherited from class de.hybris.platform.sap.productconfig.runtime.mock.impl.BaseRunTimeConfigMockImpl
ROOT_INST_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProductAttributes(ConfigModel model, ProductModel productModel) Allows to add attributes from product to the configurator mock modelprotected CsticModelcreateInnerDiameter(Map<String, String> variantParams) protected CsticModelprotected CsticModelcreateOuterDiameter(Map<String, String> variantParams) protected CsticModelcreateType(Map<String, String> variantParams) createVariantParams(String productCode) booleanTells if a mock represents a changeable variantprotected voidsetBasePrices(ConfigModel model, Double price) Methods inherited from class de.hybris.platform.sap.productconfig.runtime.mock.impl.BaseRunTimeConfigMockImpl
addAssignableValue, addCsticGroup, applyConflicts, calculateTotalSavings, checkCstic, checkInstance, checkModel, checkPreconditionViolated, checkPreconditionViolated, createConflictAssumption, createDefaultConfigModel, createDefaultConfigModel, createDefaultRootInstance, createInstance, createPrice, createPrice, createPrice, createPrice, createPrice, createSolvableConflict, createSolvableConflict, createSolvableConflict, createSolvableConflict, createSubInstance, formatValueNumeric, getCurrencyIso, getI18NService, getProviderFactory, handlePriceInCaseValueIsNotSelected, handlePriceInCaseValueIsSelected, handleValuePrice, handleValuePrice, removeAssignableValue, resetValuePrices, retrieveAssignableValue, retrieveCstic, retrieveValue, setDeltaPrice, setDeltaPriceBasedOnSelectedSurcharge, setI18NService, setProviderFactory, setValuePrice, setZeroDeltaPrice, showDeltaPricesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.sap.productconfig.runtime.mock.ConfigMock
enrichConfigurationModel, isChangeabeleVariant, setConfigId, showDeltaPrices
-
Field Details
-
PLASTIC_TYPE
- See Also:
-
STEEL_TYPE
- See Also:
-
ROOT_INSTANCE_LANG_DEP_NAME
- See Also:
-
ROOT_INSTANCE_NAME
- See Also:
-
TYPE_NAME
- See Also:
-
LENGTH_NAME
- See Also:
-
OUTER_DIA_NAME
- See Also:
-
INNER_DIA_NAME
- See Also:
-
NAME
- See Also:
-
VALUE_15
- See Also:
-
VALUE_20
- See Also:
-
VALUE_25
- See Also:
-
VALUE_30
- See Also:
-
VALUE_40
- See Also:
-
VARIANT_PARAM_NAME
public static final int VARIANT_PARAM_NAME- See Also:
-
VARIANT_PARAM_OUTER_DIA_NAME
public static final int VARIANT_PARAM_OUTER_DIA_NAME- See Also:
-
VARIANT_PARAM_INNER_DIA_NAME
public static final int VARIANT_PARAM_INNER_DIA_NAME- See Also:
-
VARIANT_PARAM_TYPE_NAME
public static final int VARIANT_PARAM_TYPE_NAME- See Also:
-
DEFAULT_PIPE_LENGTH_TYPE_LENGTH
public static final int DEFAULT_PIPE_LENGTH_TYPE_LENGTH- See Also:
-
-
Constructor Details
-
ConfPipeMockImpl
-
-
Method Details
-
createDefaultConfiguration
- Returns:
- the default configuration
-
createVariantParams
-
createType
-
createOuterDiameter
-
createInnerDiameter
-
createLength
-
isChangeableVariant
public boolean isChangeableVariant()Description copied from interface:ConfigMockTells if a mock represents a changeable variant- Returns:
- true if and only if mock represents a variant which is changeable, i.e. does not fall back to the base product in case changes are done to its attributes
-
setBasePrices
-
addProductAttributes
Description copied from interface:ConfigMockAllows to add attributes from product to the configurator mock model- Specified by:
addProductAttributesin interfaceConfigMock- Overrides:
addProductAttributesin classBaseRunTimeConfigMockImpl
-