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 BooleanHolder implements org.omg.CORBA.portable.Streamable {
009    
010        public boolean value;
011    
012        public BooleanHolder() {
013        }
014    
015        public BooleanHolder(boolean initial) {
016            value = initial;
017        }
018    
019        public void _read(org.omg.CORBA.portable.InputStream is) {
020            value = is.read_boolean();
021        }
022    
023        public void _write(org.omg.CORBA.portable.OutputStream os) {
024            os.write_boolean(value);
025        }
026    
027        public org.omg.CORBA.TypeCode _type() {
028            return org.omg.CORBA.ORB.init().get_primitive_tc(TCKind.tk_boolean);
029        }
030    
031    }