This module discusses IDL-to-Java mapping by examining how IDL constructed types are mapped to Java and how the resulting generated Java code is used.
By the end of this module, you will be able to
- Describe how IDL structs, sequences, and enums map to Java
- Use the Java generated for structs, sequences, and enums
- Describe how IDL exceptions map to Java
- Use the Java generated for exceptions
- Describe how IDL unions and arrays map to Java
- Use the Java generated for unions and arrays
In the next lesson, you will learn the Java mapping for IDL structs.
The IDL compiler translates IDL into stub and skeleton code for a given language, in this case, Java.
As long as the client and server programs comply with the definitions in the generated stub and skeleton code, the runtime ORB enables type-safe interaction between the client and the server.
Example 2: Java Stub Code for the Building Interface
// File: Building.java