Class DataContext

Class Hierarchy

DataContext acts as a container for data.

All data within the data context is described as a tree of data objects. The class provides access and look-up functionality of the contained data objects.

Inherits properties and message types from DataContextMetadata.

Synopsis

Methods
getData()

Retrieves the root object of the underlying data tree

lookupDataContext()

Performs object look-up by path

DataContext.DataContext:getData()

Retrieves the root object of the underlying data tree.

Return Values
(DataObject)

The data object that is the root of the data tree.

DataContext.DataContext:lookupDataContext(relativePath)

Performs object look-up by path.

Parameters
relativePath (string)

Path of the object where to look at, separated by '.'.

Return Values
(DataObjectBool, DataObjectInt, DataObjectReal, DataObjectString or nil)

Data object that was found, or nil if there is no such object