Model Literals
TopLogic model elements can be addressed directly in TL script expressions by their qualified names. References to model elements are enclosed in "back ticks" (`
).
Modules
A module is a sparate model element that can be referenced. A module reference is expressed using the name of the module:
`my.module`
Types
The model type is named by the package defining it and its technical name separated by a colon (:
). A model type can be a class, an enumeration, or a data type.
The class MyClass
in the module my.module
:
`my.module:MyClass`
Attributes and enumeration elements
An attribute of a model class or an enumeration element of an enumeration is named using the qualified name of the type and the technical name of the attribute or enumeration element separated by a lattice character (#
).
The attribute myProperty
of the class my.module:MyClass
:
`my.module:MyClass#myProperty`
The enumeration element CONST_1
of the enumeration my.module:MyEnum
:
`my.module:MyEnum#CONST_1`
Singletons
A module of the model can contain excellent named objects ("singletons"). Such a singleton is named using the name of its module and the technical name of the singleton separated by a grid character (#
).
The root element in the module my.module
:
`my.module#ROOT`