VADELIA |
SADELIA | EADELIA | CLASS |
||
(I/B) (C/S) |
(B) (S) |
(B) (C/S) | (B) (C) |
Section for use
DECLARATION
This instruction is used either to define Adelia class attributes or in a program with a part generated in Java (Java client, Java server, Web client, Cloud client, Event client).
Note: if the class instance is manipulated in a part assigned to a logical server (which is generated in the Java server), the REF_CLASS instruction must be assigned to the same logical server.
Syntax
REF_CLASS(AdeliaClassName) VariableName
REF_CLASS(*OBJECT) VariableName
A deliaClassName is an Adelia class.
Description
Used to declare a variable for manipulating an Adelia class.
*OBJECT allows to manage a generic object. In this case, the INSTANCE_OF logical operator can be used to test the actually used class before executing a cast.
For example
REF_CLASS(PERSON) iPerson
REF_CLASS(FAMILY) iFamily