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);


Variable Index

 o value
Public data member used to hold the Any's value.

Constructor Index

 o AnyHolder()
Default constructor, useful for out parameters.
 o AnyHolder(Any)
Value constructor, useful for inout parameters.

Variables

 o value
 public Any value
Public data member used to hold the Any's value.

Constructors

 o AnyHolder
 public AnyHolder()
Default constructor, useful for out parameters.

 o 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