duke@1: /*
ohair@158: * Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved.
duke@1: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@1: *
duke@1: * This code is free software; you can redistribute it and/or modify it
duke@1: * under the terms of the GNU General Public License version 2 only, as
ohair@158: * published by the Free Software Foundation. Oracle designates this
duke@1: * particular file as subject to the "Classpath" exception as provided
ohair@158: * by Oracle in the LICENSE file that accompanied this code.
duke@1: *
duke@1: * This code is distributed in the hope that it will be useful, but WITHOUT
duke@1: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@1: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@1: * version 2 for more details (a copy is included in the LICENSE file that
duke@1: * accompanied this code).
duke@1: *
duke@1: * You should have received a copy of the GNU General Public License version
duke@1: * 2 along with this work; if not, write to the Free Software Foundation,
duke@1: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@1: *
ohair@158: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@158: * or visit www.oracle.com if you need additional information or have any
ohair@158: * questions.
duke@1: */
duke@1: /*
duke@1: * File: ./org/omg/CORBA/UnionMember.java
duke@1: * From: ./ir.idl
duke@1: * Date: Fri Aug 28 16:03:31 1998
duke@1: * By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
duke@1: */
duke@1:
duke@1: package org.omg.CORBA;
duke@1:
duke@1: /**
duke@1: * A description in the Interface Repository of a member of an IDL union.
duke@1: */
duke@1: public final class UnionMember implements org.omg.CORBA.portable.IDLEntity {
duke@1: // instance variables
duke@1:
duke@1: /**
duke@1: * The name of the union member described by this
duke@1: * UnionMember
object.
duke@1: * @serial
duke@1: */
duke@1: public String name;
duke@1:
duke@1: /**
duke@1: * The label of the union member described by this
duke@1: * UnionMember
object.
duke@1: * @serial
duke@1: */
duke@1: public org.omg.CORBA.Any label;
duke@1:
duke@1: /**
duke@1: * The type of the union member described by this
duke@1: * UnionMember
object.
duke@1: * @serial
duke@1: */
duke@1: public org.omg.CORBA.TypeCode type;
duke@1:
duke@1: /**
duke@1: * The typedef that represents the IDL type of the union member described by this
duke@1: * UnionMember
object.
duke@1: * @serial
duke@1: */
duke@1: public org.omg.CORBA.IDLType type_def;
duke@1:
duke@1: // constructors
duke@1:
duke@1: /**
duke@1: * Constructs a new UnionMember
object with its fields initialized
duke@1: * to null.
duke@1: */
duke@1: public UnionMember() { }
duke@1:
duke@1: /**
duke@1: * Constructs a new UnionMember
object with its fields initialized
duke@1: * to the given values.
duke@1: *
duke@1: * @param __name a String
object with the name of this
duke@1: * UnionMember
object
duke@1: * @param __label an Any
object with the label of this
duke@1: * UnionMember
object
duke@1: * @param __type a TypeCode
object describing the type of this
duke@1: * UnionMember
object
duke@1: * @param __type_def an IDLType
object that represents the
duke@1: * IDL type of this UnionMember
object
duke@1: */
duke@1: public UnionMember(String __name, org.omg.CORBA.Any __label, org.omg.CORBA.TypeCode __type, org.omg.CORBA.IDLType __type_def) {
duke@1: name = __name;
duke@1: label = __label;
duke@1: type = __type;
duke@1: type_def = __type_def;
duke@1: }
duke@1: }