KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > NameValuePair


1 /*
2  * @(#)NameValuePair.java 1.15 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8
9 package org.omg.CORBA;
10
11 /**
12  * Associates a name with a value that is an
13  * attribute of an IDL struct, and is used in the <tt>DynStruct</tt> APIs.
14  */

15
16 public final class NameValuePair implements org.omg.CORBA.portable.IDLEntity JavaDoc {
17
18     /**
19      * The name to be associated with a value by this <code>NameValuePair</code> object.
20      */

21     public String JavaDoc id;
22
23     /**
24      * The value to be associated with a name by this <code>NameValuePair</code> object.
25      */

26     public org.omg.CORBA.Any JavaDoc value;
27
28     /**
29      * Constructs an empty <code>NameValuePair</code> object.
30      * To associate a name with a value after using this constructor, the fields
31      * of this object have to be accessed individually.
32      */

33     public NameValuePair() { }
34     
35     /**
36      * Constructs a <code>NameValuePair</code> object that associates
37      * the given name with the given <code>org.omg.CORBA.Any</code> object.
38      * @param __id the name to be associated with the given <code>Any</code> object
39      * @param __value the <code>Any</code> object to be associated with the given name
40      */

41     public NameValuePair(String JavaDoc __id, org.omg.CORBA.Any JavaDoc __value) {
42     id = __id;
43     value = __value;
44     }
45 }
46
Popular Tags