Class FunctionVariableImpl
- All Implemented Interfaces:
FunctionVariable,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the custom value assigned to this function variableGets the domain of this function variablegetKey()Gets the key of this function variablegetLabel()Gets the label of this function variableGets the key of the selected function variable valueGets the key label pairs, which are applicable for this function variablevoidSets the custom value of this function variablevoidsetDefinedBy(PlaceholderAction definedBy) Sets the function variable domainvoidSets the key of this function variablevoidSets the label of the function variablevoidsetSelectedKey(String selectedKey) Sets the key of the selected function variable valuevoidSets the key value pairs, which are applicable for this function variable
-
Constructor Details
-
FunctionVariableImpl
public FunctionVariableImpl()
-
-
Method Details
-
getKey
Description copied from interface:FunctionVariableGets the key of this function variable
- Specified by:
getKeyin interfaceFunctionVariable- Returns:
- the key
-
setKey
Description copied from interface:FunctionVariableSets the key of this function variable
- Specified by:
setKeyin interfaceFunctionVariable- Parameters:
key- the key to set
-
getLabel
Description copied from interface:FunctionVariableGets the label of this function variable
Purpose of the label is e.g. show in UI. The label is not necessarily unique, this means: function variables should be referred by the key rather than the label.
- Specified by:
getLabelin interfaceFunctionVariable- Returns:
- the label
-
setLabel
Description copied from interface:FunctionVariableSets the label of the function variable
- Specified by:
setLabelin interfaceFunctionVariable- Parameters:
label- the label to set
-
getSelectedKey
Description copied from interface:FunctionVariableGets the key of the selected function variable value
Gets the key of the function variable value, which is selected for this particular placeholder.
Usually, the selected key is one of the keys defined in the
valueslist for this function variable. If key is empty or null, the default key (i.e. first entry in the list of values) should be used, unless a custom value has been set, in which caseFunctionVariable.getCustom()returns a value other than empty or null.- Specified by:
getSelectedKeyin interfaceFunctionVariable- Returns:
- the selectedKey
-
setSelectedKey
Description copied from interface:FunctionVariableSets the key of the selected function variable value
Sets the key of the function variable value, which is selected for this particular placeholder
To use the default value (i.e. first entry in the list of values) or use the value returned by
FunctionVariable.getCustom(), selected key must be set to empty string or null.- Specified by:
setSelectedKeyin interfaceFunctionVariable- Parameters:
selectedKey- the selectedKey to set
-
getCustom
Description copied from interface:FunctionVariableGets the custom value assigned to this function variable
Gets the custom value assgined to this function variable, if a custom value has been applied, otherwise returns an empty string or null
- Specified by:
getCustomin interfaceFunctionVariable- Returns:
- the custom
-
setCustom
Description copied from interface:FunctionVariableSets the custom value of this function variable
Sets the custom value of this function variable, if a custom value should be applied. Empty string or null means to use the default value or value defined by
FunctionVariable.getSelectedKey()key.- Specified by:
setCustomin interfaceFunctionVariable- Parameters:
custom- the custom to set
-
getDefinedBy
Description copied from interface:FunctionVariableGets the domain of this function variable
Gets the domain of this function variable. Function variables can be defined either by the
PlaceholderAction.LOAD,PlaceholderAction.SYNCorPlaceholderAction.STOREaction.- Specified by:
getDefinedByin interfaceFunctionVariable- Returns:
- the definedBy
-
setDefinedBy
Description copied from interface:FunctionVariableSets the function variable domain
Sets the domain of this function variable. Function variables can be defined either by the
PlaceholderAction.LOAD,PlaceholderAction.SYNCorPlaceholderAction.STOREaction.- Specified by:
setDefinedByin interfaceFunctionVariable- Parameters:
definedBy- the definedBy to set
-
getValues
Description copied from interface:FunctionVariableGets the key label pairs, which are applicable for this function variable
Usually, one of these values is selected for this function variables via a proper
FunctionVariable.getSelectedKey()value, which refers to the key of one of the entries in thevalueslist.- Specified by:
getValuesin interfaceFunctionVariable- Returns:
- the values
-
setValues
Description copied from interface:FunctionVariableSets the key value pairs, which are applicable for this function variable
- Specified by:
setValuesin interfaceFunctionVariable- Parameters:
values- the values to set
-