All Packages Class Hierarchy This Package Previous Next Index
Class org.omg.CORBA.AnyHolder
java.lang.Object
|
+----org.omg.CORBA.AnyHolder
- public final class AnyHolder
- extends Object
This class provides a holder for out and inout
parameters of IDL type any. For example, given the
following IDL file:
module TheModule
interface TheInterface {
void operation(in any inArg,
inout any ioArg,
out any outArg);
};
};
The operation could be invoked as follows:
TheModule.TheInterface object = <...>
org.omg.CORBA.Any inArg = <some any value>
org.omg.CORBA.AnyHolder ioArg = new org.omg.CORBA.AnyHolder(<another any value>);
org.omg.CORBA.AnyHolder outArg = new org.omg.CORBA.AnyHolder();
System.out.println("Before: inArg=" + inArg.value + " ioArg=" + ioArg.value);
object.operation(inArg, ioArg, outArg);
System.out.println("After: ioArg=" + ioArg.value + " outArg=" + outArg.value);
value- Public data member used to hold the Any's value.
AnyHolder()
- Default constructor, useful for out parameters.
AnyHolder(Any)
- Value constructor, useful for inout parameters.
value
public Any value
- Public data member used to hold the Any's value.
AnyHolder
public AnyHolder()
- Default constructor, useful for out parameters.
AnyHolder
public AnyHolder(Any value)
- Value constructor, useful for inout parameters.
- Parameters:
- value - the initial org.omg.CORBA.Any value
All Packages Class Hierarchy This Package Previous Next Index