FileDocCategorySizeDatePackage
StringValueHelper.javaAPI DocJava SE 5 API3628Fri Aug 26 14:58:32 BST 2005org.omg.CORBA

StringValueHelper

public class StringValueHelper extends Object implements org.omg.CORBA.portable.BoxedValueHelper
The Helper for StringValue. For more information on Helper files, see "Generated Files: Helper Files".

org/omg/CORBA/StringValueHelper.java Generated by the IDL-to-Java compiler (portable), version "3.0" from orb.idl 31 May 1999 22:27:30 o'clock GMT+00:00 The class definition has been modified to conform to the following OMG specifications :

Fields Summary
private static String
_id
private static StringValueHelper
_instance
private static org.omg.CORBA.TypeCode
__typeCode
private static boolean
__active
Constructors Summary
Methods Summary
public static java.lang.Stringextract(org.omg.CORBA.Any a)

	return read (a.create_input_stream ());
    
public java.lang.Stringget_id()

	return _id;
    
public static java.lang.Stringid()

	return _id;
    
public static voidinsert(org.omg.CORBA.Any a, java.lang.String that)


           
    
	org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
	a.type (type ());
	write (out, that);
	a.read_value (out.create_input_stream (), type ());
    
public static java.lang.Stringread(org.omg.CORBA.portable.InputStream istream)

    if (!(istream instanceof org.omg.CORBA_2_3.portable.InputStream)) {
      throw new org.omg.CORBA.BAD_PARAM(); }
    return (String) ((org.omg.CORBA_2_3.portable.InputStream) istream).read_value (_instance);
    
public java.io.Serializableread_value(org.omg.CORBA.portable.InputStream istream)

    String tmp;
    tmp = istream.read_string ();
    return (java.io.Serializable) tmp;
    
public static synchronized org.omg.CORBA.TypeCodetype()

         
    
	if (__typeCode == null)
	    {
		synchronized (org.omg.CORBA.TypeCode.class)
		    {
			if (__typeCode == null)
			    {
				if (__active)
				    {
					return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
				    }
				__active = true;
				__typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0);
				__typeCode = org.omg.CORBA.ORB.init ().create_value_box_tc (_id, "StringValue", __typeCode);
				__active = false;
			    }
		    }
	    }
	return __typeCode;
    
public static voidwrite(org.omg.CORBA.portable.OutputStream ostream, java.lang.String value)

    if (!(ostream instanceof org.omg.CORBA_2_3.portable.OutputStream)) {
      throw new org.omg.CORBA.BAD_PARAM(); }
    ((org.omg.CORBA_2_3.portable.OutputStream) ostream).write_value (value, _instance);
    
public voidwrite_value(org.omg.CORBA.portable.OutputStream ostream, java.io.Serializable value)

    if (!(value instanceof String)) {
      throw new org.omg.CORBA.MARSHAL(); }
    String valueType = (String) value;
    ostream.write_string (valueType);