KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)UnionMember.java 1.20 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  * File: ./org/omg/CORBA/UnionMember.java
9  * From: ./ir.idl
10  * Date: Fri Aug 28 16:03:31 1998
11  * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
12  */

13
14 package org.omg.CORBA;
15
16 /**
17  * A description in the Interface Repository of a member of an IDL union.
18  */

19 public final class UnionMember implements org.omg.CORBA.portable.IDLEntity JavaDoc {
20     // instance variables
21

22     /**
23      * The name of the union member described by this
24      * <code>UnionMember</code> object.
25      * @serial
26      */

27     public String JavaDoc name;
28
29     /**
30      * The label of the union member described by this
31      * <code>UnionMember</code> object.
32      * @serial
33      */

34     public org.omg.CORBA.Any JavaDoc label;
35
36     /**
37      * The type of the union member described by this
38      * <code>UnionMember</code> object.
39      * @serial
40      */

41     public org.omg.CORBA.TypeCode JavaDoc type;
42
43     /**
44      * The typedef that represents the IDL type of the union member described by this
45      * <code>UnionMember</code> object.
46      * @serial
47      */

48     public org.omg.CORBA.IDLType JavaDoc type_def;
49
50     // constructors
51

52     /**
53      * Constructs a new <code>UnionMember</code> object with its fields initialized
54      * to null.
55      */

56     public UnionMember() { }
57
58     /**
59      * Constructs a new <code>UnionMember</code> object with its fields initialized
60      * to the given values.
61      *
62      * @param __name a <code>String</code> object with the name of this
63      * <code>UnionMember</code> object
64      * @param __label an <code>Any</code> object with the label of this
65      * <code>UnionMember</code> object
66      * @param __type a <code>TypeCode</code> object describing the type of this
67      * <code>UnionMember</code> object
68      * @param __type_def an <code>IDLType</code> object that represents the
69      * IDL type of this <code>UnionMember</code> object
70      */

71     public UnionMember(String JavaDoc __name, org.omg.CORBA.Any JavaDoc __label, org.omg.CORBA.TypeCode JavaDoc __type, org.omg.CORBA.IDLType JavaDoc __type_def) {
72     name = __name;
73     label = __label;
74     type = __type;
75     type_def = __type_def;
76     }
77 }
78
Popular Tags