Class: ValueRange

$k. ValueRange

new $k.ValueRange()

Represents the value range of an attribute type

Methods

parse(string, language)

Parse the string representation and returns the converted value

Name Type Description
string string

The string represantation of the value that should be set.

language string optional

Internal Error: no text for this language or unsupported language

Throws:
Type Description
$k.exception.InvalidValue

If the string is not in the range of allowed values of the attribute

Returns:
The converted value

valueToString(value, language) : string

Returns the string representation of the value

Name Type Description
value string

The value that should be converted

language string optional

Internal Error: no text for this language or unsupported language

Throws:
Type Description
$k.exception.InvalidValue

If the value is not in the range of allowed values of the attribute

Returns:
Type Description
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
Returns:
Type Description
string