1. package org.omg.CosNaming;
  2. /**
  3. * org/omg/CosNaming/NameComponent.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 NameComponent implements org.omg.CORBA.portable.IDLEntity
  26. {
  27. public String id = null;
  28. public String kind = null;
  29. public NameComponent ()
  30. {
  31. } // ctor
  32. public NameComponent (String _id, String _kind)
  33. {
  34. id = _id;
  35. kind = _kind;
  36. } // ctor
  37. } // class NameComponent