1. package org.omg.CosNaming;
  2. /**
  3. * org/omg/CosNaming/NameComponentHolder.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. * Many of the operations defined on a naming context take names as
  10. * parameters. Names have structure. A name is an ordered sequence of
  11. * components. <p>
  12. *
  13. * A name with a single component is called a simple name; a name with
  14. * multiple components is called a compound name. Each component except
  15. * the last is used to name a context; the last component denotes the
  16. * bound object. <p>
  17. *
  18. * A name component consists of two attributes: the identifier
  19. * attribute and the kind attribute. Both the identifier attribute and the
  20. * kind attribute are represented as IDL strings. The kind attribute adds
  21. * descriptive power to names in a syntax-independent way. Examples of the
  22. * value of the kind attribute include c_source, object_code, executable,
  23. * postscript, or " ".
  24. */
  25. public final class NameComponentHolder implements org.omg.CORBA.portable.Streamable
  26. {
  27. public org.omg.CosNaming.NameComponent value = null;
  28. public NameComponentHolder ()
  29. {
  30. }
  31. public NameComponentHolder (org.omg.CosNaming.NameComponent initialValue)
  32. {
  33. value = initialValue;
  34. }
  35. public void _read (org.omg.CORBA.portable.InputStream i)
  36. {
  37. value = org.omg.CosNaming.NameComponentHelper.read (i);
  38. }
  39. public void _write (org.omg.CORBA.portable.OutputStream o)
  40. {
  41. org.omg.CosNaming.NameComponentHelper.write (o, value);
  42. }
  43. public org.omg.CORBA.TypeCode _type ()
  44. {
  45. return org.omg.CosNaming.NameComponentHelper.type ();
  46. }
  47. }