Class CsticModelBuilder
java.lang.Object
de.hybris.platform.sap.productconfig.runtime.mock.impl.CsticModelBuilder
- Direct Known Subclasses:
CsticModelBuilder.SimpleFlagBuilder
helper class to build cstics for Mock implemntations
create a new instance for every model object you want to build
create a new instance for every model object you want to build
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOption(CsticValueModel option) addSelectedOption(String name, String langDepName) addValue(CsticValueModel option) build()protected CsticValueModelbuildCsticValue(String name, String langDepName) hidden()numericType(int numScale, int typeLength) readOnly()required()simpleFlag(String lName) typeLength(int length) visible()editable (not readonly), visible, optional (not required), consistent, complete, no authorwithEntryFieldMask(String entryFieldMask) withInstance(String instanceId, String instanceName) withLongText(String longText) withOptions(List<CsticValueModel> options) withPlaceHolder(String placeHolder) withValue(CsticValueModel value) withValues(List<CsticValueModel> values)
-
Field Details
-
DEAULT_STRING_TYPE_LENGTH
public static final int DEAULT_STRING_TYPE_LENGTH- See Also:
-
cstic
-
-
Constructor Details
-
CsticModelBuilder
public CsticModelBuilder()
-
-
Method Details
-
build
-
withNoValuesAndOptions
-
withInstance
-
withName
-
withDefaultUIState
editable (not readonly), visible, optional (not required), consistent, complete, no author -
numericType
-
stringType
-
simpleInput
-
singleSelection
-
multiSelection
-
simpleFlag
-
simpleFlag
-
withValue
-
withValues
-
addAssignableValue
-
withPlaceHolder
-
addOption
-
withOptions
-
required
-
readOnly
-
allowsAdditionalValues
-
withLongText
-
addOption
-
addOption
-
buildCsticValue
-
addSelectedOption
-
addValue
-
visible
-
typeLength
-
incomplete
-
inconsistent
-
withEntryFieldMask
-