Interface CsticValueModel
-
- All Superinterfaces:
BaseModel,java.lang.Cloneable
- All Known Implementing Classes:
CsticValueModelImpl
public interface CsticValueModel extends BaseModel
Represents the characteristic value model.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAUTHOR_EXTERNAL_DEFAULTIndicating that this value was defaulted.static java.lang.StringAUTHOR_EXTERNAL_USERIndicating that this value was assigned manually by the user.static java.lang.StringAUTHOR_SYSTEMIndicating that this value was automatically assigned by the configuration engine.static java.lang.StringAUTHOR_USERIndicating that this value was assigned by the user, either manually, or via constraints.static java.lang.StringTRUEvalue indicating that this cstic is selected, in case of yes/no decissions
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.StringgetAuthor()java.lang.StringgetAuthorExternal()PriceModelgetDeltaPrice()java.lang.StringgetLanguageDependentName()default java.lang.StringgetLongText()Get the long text description for a cstic value, which will be displayed under the cstic name in the UIdefault java.util.Set<ProductConfigMessage>getMessages()java.lang.StringgetName()PriceModelgetValuePrice()booleanisDomainValue()booleanisNumeric()booleanisSelectable()voidsetAuthor(java.lang.String author)voidsetAuthorExternal(java.lang.String authorExternal)voidsetDeltaPrice(PriceModel deltaPrice)voidsetDomainValue(boolean domainValue)voidsetLanguageDependentName(java.lang.String languageDependentName)default voidsetLongText(java.lang.String longText)Set the long text, which will be displayed under the Cstic value name in the UIdefault voidsetMessages(java.util.Set<ProductConfigMessage> messages)voidsetName(java.lang.String name)voidsetNumeric(boolean b)voidsetSelectable(boolean selectable)voidsetValuePrice(PriceModel valuePrice)
-
-
-
Field Detail
-
TRUE
static final java.lang.String TRUE
value indicating that this cstic is selected, in case of yes/no decissions- See Also:
- Constant Field Values
-
AUTHOR_SYSTEM
static final java.lang.String AUTHOR_SYSTEM
Indicating that this value was automatically assigned by the configuration engine.- See Also:
- Constant Field Values
-
AUTHOR_USER
static final java.lang.String AUTHOR_USER
Indicating that this value was assigned by the user, either manually, or via constraints.- See Also:
- Constant Field Values
-
AUTHOR_EXTERNAL_USER
static final java.lang.String AUTHOR_EXTERNAL_USER
Indicating that this value was assigned manually by the user.- See Also:
- Constant Field Values
-
AUTHOR_EXTERNAL_DEFAULT
static final java.lang.String AUTHOR_EXTERNAL_DEFAULT
Indicating that this value was defaulted.- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
java.lang.String getName()
- Returns:
- the characteristic value name
-
setName
void setName(java.lang.String name)
- Parameters:
name- characteristic value name
-
getLanguageDependentName
java.lang.String getLanguageDependentName()
- Returns:
- the language dependent characteristic value name
-
setLanguageDependentName
void setLanguageDependentName(java.lang.String languageDependentName)
- Parameters:
languageDependentName- language dependent characteristic value name
-
isDomainValue
boolean isDomainValue()
- Returns:
- true if the value is a domain value
-
setDomainValue
void setDomainValue(boolean domainValue)
- Parameters:
domainValue- flag indicating whether this value is a domain value
-
setAuthor
void setAuthor(java.lang.String author)
- Parameters:
author- characteristic value author
-
getAuthor
java.lang.String getAuthor()
- Returns:
- the characteristic value author
-
isSelectable
boolean isSelectable()
- Returns:
- true if the value is selectable
-
setSelectable
void setSelectable(boolean selectable)
- Parameters:
selectable- Flag indicating whether this value is selectable. Not supported in all provider implementations, we don't set in the current SSC implementation.
-
setAuthorExternal
void setAuthorExternal(java.lang.String authorExternal)
- Parameters:
authorExternal- external characteristic value author - engine representation
-
getAuthorExternal
java.lang.String getAuthorExternal()
- Returns:
- the external characteristic value author - engine representation
-
getDeltaPrice
PriceModel getDeltaPrice()
- Returns:
- the delta price for this option, compared to the selected option
-
setDeltaPrice
void setDeltaPrice(PriceModel deltaPrice)
- Parameters:
deltaPrice- delta price for this option, compared to the selected option
-
getValuePrice
PriceModel getValuePrice()
- Returns:
- the absolute value price for this option
-
setValuePrice
void setValuePrice(PriceModel valuePrice)
- Parameters:
valuePrice- absolute value price for this option
-
setNumeric
void setNumeric(boolean b)
- Parameters:
b- Characteristic value is of numeric type
-
isNumeric
boolean isNumeric()
- Returns:
- Characteristic value is of numeric type
-
getMessages
default java.util.Set<ProductConfigMessage> getMessages()
- Returns:
- messages valid for this characteristic value
-
setMessages
default void setMessages(java.util.Set<ProductConfigMessage> messages)
- Parameters:
messages- valid for this characteristic value
-
getLongText
default java.lang.String getLongText()
Get the long text description for a cstic value, which will be displayed under the cstic name in the UI- Returns:
- The long text value
-
setLongText
default void setLongText(java.lang.String longText)
Set the long text, which will be displayed under the Cstic value name in the UI- Parameters:
longText- Description for the cstic
-
-