new ValueRange()
Represents the value range of an attribute type
Methods
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> | Language of the value. Either ISO 639-1 (2-letter code, e.g. "en") or ISO 639-2B (3-letter code, e.g. "eng"). If not defined, the current language will be used. Ignored if the attribute is not translated |
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> | Language of the value. Either ISO 639-1 (2-letter code, e.g. "en") or ISO 639-2B (3-letter code, e.g. "eng"). If not defined, the current language will be used. Ignored if the attribute is not translated |
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
- Type:
- string