- java.lang.Object
-
- org.omg.CORBA.ServiceInformationHolder
-
- All Implemented Interfaces:
Streamable
public final class ServiceInformationHolder extends Object implements Streamable
The Holder forServiceInformation. For more information on Holder files, see "Generated Files: Holder Files".A Holder class for a
ServiceInformationobject that is used to store "out" and "inout" parameters in IDL methods. If an IDL method signature has an IDLxxxas an "out" or "inout" parameter, the programmer must pass an instance ofServiceInformationHolderas 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
myServiceInformationHolderis an instance ofServiceInformationHolder, the value stored in itsvaluefield can be accessed withmyServiceInformationHolder.value.
-
-
Field Summary
Fields Modifier and Type Field Description ServiceInformationvalueTheServiceInformationvalue held by thisServiceInformationHolderobject in itsvaluefield.
-
Constructor Summary
Constructors Constructor Description ServiceInformationHolder()Constructs a newServiceInformationHolderobject with itsvaluefield initialized to null.ServiceInformationHolder(ServiceInformation arg)Constructs a newServiceInformationHolderobject with itsvaluefield initialized to the givenServiceInformationobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void_read(InputStream in)Reads unmarshalled data from the input streaminand assigns it to thevaluefield in thisServiceInformationHolderobject.TypeCode_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 Detail
-
value
public ServiceInformation value
TheServiceInformationvalue held by thisServiceInformationHolderobject in itsvaluefield.
-
-
Constructor Detail
-
ServiceInformationHolder
public ServiceInformationHolder()
Constructs a newServiceInformationHolderobject with itsvaluefield initialized to null.
-
ServiceInformationHolder
public ServiceInformationHolder(ServiceInformation arg)
Constructs a newServiceInformationHolderobject with itsvaluefield initialized to the givenServiceInformationobject.- Parameters:
arg- theServiceInformationobject with which to initialize thevaluefield of the newly-createdServiceInformationHolderobject
-
-
Method Detail
-
_write
public void _write(OutputStream out)
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
public void _read(InputStream in)
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
public TypeCode _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
-
-