1. package org.omg.CosNaming.NamingContextPackage;
  2. /**
  3. * org/omg/CosNaming/NamingContextPackage/NotFoundReasonHelper.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/CosNaming/nameservice.idl
  6. * Monday, February 23, 2004 7:03:07 AM GMT
  7. */
  8. /**
  9. * Indicates the reason for not able to resolve.
  10. */
  11. abstract public class NotFoundReasonHelper
  12. {
  13. private static String _id = "IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0";
  14. public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextPackage.NotFoundReason that)
  15. {
  16. org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
  17. a.type (type ());
  18. write (out, that);
  19. a.read_value (out.create_input_stream (), type ());
  20. }
  21. public static org.omg.CosNaming.NamingContextPackage.NotFoundReason extract (org.omg.CORBA.Any a)
  22. {
  23. return read (a.create_input_stream ());
  24. }
  25. private static org.omg.CORBA.TypeCode __typeCode = null;
  26. synchronized public static org.omg.CORBA.TypeCode type ()
  27. {
  28. if (__typeCode == null)
  29. {
  30. __typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.id (), "NotFoundReason", new String[] { "missing_node", "not_context", "not_object"} );
  31. }
  32. return __typeCode;
  33. }
  34. public static String id ()
  35. {
  36. return _id;
  37. }
  38. public static org.omg.CosNaming.NamingContextPackage.NotFoundReason read (org.omg.CORBA.portable.InputStream istream)
  39. {
  40. return org.omg.CosNaming.NamingContextPackage.NotFoundReason.from_int (istream.read_long ());
  41. }
  42. public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NamingContextPackage.NotFoundReason value)
  43. {
  44. ostream.write_long (value.value ());
  45. }
  46. }