An interface of type JavaObject provides access to Java™ code. For an overview, see EGL interfaces. For syntax, see Interface part in EGL source format.
Interface Object type JavaObject { JavaName = "Object", PackageName = "java.lang" } function toString() returns (String); End
Interface BooleanLib type JavaObject { JavaName = "BooleanLib", PackageName = "com.ibm.javart.v6" } static function booleanToInt(var Boolean) returns (int); static function intToBoolean(var int) returns (Boolean); End
package myPkg; // required import statement import com.ibm.egl.jsf; myInt Int = BooleanLib.booleanToInt(yes);
Other pre-defined EGL interfaces let you interact with JSF controls from a pageHandler. For an overview, see JSF component tree.
Finally, the next table shows the mapping of EGL and Java data formats at run time, when data is transferred between an argument and a parameter or when data is returned to EGL from the invoked method.
EGL primitive type | Java type |
---|---|
BIGINT | long |
BOOLEAN (as is available in interface function descriptions) | boolean |
CHAR | char |
FLOAT | double |
HEX | byte |
INT | int |
SMALLINT | short |
SMALLFLOAT | float |
STRING | String |
Related concepts
EGL interfaces
Instantiation and EGL interfaces of type JavaObject
JSF component tree
Related tasks
Creating an EGL Interface part
Related reference
Interface part in EGL source format