1/* 2 * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * 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 32package org.omg.CORBA; 33 34/** 35 * A description in the Interface Repository of a member of an IDL union. 36 */ 37public final class UnionMember implements org.omg.CORBA.portable.IDLEntity { 38 // instance variables 39 40 /** 41 * The name of the union member described by this 42 * <code>UnionMember</code> object. 43 * @serial 44 */ 45 public String name; 46 47 /** 48 * The label of the union member described by this 49 * <code>UnionMember</code> object. 50 * @serial 51 */ 52 public org.omg.CORBA.Any label; 53 54 /** 55 * The type of the union member described by this 56 * <code>UnionMember</code> object. 57 * @serial 58 */ 59 public org.omg.CORBA.TypeCode type; 60 61 /** 62 * The typedef that represents the IDL type of the union member described by this 63 * <code>UnionMember</code> object. 64 * @serial 65 */ 66 public org.omg.CORBA.IDLType type_def; 67 68 // constructors 69 70 /** 71 * Constructs a new <code>UnionMember</code> object with its fields initialized 72 * to null. 73 */ 74 public UnionMember() { } 75 76 /** 77 * Constructs a new <code>UnionMember</code> object with its fields initialized 78 * to the given values. 79 * 80 * @param __name a <code>String</code> object with the name of this 81 * <code>UnionMember</code> object 82 * @param __label an <code>Any</code> object with the label of this 83 * <code>UnionMember</code> object 84 * @param __type a <code>TypeCode</code> object describing the type of this 85 * <code>UnionMember</code> object 86 * @param __type_def an <code>IDLType</code> object that represents the 87 * IDL type of this <code>UnionMember</code> object 88 */ 89 public UnionMember(String __name, org.omg.CORBA.Any __label, org.omg.CORBA.TypeCode __type, org.omg.CORBA.IDLType __type_def) { 90 name = __name; 91 label = __label; 92 type = __type; 93 type_def = __type_def; 94 } 95} 96