01: /*
02: * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
03: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
04: *
05: * This code is free software; you can redistribute it and/or modify it
06: * under the terms of the GNU General Public License version 2 only, as
07: * published by the Free Software Foundation. Sun designates this
08: * particular file as subject to the "Classpath" exception as provided
09: * by Sun in the LICENSE file that accompanied this code.
10: *
11: * This code is distributed in the hope that it will be useful, but WITHOUT
12: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14: * version 2 for more details (a copy is included in the LICENSE file that
15: * accompanied this code).
16: *
17: * You should have received a copy of the GNU General Public License version
18: * 2 along with this work; if not, write to the Free Software Foundation,
19: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20: *
21: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22: * CA 95054 USA or visit www.sun.com if you need additional information or
23: * have any questions.
24: */
25: /*
26: * File: ./org/omg/CORBA/UnionMember.java
27: * From: ./ir.idl
28: * Date: Fri Aug 28 16:03:31 1998
29: * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
30: */
31:
32: package org.omg.CORBA;
33:
34: /**
35: * A description in the Interface Repository of a member of an IDL union.
36: */
37: public final class UnionMember implements
38: org.omg.CORBA.portable.IDLEntity {
39: // instance variables
40:
41: /**
42: * The name of the union member described by this
43: * <code>UnionMember</code> object.
44: * @serial
45: */
46: public String name;
47:
48: /**
49: * The label of the union member described by this
50: * <code>UnionMember</code> object.
51: * @serial
52: */
53: public org.omg.CORBA.Any label;
54:
55: /**
56: * The type of the union member described by this
57: * <code>UnionMember</code> object.
58: * @serial
59: */
60: public org.omg.CORBA.TypeCode type;
61:
62: /**
63: * The typedef that represents the IDL type of the union member described by this
64: * <code>UnionMember</code> object.
65: * @serial
66: */
67: public org.omg.CORBA.IDLType type_def;
68:
69: // constructors
70:
71: /**
72: * Constructs a new <code>UnionMember</code> object with its fields initialized
73: * to null.
74: */
75: public UnionMember() {
76: }
77:
78: /**
79: * Constructs a new <code>UnionMember</code> object with its fields initialized
80: * to the given values.
81: *
82: * @param __name a <code>String</code> object with the name of this
83: * <code>UnionMember</code> object
84: * @param __label an <code>Any</code> object with the label of this
85: * <code>UnionMember</code> object
86: * @param __type a <code>TypeCode</code> object describing the type of this
87: * <code>UnionMember</code> object
88: * @param __type_def an <code>IDLType</code> object that represents the
89: * IDL type of this <code>UnionMember</code> object
90: */
91: public UnionMember(String __name, org.omg.CORBA.Any __label,
92: org.omg.CORBA.TypeCode __type,
93: org.omg.CORBA.IDLType __type_def) {
94: name = __name;
95: label = __label;
96: type = __type;
97: type_def = __type_def;
98: }
99: }
|