duke@1: /* ohair@158: * Copyright (c) 1998, 2004, 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: duke@1: package org.omg.CORBA; duke@1: duke@1: /** duke@1: * The DynUnion interface represents a DynAny object duke@1: * that is associated with an IDL union. duke@1: * Union values can be traversed using the operations defined in DynAny. duke@1: * The first component in the union corresponds to the discriminator; duke@1: * the second corresponds to the actual value of the union. duke@1: * Calling the method next() twice allows you to access both components. duke@1: * @deprecated Use the new DynUnion instead duke@1: */ duke@1: @Deprecated duke@1: public interface DynUnion extends org.omg.CORBA.Object, org.omg.CORBA.DynAny duke@1: { duke@1: /** duke@1: * Determines whether the discriminator associated with this union has been assigned duke@1: * a valid default value. duke@1: * @return true if the discriminator has a default value; duke@1: * false otherwise duke@1: */ duke@1: public boolean set_as_default(); duke@1: duke@1: /** duke@1: * Determines whether the discriminator associated with this union gets assigned duke@1: * a valid default value. duke@1: * @param arg true if the discriminator gets assigned a default value duke@1: */ duke@1: public void set_as_default(boolean arg); duke@1: duke@1: /** duke@1: * Returns a DynAny object reference that must be narrowed to the type duke@1: * of the discriminator in order to insert/get the discriminator value. duke@1: * @return a DynAny object reference representing the discriminator value duke@1: */ duke@1: public org.omg.CORBA.DynAny discriminator(); duke@1: duke@1: /** duke@1: * Returns the TCKind object associated with the discriminator of this union. duke@1: * @return the TCKind object associated with the discriminator of this union duke@1: */ duke@1: public org.omg.CORBA.TCKind discriminator_kind(); duke@1: duke@1: /** duke@1: * Returns a DynAny object reference that is used in order to insert/get duke@1: * a member of this union. duke@1: * @return the DynAny object representing a member of this union duke@1: */ duke@1: public org.omg.CORBA.DynAny member(); duke@1: duke@1: /** duke@1: * Allows for the inspection of the name of this union member duke@1: * without checking the value of the discriminator. duke@1: * @return the name of this union member duke@1: */ duke@1: public String member_name(); duke@1: duke@1: /** duke@1: * Allows for the assignment of the name of this union member. duke@1: * @param arg the new name of this union member duke@1: */ duke@1: public void member_name(String arg); duke@1: duke@1: /** duke@1: * Returns the TCKind associated with the member of this union. duke@1: * @return the TCKind object associated with the member of this union duke@1: */ duke@1: public org.omg.CORBA.TCKind member_kind(); duke@1: }