1. package org.omg.IOP;
  2. /**
  3. * org/omg/IOP/ComponentIdHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/PortableInterceptor/IOP.idl
  6. * Monday, February 23, 2004 7:03:03 AM GMT
  7. */
  8. /**
  9. * Standard way of representing multicomponent profiles.
  10. * This would be encapsulated in a TaggedProfile.
  11. */
  12. abstract public class ComponentIdHelper
  13. {
  14. private static String _id = "IDL:omg.org/IOP/ComponentId:1.0";
  15. public static void insert (org.omg.CORBA.Any a, int that)
  16. {
  17. org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
  18. a.type (type ());
  19. write (out, that);
  20. a.read_value (out.create_input_stream (), type ());
  21. }
  22. public static int extract (org.omg.CORBA.Any a)
  23. {
  24. return read (a.create_input_stream ());
  25. }
  26. private static org.omg.CORBA.TypeCode __typeCode = null;
  27. synchronized public static org.omg.CORBA.TypeCode type ()
  28. {
  29. if (__typeCode == null)
  30. {
  31. __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulong);
  32. __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.IOP.ComponentIdHelper.id (), "ComponentId", __typeCode);
  33. }
  34. return __typeCode;
  35. }
  36. public static String id ()
  37. {
  38. return _id;
  39. }
  40. public static int read (org.omg.CORBA.portable.InputStream istream)
  41. {
  42. int value = (int)0;
  43. value = istream.read_ulong ();
  44. return value;
  45. }
  46. public static void write (org.omg.CORBA.portable.OutputStream ostream, int value)
  47. {
  48. ostream.write_ulong (value);
  49. }
  50. }