1 20 21 package org.jacorb.orb; 22 23 27 28 public class NamedValue 29 extends org.omg.CORBA.NamedValue 30 { 31 private org.omg.CORBA.Any value; 32 private String name; 33 private int arg_modes; 34 35 public NamedValue(int modes) 36 { 37 arg_modes = modes; 38 } 39 40 public NamedValue( String n, org.omg.CORBA.Any a, int modes ) 41 { 42 name = n; 43 value = a; 44 arg_modes = modes; 45 } 46 47 public NamedValue( String n, int modes ) 48 { 49 name = n; 50 arg_modes = modes; 51 } 52 53 public java.lang.String name() 54 { 55 return name; 56 } 57 58 public org.omg.CORBA.Any value() 59 { 60 return value; 61 } 62 63 public int flags() 64 { 65 return arg_modes; 66 } 67 68 public void set_value( org.omg.CORBA.Any v ) 69 { 70 value = v; 71 } 72 73 74 75 public void send(org.omg.CORBA.portable.OutputStream out ) 76 { 77 value().write_value(out); 78 } 79 80 public void receive(org.omg.CORBA.portable.InputStream in ) 81 { 82 value().read_value(in, value().type()); 83 } 84 85 86 } 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | Popular Tags |