org.omg.CORBA
Class ServiceInformationHolder

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by org.omg.CORBA.ServiceInformationHolder
All Implemented Interfaces:
Streamable sample code for org.omg.CORBA.portable.Streamable definition code for org.omg.CORBA.portable.Streamable

public final class ServiceInformationHolder
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements Streamable sample code for org.omg.CORBA.portable.Streamable definition code for org.omg.CORBA.portable.Streamable

The Holder for ServiceInformation. For more information on Holder files, see "Generated Files: Holder Files".

A Holder class for a ServiceInformation object that is used to store "out" and "inout" parameters in IDL methods. If an IDL method signature has an IDL xxx as an "out" or "inout" parameter, the programmer must pass an instance of ServiceInformationHolder as the corresponding parameter in the method invocation; for "inout" parameters, the programmer must also fill the "in" value to be sent to the server. Before the method invocation returns, the ORB will fill in the value corresponding to the "out" value returned from the server.

If myServiceInformationHolder is an instance of ServiceInformationHolder, the value stored in its value field can be accessed with myServiceInformationHolder.value.


Field Summary
 ServiceInformation sample code for org.omg.CORBA.ServiceInformation definition code for org.omg.CORBA.ServiceInformation value sample code for org.omg.CORBA.ServiceInformationHolder.value definition code for org.omg.CORBA.ServiceInformationHolder.value
          The ServiceInformation value held by this ServiceInformationHolder object in its value field.
 
Constructor Summary
ServiceInformationHolder sample code for org.omg.CORBA.ServiceInformationHolder.ServiceInformationHolder() definition code for org.omg.CORBA.ServiceInformationHolder.ServiceInformationHolder() ()
          Constructs a new ServiceInformationHolder object with its value field initialized to null.
ServiceInformationHolder sample code for org.omg.CORBA.ServiceInformationHolder.ServiceInformationHolder(org.omg.CORBA.ServiceInformation) definition code for org.omg.CORBA.ServiceInformationHolder.ServiceInformationHolder(org.omg.CORBA.ServiceInformation) (ServiceInformation sample code for org.omg.CORBA.ServiceInformation definition code for org.omg.CORBA.ServiceInformation  arg)
          Constructs a new ServiceInformationHolder object with its value field initialized to the given ServiceInformation object.
 
Method Summary
 void _read sample code for org.omg.CORBA.ServiceInformationHolder._read(org.omg.CORBA.portable.InputStream) definition code for org.omg.CORBA.ServiceInformationHolder._read(org.omg.CORBA.portable.InputStream) (InputStream sample code for org.omg.CORBA.portable.InputStream definition code for org.omg.CORBA.portable.InputStream  in)
          Reads unmarshalled data from the input stream in and assigns it to the value field in this ServiceInformationHolder object.
 TypeCode sample code for org.omg.CORBA.TypeCode definition code for org.omg.CORBA.TypeCode _type sample code for org.omg.CORBA.ServiceInformationHolder._type() definition code for org.omg.CORBA.ServiceInformationHolder._type() ()
          Retrieves the TypeCode object that corresponds to the value held in this ServiceInformationHolder object's value field.
 void _write sample code for org.omg.CORBA.ServiceInformationHolder._write(org.omg.CORBA.portable.OutputStream) definition code for org.omg.CORBA.ServiceInformationHolder._write(org.omg.CORBA.portable.OutputStream) (OutputStream sample code for org.omg.CORBA.portable.OutputStream definition code for org.omg.CORBA.portable.OutputStream  out)
          Marshals the value in this ServiceInformationHolder object's value field to the output stream out.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

value sample code for org.omg.CORBA.ServiceInformationHolder.value

public ServiceInformation sample code for org.omg.CORBA.ServiceInformation definition code for org.omg.CORBA.ServiceInformation  value
The ServiceInformation value held by this ServiceInformationHolder object in its value field.

Constructor Detail

ServiceInformationHolder sample code for org.omg.CORBA.ServiceInformationHolder() definition code for org.omg.CORBA.ServiceInformationHolder()

public ServiceInformationHolder()
Constructs a new ServiceInformationHolder object with its value field initialized to null.


ServiceInformationHolder sample code for org.omg.CORBA.ServiceInformationHolder(org.omg.CORBA.ServiceInformation) definition code for org.omg.CORBA.ServiceInformationHolder(org.omg.CORBA.ServiceInformation)

public ServiceInformationHolder(ServiceInformation sample code for org.omg.CORBA.ServiceInformation definition code for org.omg.CORBA.ServiceInformation  arg)
Constructs a new ServiceInformationHolder object with its value field initialized to the given ServiceInformation object.

Parameters:
arg - the ServiceInformation object with which to initialize the value field of the newly-created ServiceInformationHolder object
Method Detail

_write sample code for org.omg.CORBA.ServiceInformationHolder._write(org.omg.CORBA.portable.OutputStream) definition code for org.omg.CORBA.ServiceInformationHolder._write(org.omg.CORBA.portable.OutputStream)

public void _write(OutputStream sample code for org.omg.CORBA.portable.OutputStream definition code for org.omg.CORBA.portable.OutputStream  out)
Marshals the value in this ServiceInformationHolder object's value field to the output stream out.

Specified by:
_write sample code for org.omg.CORBA.portable.Streamable._write(org.omg.CORBA.portable.OutputStream) definition code for org.omg.CORBA.portable.Streamable._write(org.omg.CORBA.portable.OutputStream) in interface Streamable sample code for org.omg.CORBA.portable.Streamable definition code for org.omg.CORBA.portable.Streamable
Parameters:
out - the OutputStream object that will contain the CDR formatted data

_read sample code for org.omg.CORBA.ServiceInformationHolder._read(org.omg.CORBA.portable.InputStream) definition code for org.omg.CORBA.ServiceInformationHolder._read(org.omg.CORBA.portable.InputStream)

public void _read(InputStream sample code for org.omg.CORBA.portable.InputStream definition code for org.omg.CORBA.portable.InputStream  in)
Reads unmarshalled data from the input stream in and assigns it to the value field in this ServiceInformationHolder object.

Specified by:
_read sample code for org.omg.CORBA.portable.Streamable._read(org.omg.CORBA.portable.InputStream) definition code for org.omg.CORBA.portable.Streamable._read(org.omg.CORBA.portable.InputStream) in interface Streamable sample code for org.omg.CORBA.portable.Streamable definition code for org.omg.CORBA.portable.Streamable
Parameters:
in - the InputStream object containing CDR formatted data from the wire

_type sample code for org.omg.CORBA.ServiceInformationHolder._type() definition code for org.omg.CORBA.ServiceInformationHolder._type()

public TypeCode sample code for org.omg.CORBA.TypeCode definition code for org.omg.CORBA.TypeCode  _type()
Retrieves the TypeCode object that corresponds to the value held in this ServiceInformationHolder object's value field.

Specified by:
_type sample code for org.omg.CORBA.portable.Streamable._type() definition code for org.omg.CORBA.portable.Streamable._type() in interface Streamable sample code for org.omg.CORBA.portable.Streamable definition code for org.omg.CORBA.portable.Streamable
Returns:
the type code for the value held in this ServiceInformationHolder object