/* * @(#)NameValuePair.java 1.15 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package org.omg.CORBA; /** * Associates a name with a value that is an * attribute of an IDL struct, and is used in the DynStruct APIs. */ public final class NameValuePair implements org.omg.CORBA.portable.IDLEntity { /** * The name to be associated with a value by this NameValuePair object. */ public String id; /** * The value to be associated with a name by this NameValuePair object. */ public org.omg.CORBA.Any value; /** * Constructs an empty NameValuePair object. * To associate a name with a value after using this constructor, the fields * of this object have to be accessed individually. */ public NameValuePair() { } /** * Constructs a NameValuePair object that associates * the given name with the given org.omg.CORBA.Any object. * @param __id the name to be associated with the given Any object * @param __value the Any object to be associated with the given name */ public NameValuePair(String __id, org.omg.CORBA.Any __value) { id = __id; value = __value; } }