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