01: /***** Copyright (c) 1999 Object Management Group. Unlimited rights to
02: duplicate and use this code are hereby granted provided that this
03: copyright notice is included.
04: *****/package org.omg.CORBA;
05:
06: final public class ValueBaseHolder implements
07: org.omg.CORBA.portable.Streamable {
08:
09: public java.io.Serializable value;
10:
11: public ValueBaseHolder() {
12: }
13:
14: public ValueBaseHolder(java.io.Serializable initial) {
15: value = initial;
16: }
17:
18: public void _read(org.omg.CORBA.portable.InputStream is) {
19: value = ValueBaseHelper.read(is);
20: }
21:
22: public void _write(org.omg.CORBA.portable.OutputStream os) {
23: ValueBaseHelper.write(os, value);
24: }
25:
26: public org.omg.CORBA.TypeCode _type() {
27: return org.omg.CORBA.ORB.init().get_primitive_tc(
28: TCKind.tk_value);
29: }
30:
31: }
|