public class CsticModelImpl extends BaseModelImpl implements CsticModel
AUTHOR_DEFAULT, AUTHOR_NOAUTHOR, AUTHOR_SYSTEM, AUTHOR_USER, TYPE_BOOLEAN, TYPE_CLASS, TYPE_CURRENCY, TYPE_DATE, TYPE_FLOAT, TYPE_INTEGER, TYPE_STRING, TYPE_TIME, TYPE_UNDEFINED| Constructor and Description |
|---|
CsticModelImpl() |
| 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.
|
boolean |
equals(Object obj) |
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() |
protected <T> List<T> |
getUnmodifiableListLowMem(List<T> originalList) |
protected CsticValueModel |
getValueModelForValue(String valueName) |
int |
getValueType() |
int |
hashCode() |
boolean |
isAllowsAdditionalValues() |
boolean |
isChangedByFrontend() |
boolean |
isComplete() |
boolean |
isConsistent() |
boolean |
isConstrained() |
boolean |
isIntervalInDomain() |
boolean |
isMultivalued() |
boolean |
isReadonly() |
boolean |
isRequired() |
boolean |
isRetractTriggered() |
protected boolean |
isValueNameMatching(String value,
CsticValueModel valueModel) |
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 allowsAdditionalValues) |
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 entryFieldMask) |
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 value)
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 visible) |
String |
toString() |
getExtensionData, getExtensionMap, putExtensionData, setExtensionMapfinalize, getClass, notify, notifyAll, wait, wait, waitgetExtensionData, getExtensionMap, putExtensionData, setExtensionMappublic String getName()
getName in interface CsticModelpublic void setName(String name)
setName in interface CsticModelname - characteristic namepublic String getLanguageDependentName()
getLanguageDependentName in interface CsticModelpublic void setLanguageDependentName(String languageDependentName)
setLanguageDependentName in interface CsticModellanguageDependentName - characteristic language dependent namepublic String getLongText()
CsticModelgetLongText in interface CsticModelpublic void setLongText(String longText)
CsticModelsetLongText in interface CsticModellongText - Description for the csticpublic List<CsticValueModel> getAssignableValues()
getAssignableValues in interface CsticModelpublic void setAssignableValues(List<CsticValueModel> assignableValues)
setAssignableValues in interface CsticModelassignableValues - list of all assignable valuespublic List<CsticValueModel> getAssignedValues()
getAssignedValues in interface CsticModelpublic void setAssignedValues(List<CsticValueModel> assignedValues)
setAssignedValues in interface CsticModelassignedValues - list of all assigned valuespublic void setAssignedValuesWithoutCheckForChange(List<CsticValueModel> assignedValues)
CsticModelsetAssignedValuesWithoutCheckForChange in interface CsticModelassignedValues - list of all assigned valuespublic int getValueType()
getValueType in interface CsticModelpublic void setValueType(int valueType)
setValueType in interface CsticModelvalueType - value typepublic int getTypeLength()
getTypeLength in interface CsticModelpublic void setTypeLength(int typeLength)
setTypeLength in interface CsticModeltypeLength - length of the characteristic value typepublic int getNumberScale()
getNumberScale in interface CsticModelpublic void setNumberScale(int numberScale)
setNumberScale in interface CsticModelnumberScale - the number scalepublic boolean isVisible()
isVisible in interface CsticModelpublic void setVisible(boolean visible)
setVisible in interface CsticModelvisible - flag indicating whether the characteristic is visiblepublic boolean isConsistent()
isConsistent in interface CsticModelpublic void setConsistent(boolean consistent)
setConsistent in interface CsticModelconsistent - flag indicating whether the characteristic is consistentpublic boolean isComplete()
isComplete in interface CsticModelpublic void setComplete(boolean complete)
setComplete in interface CsticModelcomplete - flag indicating whether the characteristic is completepublic boolean isReadonly()
isReadonly in interface CsticModelpublic void setReadonly(boolean readonly)
setReadonly in interface CsticModelreadonly - flag indicating whether the characteristic is read onlypublic boolean isRequired()
isRequired in interface CsticModelpublic void setRequired(boolean required)
setRequired in interface CsticModelrequired - flag indicating whether the characteristic is requiredpublic boolean isMultivalued()
isMultivalued in interface CsticModelpublic void setMultivalued(boolean multivalued)
setMultivalued in interface CsticModelmultivalued - flag indicating whether the characteristic is multivaluedpublic boolean isChangedByFrontend()
isChangedByFrontend in interface CsticModelpublic void setChangedByFrontend(boolean changedByFrontend)
setChangedByFrontend in interface CsticModelchangedByFrontend - flag indicating whether the characteristic is changed by front endpublic CsticModel clone()
BaseModelclone in interface BaseModelclone in interface CsticModelclone in class BaseModelImplpublic int hashCode()
hashCode in class BaseModelImplpublic boolean equals(Object obj)
equals in class BaseModelImplpublic void setSingleValue(String value)
CsticModelsetSingleValue in interface CsticModelvalue - the value to setprotected CsticValueModel getValueModelForValue(String valueName)
protected boolean isValueNameMatching(String value, CsticValueModel valueModel)
public void addValue(String valueName)
CsticModeladdValue in interface CsticModelvalueName - the value to addpublic void removeValue(String valueName)
CsticModelremoveValue in interface CsticModelvalueName - the value to addpublic String getSingleValue()
CsticModelgetSingleValue in interface CsticModelpublic void clearValues()
CsticModelclearValues in interface CsticModelpublic boolean isAllowsAdditionalValues()
isAllowsAdditionalValues in interface CsticModelpublic String getEntryFieldMask()
getEntryFieldMask in interface CsticModelpublic boolean isIntervalInDomain()
isIntervalInDomain in interface CsticModelpublic void setAllowsAdditionalValues(boolean allowsAdditionalValues)
setAllowsAdditionalValues in interface CsticModelallowsAdditionalValues - true, only if this characteristic allow additional valuespublic void setEntryFieldMask(String entryFieldMask)
setEntryFieldMask in interface CsticModelentryFieldMask - characteristic entry field mask for user inputpublic void setIntervalInDomain(boolean intervalInDomain)
setIntervalInDomain in interface CsticModelintervalInDomain - flag indicating whether the characteristic values are intervals in domainpublic String getAuthor()
getAuthor in interface CsticModelpublic void setAuthor(String author)
setAuthor in interface CsticModelauthor - haracteristic authorpublic boolean isConstrained()
isConstrained in interface CsticModelpublic void setConstrained(boolean constrained)
setConstrained in interface CsticModelconstrained - flag indicating whether the characteristic is constrainedpublic int getStaticDomainLength()
getStaticDomainLength in interface CsticModelpublic void setStaticDomainLength(int staticDomainLength)
setStaticDomainLength in interface CsticModelstaticDomainLength - length of the characteristic static domainpublic String getPlaceholder()
getPlaceholder in interface CsticModelpublic void setPlaceholder(String placeHolder)
setPlaceholder in interface CsticModelplaceHolder - place holder for input fieldpublic void setInstanceId(String instanceId)
setInstanceId in interface CsticModelinstanceId - ID of corresponding instance. See InstanceModel.getId()public String getInstanceId()
getInstanceId in interface CsticModelInstanceModel.getId()public void setRetractTriggered(boolean b)
setRetractTriggered in interface CsticModelb - This characteristic is supposed to be retracted i.e. the user inputs are withdrawnpublic boolean isRetractTriggered()
isRetractTriggered in interface CsticModelpublic boolean removeAssignableValue(String valueName)
removeAssignableValue in interface CsticModelvalueName - value to be removed from the list of assignable valuesCopyright © 2017 SAP SE. All Rights Reserved.