All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.omg.CORBA.StringHolder

java.lang.Object
   |
   +----org.omg.CORBA.StringHolder

public final class StringHolder
extends Object
This class provides a holder for out and inout parameters of IDL type string. For example, given the following IDL file:
module TheModule
interface TheInterface {
void operation(in string inArg,
inout string ioArg, 
out string outArg);
};
};
The operation could be invoked as follows:
TheModule.TheInterface object = <...>
String inArg = <some string value>
org.omg.CORBA.StringHolder ioArg  = new org.omg.CORBA.StringHolder(<another string value>);
org.omg.CORBA.StringHolder outArg = new org.omg.CORBA.StringHolder();
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 String's value.

Constructor Index

 o StringHolder()
Default constructor, useful for out parameters.
 o StringHolder(String)
Value constructor, useful for inout parameters.

Variables

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

Constructors

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

 o StringHolder
 public StringHolder(String value)
Value constructor, useful for inout parameters.

Parameters:
value - the initial String value

All Packages  Class Hierarchy  This Package  Previous  Next  Index