All Superinterfaces:
BaseModel, Cloneable
All Known Implementing Classes:
CsticModelImpl

public interface CsticModel extends BaseModel
Represents the characteristic model.
  • Field Details

    • TYPE_UNDEFINED

      static final int TYPE_UNDEFINED
      unknown type
      See Also:
    • TYPE_STRING

      static final int TYPE_STRING
      Value type for String
      See Also:
    • TYPE_INTEGER

      static final int TYPE_INTEGER
      Value type for integer
      See Also:
    • TYPE_FLOAT

      static final int TYPE_FLOAT
      Value type for float
      See Also:
    • TYPE_BOOLEAN

      static final int TYPE_BOOLEAN
      Value type for boolean
      See Also:
    • TYPE_DATE

      static final int TYPE_DATE
      Value type for date
      See Also:
    • TYPE_TIME

      static final int TYPE_TIME
      Value type for time
      See Also:
    • TYPE_CURRENCY

      static final int TYPE_CURRENCY
      Value type for currency
      See Also:
    • TYPE_CLASS

      static final int TYPE_CLASS
      Value type for object class (materials)
      See Also:
    • AUTHOR_SYSTEM

      static final String AUTHOR_SYSTEM
      Indicating that the value of this cstic was automatically assigned by the configuration engine.
      See Also:
    • AUTHOR_USER

      static final String AUTHOR_USER
      Indicating that the value of this cstic was assigned by the user.
      See Also:
    • AUTHOR_DEFAULT

      static final String AUTHOR_DEFAULT
      Indicating that the value of this cstic was defaulted by the system.
      See Also:
    • AUTHOR_NOAUTHOR

      static final String AUTHOR_NOAUTHOR
      Indicating that there is no author information available
      See Also:
  • Method Details

    • getName

      String getName()
      Returns:
      the characteristic name
    • setName

      void setName(String name)
      Parameters:
      name - characteristic name
    • getLanguageDependentName

      String getLanguageDependentName()
      Returns:
      the characteristic language dependent name
    • setLanguageDependentName

      void setLanguageDependentName(String languageDependentName)
      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

      void setLongText(String longText)
      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

      void setAssignedValuesWithoutCheckForChange(List<CsticValueModel> assignedValues)
      sets assigned value without to check whether the characteristic was changed
      Parameters:
      assignedValues - list of all assigned values
    • setAssignedValues

      void setAssignedValues(List<CsticValueModel> assignedValues)
      Parameters:
      assignedValues - list of all assigned values
    • getAssignableValues

      List<CsticValueModel> getAssignableValues()
      Returns:
      an unmodifiable list of all assignable values
    • setAssignableValues

      void setAssignableValues(List<CsticValueModel> assignableValues)
      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

      void setAuthor(String author)
      Parameters:
      author - haracteristic author
    • setSingleValue

      void setSingleValue(String valueName)
      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

      void addValue(String valueName)
      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

      void removeValue(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.
      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

      void setEntryFieldMask(String csticEntryFieldMask)
      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

      void setPlaceholder(String placeHolder)
      Parameters:
      placeHolder - place holder for input field
    • setInstanceId

      void setInstanceId(String instanceId)
      Parameters:
      instanceId - ID of corresponding instance. See InstanceModel.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

      boolean removeAssignableValue(String valueName)
      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

      default Set<ProductConfigMessage> getMessages()
      Returns:
      messages valid for this characteristic
    • setMessages

      default void setMessages(Set<ProductConfigMessage> messages)
      Parameters:
      messages - valid for this characteristic
    • setInstanceName

      void setInstanceName(String instanceName)
      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