new ChoiceRange()
Represents the value range of a choice attribute
Extends
Methods
choiceInternalNamed(internalName) → {$k.Choice}
Returns the choice with the internal name
Name | Type | Description |
---|---|---|
internalName | string | The internal name of the choice |
If there is no such choice
- Type:
- $k.Choice
choices() → {Array.<$k.Choice>}
Returns the possible choices
- Type:
- Array.<$k.Choice>
parse(string, languageopt)
Parse the string representation and returns the converted value
Name | Type | Attributes | Description |
---|---|---|---|
string | string | The string represantation of the value that should be set. | |
language | string | <optional> | Either an ISO 639-1 or ISO 639-2B language code (e.g. "en" or "eng"), or a locale name without encoding (e.g. "en_US"). Locale names and language codes are not interchangeable, e.g. the values for "de" and "de_DE" are separated. If not defined, the locale/language of the process will be used. Ignored if the attribute is not translated. |
- Inherited From
If the string is not in the range of allowed values of the attribute
The converted value
valueToString(value, languageopt) → {string}
Returns the string representation of the value
Name | Type | Attributes | Description |
---|---|---|---|
value | string | The value that should be converted | |
language | string | <optional> | Either an ISO 639-1 or ISO 639-2B language code (e.g. "en" or "eng"), or a locale name without encoding (e.g. "en_US"). Locale names and language codes are not interchangeable, e.g. the values for "de" and "de_DE" are separated. If not defined, the locale/language of the process will be used. Ignored if the attribute is not translated. |
- Inherited From
If the value is not in the range of allowed values of the attribute
- Type:
- string
valueType() → {string}
Returns a string describing the value type.
One of
- blob
- boolean
- choice
- color
- container
- date
- dateAndTime
- flexTime
- float
- geoPosition
- integer
- interval
- password
- registyEntry
- string
- time
- translatedAttribute
- translation
- url
- Inherited From
- Type:
- string