Basic Types
When manipulating an object in EKL, you can read or write its attributes. The basic types hierarchy is described below. The applicative types inherit from this basic hierarchy, and use these types for defining their attributes.
A knowledge type is defined by a set of attributes and methods.
Types are broken down into three main categories:
- The types belong to Feature category. This feature abstract type provides a list of attributes available on each object (Name, UserInfo, Children) and a list of methods that can be applied to each object (Access to dynamic attributes, query, find, etc...).
- The
Literal types, which derive from a common Literal type (Length is a subtype of Literal),
cannot have attributes. TLiterals do not have attributes and a limited list of existing Literal Types is avaible.Note: A constant is an identifier for a simple value. As the name suggests, this value cannot change. The following constants are specified or recognized by the app when programming rules and checks. As a result, they can be used anywhere in a relation in place of the actual values.
All types derive from a basic type called ObjectType. If a function takes such
a type as argument, you can pass both values and objects.
For example, methods and functions related to Lists usually take ObjectType
arguments. You can therefore create a list of objects or a list of values (List.setItem(ObjectType))
.