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 TypeFieldDescriptionTheServiceInformation
value held by thisServiceInformationHolder
object in itsvalue
field. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newServiceInformationHolder
object with itsvalue
field initialized to null.Constructs a newServiceInformationHolder
object with itsvalue
field initialized to the givenServiceInformation
object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
_read
(InputStream in) Reads unmarshalled data from the input streamin
and assigns it to thevalue
field in thisServiceInformationHolder
object._type()
Retrieves theTypeCode
object that corresponds to the value held in thisServiceInformationHolder
object'svalue
field.void
_write
(OutputStream out) Marshals the value in thisServiceInformationHolder
object'svalue
field to the output streamout
.
-
Field Details
-
value
TheServiceInformation
value held by thisServiceInformationHolder
object in itsvalue
field.
-
-
Constructor Details
-
ServiceInformationHolder
public ServiceInformationHolder()Constructs a newServiceInformationHolder
object with itsvalue
field initialized to null. -
ServiceInformationHolder
Constructs a newServiceInformationHolder
object with itsvalue
field initialized to the givenServiceInformation
object.- Parameters:
arg
- theServiceInformation
object with which to initialize thevalue
field of the newly-createdServiceInformationHolder
object
-
-
Method Details
-
_write
Marshals the value in thisServiceInformationHolder
object'svalue
field to the output streamout
.- Specified by:
_write
in interfaceStreamable
- Parameters:
out
- theOutputStream
object that will contain the CDR formatted data
-
_read
Reads unmarshalled data from the input streamin
and assigns it to thevalue
field in thisServiceInformationHolder
object.- Specified by:
_read
in interfaceStreamable
- Parameters:
in
- theInputStream
object containing CDR formatted data from the wire
-
_type
Retrieves theTypeCode
object that corresponds to the value held in thisServiceInformationHolder
object'svalue
field.- Specified by:
_type
in interfaceStreamable
- Returns:
- the type code for the value held in this
ServiceInformationHolder
object
-