001 package org.omg.CORBA; 002 public final class StringValueHelper 003 implements org.omg.CORBA.portable.BoxedValueHelper 004 { 005 private static org.omg.CORBA.TypeCode _type = org.omg.CORBA.ORB.init().create_value_box_tc(org.omg.CORBA.StringValueHelper.id(),"StringValue",org.omg.CORBA.ORB.init().create_string_tc(0)); 006 public static org.omg.CORBA.TypeCode type() 007 { 008 return _type; 009 } 010 011 public static void insert (final org.omg.CORBA.Any any, final java.lang.String s) 012 { 013 any.insert_Value(s, type()); 014 } 015 016 public static java.lang.String extract (final org.omg.CORBA.Any any) 017 { 018 return (java.lang.String) any.extract_Value(); 019 } 020 021 public static String id() 022 { 023 return "IDL:omg.org/CORBA/StringValue:1.0"; 024 } 025 public static java.lang.String read (final org.omg.CORBA.portable.InputStream in) 026 { 027 java.lang.String result; 028 result=in.read_string(); 029 return result; 030 } 031 public static void write (final org.omg.CORBA.portable.OutputStream out, final java.lang.String s) 032 { 033 out.write_string(s); 034 } 035 public java.io.Serializable read_value (final org.omg.CORBA.portable.InputStream is) 036 { 037 return org.omg.CORBA.StringValueHelper.read (is); 038 } 039 public void write_value (final org.omg.CORBA.portable.OutputStream os, final java.io.Serializable value) 040 { 041 org.omg.CORBA.StringValueHelper.write (os, (java.lang.String)value); 042 } 043 public java.lang.String get_id() 044 { 045 return org.omg.CORBA.StringValueHelper.id(); 046 } 047 }