1. /*
  2. * @(#)FieldNameHelper.java 1.8 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * The Helper for <tt>FieldName</tt>. For more information on
  10. * Helper files, see <a href="doc-files/generatedfiles.html#helper">
  11. * "Generated Files: Helper Files"</a>.<P>
  12. * org/omg/CORBA/FieldNameHelper.java
  13. * Generated by the IDL-to-Java compiler (portable), version "3.0"
  14. * 03 June 1999 11:52:03 o'clock GMT+00:00
  15. */
  16. abstract public class FieldNameHelper
  17. {
  18. private static String _id = "IDL:omg.org/CORBA/FieldName:1.0";
  19. public static void insert (org.omg.CORBA.Any a, String that)
  20. {
  21. org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
  22. a.type (type ());
  23. write (out, that);
  24. a.read_value (out.create_input_stream (), type ());
  25. }
  26. public static String extract (org.omg.CORBA.Any a)
  27. {
  28. return read (a.create_input_stream ());
  29. }
  30. private static org.omg.CORBA.TypeCode __typeCode = null;
  31. synchronized public static org.omg.CORBA.TypeCode type ()
  32. {
  33. if (__typeCode == null)
  34. {
  35. __typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0);
  36. __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CORBA.FieldNameHelper.id (), "FieldName", __typeCode);
  37. }
  38. return __typeCode;
  39. }
  40. public static String id ()
  41. {
  42. return _id;
  43. }
  44. public static String read (org.omg.CORBA.portable.InputStream istream)
  45. {
  46. String value = null;
  47. value = istream.read_string ();
  48. return value;
  49. }
  50. public static void write (org.omg.CORBA.portable.OutputStream ostream, String value)
  51. {
  52. ostream.write_string (value);
  53. }
  54. }