1. package org.omg.CosNaming;
  2. /**
  3. * org/omg/CosNaming/NamingContextHolder.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. * A naming context is an object that contains a set of name bindings in
  10. * which each name is unique. Different names can be bound to an object
  11. * in the same or different contexts at the same time. <p>
  12. *
  13. * See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
  14. * CORBA COS
  15. * Naming Specification.</a>
  16. */
  17. public final class NamingContextHolder implements org.omg.CORBA.portable.Streamable
  18. {
  19. public org.omg.CosNaming.NamingContext value = null;
  20. public NamingContextHolder ()
  21. {
  22. }
  23. public NamingContextHolder (org.omg.CosNaming.NamingContext initialValue)
  24. {
  25. value = initialValue;
  26. }
  27. public void _read (org.omg.CORBA.portable.InputStream i)
  28. {
  29. value = org.omg.CosNaming.NamingContextHelper.read (i);
  30. }
  31. public void _write (org.omg.CORBA.portable.OutputStream o)
  32. {
  33. org.omg.CosNaming.NamingContextHelper.write (o, value);
  34. }
  35. public org.omg.CORBA.TypeCode _type ()
  36. {
  37. return org.omg.CosNaming.NamingContextHelper.type ();
  38. }
  39. }