1. /*
  2. * @(#)NameValuePair.java 1.6 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * The NameValuePair interface associates a name with a value that is an
  10. * attribute of an IDL struct. This interface is used in the DynStruct APIs.
  11. */
  12. public final class NameValuePair implements org.omg.CORBA.portable.IDLEntity {
  13. /**
  14. * The name to be associated with a value by this <code>NameValuePair</code> object.
  15. */
  16. public String id;
  17. /**
  18. * The value to be associated with a name by this <code>NameValuePair</code> object.
  19. */
  20. public org.omg.CORBA.Any value;
  21. /**
  22. * Constructs an empty <code>NameValuePair</code> object.
  23. * To associate a name with a value after using this constructor, the fields
  24. * of this object have to be accessed individually.
  25. */
  26. public NameValuePair() { }
  27. /**
  28. * Constructs a <code>NameValuePair</code> object that associates
  29. * the given name with the given <code>org.omg.CORBA.Any</code> object.
  30. * @param __id the name to be associated with the given <code>Any</code> object
  31. * @param __value the <code>Any</code> object to be associated with the given name
  32. */
  33. public NameValuePair(String __id, org.omg.CORBA.Any __value) {
  34. id = __id;
  35. value = __value;
  36. }
  37. }