1 |
/* NameValuePair.java -- |
/* NameValuePair.java -- |
2 |
Copyright (C) 2005 Free Software Foundation, Inc. |
Copyright (C) 2005 Free Software Foundation, Inc. |
3 |
|
This file is part of GNU Classpath. |
4 |
|
|
5 |
This file is part of GNU Classpath. |
GNU Classpath is free software; you can redistribute it and/or modify |
6 |
|
it under the terms of the GNU General Public License as published by |
7 |
GNU Classpath is free software; you can redistribute it and/or modify |
the Free Software Foundation; either version 2, or (at your option) |
8 |
it under the terms of the GNU General Public License as published by |
any later version. |
9 |
the Free Software Foundation; either version 2, or (at your option) |
|
10 |
any later version. |
GNU Classpath is distributed in the hope that it will be useful, but |
11 |
|
WITHOUT ANY WARRANTY; without even the implied warranty of |
12 |
GNU Classpath is distributed in the hope that it will be useful, but |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
General Public License for more details. |
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
15 |
General Public License for more details. |
You should have received a copy of the GNU General Public License |
16 |
|
along with GNU Classpath; see the file COPYING. If not, write to the |
17 |
You should have received a copy of the GNU General Public License |
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
18 |
along with GNU Classpath; see the file COPYING. If not, write to the |
02110-1301 USA. |
19 |
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 |
02110-1301 USA. |
Linking this library statically or dynamically with other modules is |
21 |
|
making a combined work based on this library. Thus, the terms and |
22 |
Linking this library statically or dynamically with other modules is |
conditions of the GNU General Public License cover the whole |
23 |
making a combined work based on this library. Thus, the terms and |
combination. |
24 |
conditions of the GNU General Public License cover the whole |
|
25 |
combination. |
As a special exception, the copyright holders of this library give you |
26 |
|
permission to link this library with independent modules to produce an |
27 |
As a special exception, the copyright holders of this library give you |
executable, regardless of the license terms of these independent |
28 |
permission to link this library with independent modules to produce an |
modules, and to copy and distribute the resulting executable under |
29 |
executable, regardless of the license terms of these independent |
terms of your choice, provided that you also meet, for each linked |
30 |
modules, and to copy and distribute the resulting executable under |
independent module, the terms and conditions of the license of that |
31 |
terms of your choice, provided that you also meet, for each linked |
module. An independent module is a module which is not derived from |
32 |
independent module, the terms and conditions of the license of that |
or based on this library. If you modify this library, you may extend |
33 |
module. An independent module is a module which is not derived from |
this exception to your version of the library, but you are not |
34 |
or based on this library. If you modify this library, you may extend |
obligated to do so. If you do not wish to do so, delete this |
35 |
this exception to your version of the library, but you are not |
exception statement from your version. */ |
|
obligated to do so. If you do not wish to do so, delete this |
|
|
exception statement from your version. */ |
|
36 |
|
|
37 |
|
|
38 |
package org.omg.DynamicAny; |
package org.omg.DynamicAny; |
39 |
|
|
40 |
import org.omg.CORBA.Any; |
import org.omg.CORBA.Any; |
41 |
import org.omg.CORBA.DynStruct; |
import org.omg.CORBA.DynStruct; |
42 |
import org.omg.CORBA.IDLEntity; |
import org.omg.CORBA.portable.IDLEntity; |
43 |
|
|
44 |
import java.io.Serializable; |
import java.io.Serializable; |
45 |
|
|
46 |
/** |
/** |
47 |
* Holds the value, having the given name(id). This class is used by with |
* Holds the value, having the given name(id). This class is used by with |
48 |
* {@link DynStruct} to name the fields of the record (structure). |
* {@link DynStruct} to name the fields of the record (structure). |
49 |
* |
* |
50 |
* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) |
* @author Audrius Meskauskas, Lithuania (AudriusA@Bioinformatics.org) |
51 |
*/ |
*/ |
52 |
public final class NameValuePair implements Serializable, IDLEntity |
public final class NameValuePair |
53 |
|
implements Serializable, IDLEntity |
54 |
{ |
{ |
55 |
/** |
/** |
56 |
* Use serialVersionUID (v1.4) for interoperability. |
* Use serialVersionUID (v1.4) for interoperability. |
76 |
|
|
77 |
/** |
/** |
78 |
* Creates the name-value pair, initialising the fields to the passed values. |
* Creates the name-value pair, initialising the fields to the passed values. |
79 |
* |
* |
80 |
* @param aName the name (also called id) of the name-value pair, normally the |
* @param aName the name (also called id) of the name-value pair, normally the |
81 |
* name of the structure field. |
* name of the structure field. |
82 |
* |
* |
83 |
* @param aValue the value of the name-value pair. |
* @param aValue the value of the name-value pair. |
84 |
*/ |
*/ |
85 |
public NameValuePair(String aName, Any aValue) |
public NameValuePair(String aName, Any aValue) |