Common Object Request Broker Architecture (CORBA)
An Introduction with Examples in Java |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
An Overview
char
|
A single ASCII character |
wchar
|
A single "wide" character (which may or may not use Unicode) |
octet
|
Eight binary "bits" |
boolean
|
A binary type that can have a value of
either TRUE or FALSE
|
string
|
An ordered set of characters |
wstring
|
An ordered set of wide characters |
short
|
A short integer |
long
|
A long integer |
float
|
A short floating point number |
double
|
A long floating point number |
any
|
Any entity in CORBA |
in
),
"out-bound" (out
) or both
(inout
)
struct
IDL Type | Java Type |
boolean | boolean |
char | char |
wchar | char |
octet | byte |
string | java.lang.String |
wstring | java.lang.String |
short | short |
long | int |
long long | long |
float | float |
double | double |
fixed | java.math.BigDecimal |
any | org.OMG.CORBA.Any |
TRUE
and FALSE
are mapped to the Java values true
and
false
out int
gets mapped to an
IntHolder
enum
is mapped to a Java class
.
For example, the following IDL specification:
struct
:
class
with the same namestruct
McCarty
B.
Cassady-Dorion
L.
James Madison University
James Madison University