001 package org.omg.CORBA;
002 public final class WStringValueHelper
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.WStringValueHelper.id(),"WStringValue",org.omg.CORBA.ORB.init().create_wstring_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/WStringValue: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_wstring();
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_wstring(s);
034 }
035 public java.io.Serializable read_value (final org.omg.CORBA.portable.InputStream is)
036 {
037 return org.omg.CORBA.WStringValueHelper.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.WStringValueHelper.write (os, (java.lang.String)value);
042 }
043 public java.lang.String get_id()
044 {
045 return org.omg.CORBA.WStringValueHelper.id();
046 }
047 }