001    /***** Copyright (c) 1999 Object Management Group. Unlimited rights to 
002           duplicate and use this code are hereby granted provided that this 
003           copyright notice is included.
004    *****/
005    
006    package org.omg.CORBA;
007    
008    final public class ValueBaseHolder
009                            implements org.omg.CORBA.portable.Streamable {
010    
011        public java.io.Serializable value;
012    
013        public ValueBaseHolder() {
014        }
015    
016        public ValueBaseHolder(java.io.Serializable initial) {
017            value = initial;
018        }
019    
020        public void _read(org.omg.CORBA.portable.InputStream is) {
021            value = ValueBaseHelper.read(is);
022        }
023    
024        public void _write(org.omg.CORBA.portable.OutputStream os) {
025            ValueBaseHelper.write(os, value);
026        }
027    
028        public org.omg.CORBA.TypeCode _type() {
029            return org.omg.CORBA.ORB.init().get_primitive_tc(TCKind.tk_value);
030        }
031    
032    }