An ExternalType part with the JavaObject stereotype defines how you can access an external Java™ class or interface from your EGL code. The part typically identifies all the public fields, methods, and constructors of the class or interface, but might identify a subset of interest.
EGL predefines the Serializable external type, which you can reference if you are defining an external type that is based on a Java class that itself implements the java.io.Serializable interface. If the external type that you are defining does not extend the EGL Serializable external type, any EGL variables that are based on that external type are marked as transient in the generated Java code. Transient variables are not preserved when a Java object is serialized by a runtime platform such as an application server. For example, serialization might occur when the server creates a backup copy of the object in response to a shut down.
The function can return a primitive-type value, an array, or no value at all. The function cannot return a record.
The annotation has no fields.
Function nextElement() { externalName = "next" };
When you reference Java field and method names in the code, remember that they are case sensitive, even though the equivalent EGL names are not.