Skip to main content
Version: Next

Built-in Value Types

Description

For an introduction to value types, see the core concepts. Built-in value types come with the basic version of Jayvee. They are the basis for more restricted primitive value types that fullfil constraints.

Available built-in value types

boolean

Description

A boolean value. Examples: true, false

Example 1

block ExampleTableInterpreter oftype TableInterpreter {
header: true;
columns: [
"columnName" oftype boolean
];
}

A block of type TableInterpreter that interprets data in the column columnName as boolean.

decimal

Description

A decimal value. Example: 3.14

Example 1

block ExampleTableInterpreter oftype TableInterpreter {
header: true;
columns: [
"columnName" oftype decimal
];
}

A block of type TableInterpreter that interprets data in the column columnName as decimal.

integer

Description

An integer value. Example: 3

Example 1

block ExampleTableInterpreter oftype TableInterpreter {
header: true;
columns: [
"columnName" oftype integer
];
}

A block of type TableInterpreter that interprets data in the column columnName as integer.

text

Description

A text value. Example: "Hello World"

Example 1

block ExampleTableInterpreter oftype TableInterpreter {
header: true;
columns: [
"columnName" oftype text
];
}

A block of type TableInterpreter that interprets data in the column columnName as text.