1. /*
  2. * @(#)NameValuePair.java 1.10 00/02/02
  3. *
  4. * Copyright 1998-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. package org.omg.CORBA;
  11. /**
  12. * The NameValuePair interface associates a name with a value that is an
  13. * attribute of an IDL struct. This interface is used in the DynStruct APIs.
  14. */
  15. public final class NameValuePair implements org.omg.CORBA.portable.IDLEntity {
  16. /**
  17. * The name to be associated with a value by this <code>NameValuePair</code> object.
  18. */
  19. public String id;
  20. /**
  21. * The value to be associated with a name by this <code>NameValuePair</code> object.
  22. */
  23. public org.omg.CORBA.Any value;
  24. /**
  25. * Constructs an empty <code>NameValuePair</code> object.
  26. * To associate a name with a value after using this constructor, the fields
  27. * of this object have to be accessed individually.
  28. */
  29. public NameValuePair() { }
  30. /**
  31. * Constructs a <code>NameValuePair</code> object that associates
  32. * the given name with the given <code>org.omg.CORBA.Any</code> object.
  33. * @param __id the name to be associated with the given <code>Any</code> object
  34. * @param __value the <code>Any</code> object to be associated with the given name
  35. */
  36. public NameValuePair(String __id, org.omg.CORBA.Any __value) {
  37. id = __id;
  38. value = __value;
  39. }
  40. }