1. package org.omg.CosNaming;
  2. /**
  3. * org/omg/CosNaming/NamingContextExtOperations.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/org/omg/CosNaming/nameservice.idl
  6. * Wednesday, September 15, 2004 10:28:48 AM GMT
  7. */
  8. /**
  9. * <code>NamingContextExt</code> is the extension of <code>NamingContext</code>
  10. * which
  11. * contains a set of name bindings in which each name is unique and is
  12. * part of Interoperable Naming Service.
  13. * Different names can be bound to an object in the same or different
  14. * contexts at the same time. Using <tt>NamingContextExt</tt>, you can use
  15. * URL-based names to bind and resolve. <p>
  16. *
  17. * See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
  18. * CORBA COS
  19. * Naming Specification.</a>
  20. */
  21. public interface NamingContextExtOperations extends org.omg.CosNaming.NamingContextOperations
  22. {
  23. /**
  24. * This operation creates a stringified name from the array of Name
  25. * components.
  26. *
  27. * @param n Name of the object <p>
  28. *
  29. * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
  30. * Indicates the name does not identify a binding.<p>
  31. *
  32. */
  33. String to_string (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.InvalidName;
  34. /**
  35. * This operation converts a Stringified Name into an equivalent array
  36. * of Name Components.
  37. *
  38. * @param sn Stringified Name of the object <p>
  39. *
  40. * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
  41. * Indicates the name does not identify a binding.<p>
  42. *
  43. */
  44. org.omg.CosNaming.NameComponent[] to_name (String sn) throws org.omg.CosNaming.NamingContextPackage.InvalidName;
  45. /**
  46. * This operation creates a URL based "iiopname://" format name
  47. * from the Stringified Name of the object.
  48. *
  49. * @param addr internet based address of the host machine where Name Service is running <p>
  50. * @param sn Stringified Name of the object <p>
  51. *
  52. * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
  53. * Indicates the name does not identify a binding.<p>
  54. * @exception org.omg.CosNaming.NamingContextPackage.InvalidAddress
  55. * Indicates the internet based address of the host machine is
  56. * incorrect <p>
  57. *
  58. */
  59. String to_url (String addr, String sn) throws org.omg.CosNaming.NamingContextExtPackage.InvalidAddress, org.omg.CosNaming.NamingContextPackage.InvalidName;
  60. /**
  61. * This operation resolves the Stringified name into the object
  62. * reference.
  63. *
  64. * @param sn Stringified Name of the object <p>
  65. *
  66. * @exception org.omg.CosNaming.NamingContextPackage.NotFound
  67. * Indicates there is no object reference for the given name. <p>
  68. * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
  69. * Indicates that the given compound name is incorrect <p>
  70. * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
  71. * Indicates the name does not identify a binding.<p>
  72. *
  73. */
  74. org.omg.CORBA.Object resolve_str (String sn) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName;
  75. } // interface NamingContextExtOperations