Package org.omg.CORBA
Class ServiceInformationHolder
java.lang.Object
org.omg.CORBA.ServiceInformationHolder
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionTheServiceInformationvalue held by thisServiceInformationHolderobject in itsvaluefield. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newServiceInformationHolderobject with itsvaluefield initialized to null.Constructs a newServiceInformationHolderobject with itsvaluefield initialized to the givenServiceInformationobject. -
Method Summary
Modifier and TypeMethodDescriptionvoid_read(InputStream in) Reads unmarshalled data from the input streaminand assigns it to thevaluefield in thisServiceInformationHolderobject._type()Retrieves theTypeCodeobject that corresponds to the value held in thisServiceInformationHolderobject'svaluefield.void_write(OutputStream out) Marshals the value in thisServiceInformationHolderobject'svaluefield to the output streamout.
-
Field Details
-
value
TheServiceInformationvalue held by thisServiceInformationHolderobject in itsvaluefield.
-
-
Constructor Details
-
ServiceInformationHolder
public ServiceInformationHolder()Constructs a newServiceInformationHolderobject with itsvaluefield initialized to null. -
ServiceInformationHolder
Constructs a newServiceInformationHolderobject with itsvaluefield initialized to the givenServiceInformationobject.- Parameters:
arg- theServiceInformationobject with which to initialize thevaluefield of the newly-createdServiceInformationHolderobject
-
-
Method Details
-
_write
Marshals the value in thisServiceInformationHolderobject'svaluefield to the output streamout.- Specified by:
_writein interfaceStreamable- Parameters:
out- theOutputStreamobject that will contain the CDR formatted data
-
_read
Reads unmarshalled data from the input streaminand assigns it to thevaluefield in thisServiceInformationHolderobject.- Specified by:
_readin interfaceStreamable- Parameters:
in- theInputStreamobject containing CDR formatted data from the wire
-
_type
Retrieves theTypeCodeobject that corresponds to the value held in thisServiceInformationHolderobject'svaluefield.- Specified by:
_typein interfaceStreamable- Returns:
- the type code for the value held in this
ServiceInformationHolderobject
-