1. /*
  2. * @(#)NameHolder.java 1.9 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. /*
  11. * File: ./org/omg/CosNaming/NameHolder.java
  12. * From: nameservice.idl
  13. * Date: Tue Aug 11 03:12:09 1998
  14. * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
  15. */
  16. package org.omg.CosNaming;
  17. public final class NameHolder
  18. implements org.omg.CORBA.portable.Streamable
  19. {
  20. // instance variable
  21. public org.omg.CosNaming.NameComponent[] value;
  22. // constructors
  23. public NameHolder() {
  24. this(null);
  25. }
  26. public NameHolder(org.omg.CosNaming.NameComponent[] __arg) {
  27. value = __arg;
  28. }
  29. public void _write(org.omg.CORBA.portable.OutputStream out) {
  30. org.omg.CosNaming.NameHelper.write(out, value);
  31. }
  32. public void _read(org.omg.CORBA.portable.InputStream in) {
  33. value = org.omg.CosNaming.NameHelper.read(in);
  34. }
  35. public org.omg.CORBA.TypeCode _type() {
  36. return org.omg.CosNaming.NameHelper.type();
  37. }
  38. }