Interface CsticModel
- All Known Implementing Classes:
CsticModelImpl
Represents the characteristic model.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIndicating that the value of this cstic was defaulted by the system.static final StringIndicating that there is no author information availablestatic final StringIndicating that the value of this cstic was automatically assigned by the configuration engine.static final StringIndicating that the value of this cstic was assigned by the user.static final intValue type for booleanstatic final intValue type for object class (materials)static final intValue type for currencystatic final intValue type for datestatic final intValue type for floatstatic final intValue type for integerstatic final intValue type for Stringstatic final intValue type for timestatic final intunknown type -
Method Summary
Modifier and TypeMethodDescriptionvoidAssigns the given value to the characteristic, while keeping any previous value assignments.
This is a typical operation for multi valued characteristics.voidclears all assigned Values, same as setting an empty List as assigned value listGet the long text description for a cstic, which will be displayed under the cstic name in the UIdefault Set<ProductConfigMessage>getName()intGets the first value of the assigned Values if existing, or null otherwise.intintintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanremoveAssignableValue(String valueName) voidremoveValue(String valueName) Remove the given value from the assigned values, while keeping the other value assignments.
This is a typical operation for multi valued characteristics.voidsetAllowsAdditionalValues(boolean booleanValue) voidsetAssignableValues(List<CsticValueModel> assignableValues) voidsetAssignedValues(List<CsticValueModel> assignedValues) voidsetAssignedValuesWithoutCheckForChange(List<CsticValueModel> assignedValues) sets assigned value without to check whether the characteristic was changedvoidvoidsetChangedByFrontend(boolean changedByFrontend) voidsetComplete(boolean complete) voidsetConsistent(boolean consistent) voidsetConstrained(boolean constrained) voidsetEntryFieldMask(String csticEntryFieldMask) voidsetInstanceId(String instanceId) voidsetInstanceName(String instanceName) Sets name of hosting instance.voidsetIntervalInDomain(boolean intervalInDomain) voidsetLanguageDependentName(String languageDependentName) voidsetLongText(String longText) Set the long text, which will be displayed under the Cstic name in the UIdefault voidsetMessages(Set<ProductConfigMessage> messages) voidsetMultivalued(boolean multivalued) voidvoidsetNumberScale(int numberScale) voidsetPlaceholder(String placeHolder) voidsetReadonly(boolean readonly) voidsetRequired(boolean required) voidsetRetractTriggered(boolean b) voidsetSingleValue(String valueName) Assigns the given value to the characteristic, overwriting any previous value assignments.
This is a typical operation for single valued characteristics.voidsetStaticDomainLength(int staticDomainLength) voidsetTypeLength(int typeLength) voidsetValueType(int valueType) voidsetVisible(boolean visble)
-
Field Details
-
TYPE_UNDEFINED
static final int TYPE_UNDEFINEDunknown type- See Also:
-
TYPE_STRING
static final int TYPE_STRINGValue type for String- See Also:
-
TYPE_INTEGER
static final int TYPE_INTEGERValue type for integer- See Also:
-
TYPE_FLOAT
static final int TYPE_FLOATValue type for float- See Also:
-
TYPE_BOOLEAN
static final int TYPE_BOOLEANValue type for boolean- See Also:
-
TYPE_DATE
static final int TYPE_DATEValue type for date- See Also:
-
TYPE_TIME
static final int TYPE_TIMEValue type for time- See Also:
-
TYPE_CURRENCY
static final int TYPE_CURRENCYValue type for currency- See Also:
-
TYPE_CLASS
static final int TYPE_CLASSValue type for object class (materials)- See Also:
-
AUTHOR_SYSTEM
Indicating that the value of this cstic was automatically assigned by the configuration engine.- See Also:
-
AUTHOR_USER
Indicating that the value of this cstic was assigned by the user.- See Also:
-
AUTHOR_DEFAULT
Indicating that the value of this cstic was defaulted by the system.- See Also:
-
AUTHOR_NOAUTHOR
Indicating that there is no author information available- See Also:
-
-
Method Details
-
getName
String getName()- Returns:
- the characteristic name
-
setName
- Parameters:
name- characteristic name
-
getLanguageDependentName
String getLanguageDependentName()- Returns:
- the characteristic language dependent name
-
setLanguageDependentName
- Parameters:
languageDependentName- characteristic language dependent name
-
getLongText
String getLongText()Get the long text description for a cstic, which will be displayed under the cstic name in the UI- Returns:
- The long text value
-
setLongText
Set the long text, which will be displayed under the Cstic name in the UI- Parameters:
longText- Description for the cstic
-
getAssignedValues
List<CsticValueModel> getAssignedValues()- Returns:
- an unmodifiable list of all assigned values
-
setAssignedValuesWithoutCheckForChange
sets assigned value without to check whether the characteristic was changed- Parameters:
assignedValues- list of all assigned values
-
setAssignedValues
- Parameters:
assignedValues- list of all assigned values
-
getAssignableValues
List<CsticValueModel> getAssignableValues()- Returns:
- an unmodifiable list of all assignable values
-
setAssignableValues
- Parameters:
assignableValues- list of all assignable values
-
getValueType
int getValueType()- Returns:
- the value type
-
setValueType
void setValueType(int valueType) - Parameters:
valueType- value type
-
getTypeLength
int getTypeLength()- Returns:
- the length of the characteristic value type
-
setTypeLength
void setTypeLength(int typeLength) - Parameters:
typeLength- length of the characteristic value type
-
getNumberScale
int getNumberScale()- Returns:
- the number scale
-
setNumberScale
void setNumberScale(int numberScale) - Parameters:
numberScale- the number scale
-
isVisible
boolean isVisible()- Returns:
- true if the characteristic is visible
-
setVisible
void setVisible(boolean visble) - Parameters:
visble- flag indicating whether the characteristic is visible
-
isConsistent
boolean isConsistent()- Returns:
- true if the characteristic is consistent
-
setConsistent
void setConsistent(boolean consistent) - Parameters:
consistent- flag indicating whether the characteristic is consistent
-
isComplete
boolean isComplete()- Returns:
- true if the characteristic is complete
-
setComplete
void setComplete(boolean complete) - Parameters:
complete- flag indicating whether the characteristic is complete
-
isReadonly
boolean isReadonly()- Returns:
- true if the characteristic is read only
-
setReadonly
void setReadonly(boolean readonly) - Parameters:
readonly- flag indicating whether the characteristic is read only
-
isRequired
boolean isRequired()- Returns:
- true if the characteristic is required
-
setRequired
void setRequired(boolean required) - Parameters:
required- flag indicating whether the characteristic is required
-
isMultivalued
boolean isMultivalued()- Returns:
- true if the characteristic is multivalued
-
setMultivalued
void setMultivalued(boolean multivalued) - Parameters:
multivalued- flag indicating whether the characteristic is multivalued
-
isChangedByFrontend
boolean isChangedByFrontend()- Returns:
- true if the characteristic is changed by front end
-
setChangedByFrontend
void setChangedByFrontend(boolean changedByFrontend) - Parameters:
changedByFrontend- flag indicating whether the characteristic is changed by front end
-
getAuthor
String getAuthor()- Returns:
- the characteristic author
-
setAuthor
- Parameters:
author- haracteristic author
-
setSingleValue
Assigns the given value to the characteristic, overwriting any previous value assignments.
This is a typical operation for single valued characteristics.- Parameters:
valueName- the value to set
-
addValue
Assigns the given value to the characteristic, while keeping any previous value assignments.
This is a typical operation for multi valued characteristics.- Parameters:
valueName- the value to add
-
removeValue
Remove the given value from the assigned values, while keeping the other value assignments.
This is a typical operation for multi valued characteristics.- Parameters:
valueName- the value to add
-
getSingleValue
String getSingleValue()Gets the first value of the assigned Values if existing, or null otherwise. This is a typical operation for single valued characteristics.- Returns:
- first value of assigned values
-
clearValues
void clearValues()clears all assigned Values, same as setting an empty List as assigned value list -
setAllowsAdditionalValues
void setAllowsAdditionalValues(boolean booleanValue) - Parameters:
booleanValue-true, only if this characteristic allow additional values
-
getEntryFieldMask
String getEntryFieldMask()- Returns:
- the characteristic entry field mask for user input
-
isAllowsAdditionalValues
boolean isAllowsAdditionalValues()- Returns:
- true only if this characteristic allow additional values
-
setEntryFieldMask
- Parameters:
csticEntryFieldMask- characteristic entry field mask for user input
-
isIntervalInDomain
boolean isIntervalInDomain()- Returns:
- true if the characteristic values are intervals in domain
-
setIntervalInDomain
void setIntervalInDomain(boolean intervalInDomain) - Parameters:
intervalInDomain- flag indicating whether the characteristic values are intervals in domain
-
isConstrained
boolean isConstrained()- Returns:
- True if the characteristic is constrained. This means for us: It carries a static domain (at runtime this domain might be gone due to restrictable characteristics!), and no additional values are allowed
-
setConstrained
void setConstrained(boolean constrained) - Parameters:
constrained- Flag indicating whether the characteristic is constrained. This means for us: It carries a static domain (at runtime this domain might be gone due to restrictable characteristics!), and no additional values are allowed
-
getStaticDomainLength
int getStaticDomainLength()- Returns:
- the length of the characteristic static domain
-
setStaticDomainLength
void setStaticDomainLength(int staticDomainLength) - Parameters:
staticDomainLength- length of the characteristic static domain
-
getPlaceholder
String getPlaceholder()- Returns:
- the place holder for input field
-
setPlaceholder
- Parameters:
placeHolder- place holder for input field
-
setInstanceId
- Parameters:
instanceId- ID of corresponding instance. SeeInstanceModel.getId()
-
getInstanceId
String getInstanceId()- Returns:
- ID of corresponding instance. See
InstanceModel.getId()
-
setRetractTriggered
void setRetractTriggered(boolean b) - Parameters:
b- This characteristic is supposed to be retracted i.e. the user inputs are withdrawn
-
isRetractTriggered
boolean isRetractTriggered()- Returns:
- Is this characteristic supposed to be retracted?
-
removeAssignableValue
- Parameters:
valueName- value to be removed from the list of assignable values- Returns:
- true if the value was removed from the list of assignable values
-
getMessages
- Returns:
- messages valid for this characteristic
-
setMessages
- Parameters:
messages- valid for this characteristic
-
setInstanceName
Sets name of hosting instance. This can be a product key or a class identifier- Parameters:
instanceName-
-
getInstanceName
String getInstanceName()- Returns:
- Name of hosting instance. This can be a product key or a class identifier
-