public interface CsticModel extends BaseModel
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHOR_DEFAULT |
static String |
AUTHOR_NOAUTHOR |
static String |
AUTHOR_SYSTEM |
static String |
AUTHOR_USER |
static int |
TYPE_BOOLEAN
Value type for boolean
|
static int |
TYPE_CLASS
Value type for object class (materials)
|
static int |
TYPE_CURRENCY
Value type for currency
|
static int |
TYPE_DATE
Value type for date
|
static int |
TYPE_FLOAT
Value type for float
|
static int |
TYPE_INTEGER
Value type for integer
|
static int |
TYPE_STRING
Value type for String
|
static int |
TYPE_TIME
Value type for time
|
static int |
TYPE_UNDEFINED |
| Modifier and Type | Method and Description |
|---|---|
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. |
void |
clearValues()
clears all assigned Values, same as setting an empty List as assigned value list
|
CsticModel |
clone()
We need our models to be cloneable since the configurator mock implementation uses clone for creating new
entities.
|
List<CsticValueModel> |
getAssignableValues() |
List<CsticValueModel> |
getAssignedValues() |
String |
getAuthor() |
String |
getEntryFieldMask() |
String |
getInstanceId() |
String |
getLanguageDependentName() |
String |
getLongText()
Get the long text description for a cstic, which will be displayed under the cstic name in the UI
|
String |
getName() |
int |
getNumberScale() |
String |
getPlaceholder() |
String |
getSingleValue()
Gets the first value of the assigned Values if existing, or null otherwise.
|
int |
getStaticDomainLength() |
int |
getTypeLength() |
int |
getValueType() |
boolean |
isAllowsAdditionalValues() |
boolean |
isChangedByFrontend() |
boolean |
isComplete() |
boolean |
isConsistent() |
boolean |
isConstrained() |
boolean |
isIntervalInDomain() |
boolean |
isMultivalued() |
boolean |
isReadonly() |
boolean |
isRequired() |
boolean |
isRetractTriggered() |
boolean |
isVisible() |
boolean |
removeAssignableValue(String valueName) |
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. |
void |
setAllowsAdditionalValues(boolean booleanValue) |
void |
setAssignableValues(List<CsticValueModel> assignableValues) |
void |
setAssignedValues(List<CsticValueModel> assignedValues) |
void |
setAssignedValuesWithoutCheckForChange(List<CsticValueModel> assignedValues)
sets assigned value without to check whether the characteristic was changed
|
void |
setAuthor(String author) |
void |
setChangedByFrontend(boolean changedByFrontend) |
void |
setComplete(boolean complete) |
void |
setConsistent(boolean consistent) |
void |
setConstrained(boolean constrained) |
void |
setEntryFieldMask(String csticEntryFieldMask) |
void |
setInstanceId(String instanceId) |
void |
setIntervalInDomain(boolean intervalInDomain) |
void |
setLanguageDependentName(String languageDependentName) |
void |
setLongText(String longText)
Set the long text, which will be displayed under the Cstic name in the UI
|
void |
setMultivalued(boolean multivalued) |
void |
setName(String name) |
void |
setNumberScale(int numberScale) |
void |
setPlaceholder(String placeHolder) |
void |
setReadonly(boolean readonly) |
void |
setRequired(boolean required) |
void |
setRetractTriggered(boolean b) |
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. |
void |
setStaticDomainLength(int staticDomainLength) |
void |
setTypeLength(int typeLength) |
void |
setValueType(int valueType) |
void |
setVisible(boolean visble) |
getExtensionData, getExtensionMap, putExtensionData, setExtensionMapstatic final int TYPE_UNDEFINED
static final int TYPE_STRING
static final int TYPE_INTEGER
static final int TYPE_FLOAT
static final int TYPE_BOOLEAN
static final int TYPE_DATE
static final int TYPE_TIME
static final int TYPE_CURRENCY
static final int TYPE_CLASS
static final String AUTHOR_SYSTEM
static final String AUTHOR_USER
static final String AUTHOR_DEFAULT
static final String AUTHOR_NOAUTHOR
String getName()
void setName(String name)
name - characteristic nameString getLanguageDependentName()
void setLanguageDependentName(String languageDependentName)
languageDependentName - characteristic language dependent nameString getLongText()
void setLongText(String longText)
longText - Description for the csticList<CsticValueModel> getAssignedValues()
void setAssignedValuesWithoutCheckForChange(List<CsticValueModel> assignedValues)
assignedValues - list of all assigned valuesvoid setAssignedValues(List<CsticValueModel> assignedValues)
assignedValues - list of all assigned valuesList<CsticValueModel> getAssignableValues()
void setAssignableValues(List<CsticValueModel> assignableValues)
assignableValues - list of all assignable valuesint getValueType()
void setValueType(int valueType)
valueType - value typeint getTypeLength()
void setTypeLength(int typeLength)
typeLength - length of the characteristic value typeint getNumberScale()
void setNumberScale(int numberScale)
numberScale - the number scaleboolean isVisible()
void setVisible(boolean visble)
visble - flag indicating whether the characteristic is visibleboolean isConsistent()
void setConsistent(boolean consistent)
consistent - flag indicating whether the characteristic is consistentboolean isComplete()
void setComplete(boolean complete)
complete - flag indicating whether the characteristic is completeboolean isReadonly()
void setReadonly(boolean readonly)
readonly - flag indicating whether the characteristic is read onlyboolean isRequired()
void setRequired(boolean required)
required - flag indicating whether the characteristic is requiredboolean isMultivalued()
void setMultivalued(boolean multivalued)
multivalued - flag indicating whether the characteristic is multivaluedboolean isChangedByFrontend()
void setChangedByFrontend(boolean changedByFrontend)
changedByFrontend - flag indicating whether the characteristic is changed by front endCsticModel clone()
BaseModelString getAuthor()
void setAuthor(String author)
author - haracteristic authorvoid setSingleValue(String valueName)
valueName - the value to setvoid addValue(String valueName)
valueName - the value to addvoid removeValue(String valueName)
valueName - the value to addString getSingleValue()
void clearValues()
void setAllowsAdditionalValues(boolean booleanValue)
booleanValue - true, only if this characteristic allow additional valuesString getEntryFieldMask()
boolean isAllowsAdditionalValues()
void setEntryFieldMask(String csticEntryFieldMask)
csticEntryFieldMask - characteristic entry field mask for user inputboolean isIntervalInDomain()
void setIntervalInDomain(boolean intervalInDomain)
intervalInDomain - flag indicating whether the characteristic values are intervals in domainboolean isConstrained()
void setConstrained(boolean constrained)
constrained - flag indicating whether the characteristic is constrainedint getStaticDomainLength()
void setStaticDomainLength(int staticDomainLength)
staticDomainLength - length of the characteristic static domainString getPlaceholder()
void setPlaceholder(String placeHolder)
placeHolder - place holder for input fieldvoid setInstanceId(String instanceId)
instanceId - ID of corresponding instance. See InstanceModel.getId()String getInstanceId()
InstanceModel.getId()void setRetractTriggered(boolean b)
b - This characteristic is supposed to be retracted i.e. the user inputs are withdrawnboolean isRetractTriggered()
boolean removeAssignableValue(String valueName)
valueName - value to be removed from the list of assignable valuesCopyright © 2017 SAP SE. All Rights Reserved.