1. /*
  2. * @(#)SetOverrideTypeHelper.java 1.4 00/02/02
  3. *
  4. * Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package org.omg.CORBA;
  11. /**
  12. * org/omg/CORBA/SetOverrideTypeHelper.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 SetOverrideTypeHelper
  17. {
  18. private static String _id = "IDL:omg.org/CORBA/SetOverrideType:1.0";
  19. public static void insert (org.omg.CORBA.Any a, org.omg.CORBA.SetOverrideType 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 org.omg.CORBA.SetOverrideType 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_enum_tc (org.omg.CORBA.SetOverrideTypeHelper.id (), "SetOverrideType", new String[] { "SET_OVERRIDE", "ADD_OVERRIDE"} );
  36. }
  37. return __typeCode;
  38. }
  39. public static String id ()
  40. {
  41. return _id;
  42. }
  43. public static org.omg.CORBA.SetOverrideType read (org.omg.CORBA.portable.InputStream istream)
  44. {
  45. return org.omg.CORBA.SetOverrideType.from_int (istream.read_long ());
  46. }
  47. public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CORBA.SetOverrideType value)
  48. {
  49. ostream.write_long (value.value ());
  50. }
  51. }