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 PrincipalHolder 9 implements org.omg.CORBA.portable.Streamable { 10 11 public org.omg.CORBA.Principal value; 12 13 public PrincipalHolder() { 14 } 15 16 public PrincipalHolder(org.omg.CORBA.Principal initial) { 17 value = initial; 18 } 19 20 public void _read(org.omg.CORBA.portable.InputStream is) { 21 value = is.read_Principal(); 22 } 23 24 public void _write(org.omg.CORBA.portable.OutputStream os) { 25 os.write_Principal(value); 26 } 27 28 public org.omg.CORBA.TypeCode _type() { 29 return org.omg.CORBA.ORB.init().get_primitive_tc(TCKind.tk_Principal); 30 } 31 32 }