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