src/share/classes/org/omg/CORBA/DynUnion.java

changeset 1
55540e827aef
child 158
91006f157c46
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/share/classes/org/omg/CORBA/DynUnion.java	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,94 @@
     1.4 +/*
     1.5 + * Copyright 1998-2004 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.7 + *
     1.8 + * This code is free software; you can redistribute it and/or modify it
     1.9 + * under the terms of the GNU General Public License version 2 only, as
    1.10 + * published by the Free Software Foundation.  Sun designates this
    1.11 + * particular file as subject to the "Classpath" exception as provided
    1.12 + * by Sun in the LICENSE file that accompanied this code.
    1.13 + *
    1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT
    1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.16 + * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.17 + * version 2 for more details (a copy is included in the LICENSE file that
    1.18 + * accompanied this code).
    1.19 + *
    1.20 + * You should have received a copy of the GNU General Public License version
    1.21 + * 2 along with this work; if not, write to the Free Software Foundation,
    1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.23 + *
    1.24 + * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.25 + * CA 95054 USA or visit www.sun.com if you need additional information or
    1.26 + * have any questions.
    1.27 + */
    1.28 +
    1.29 +
    1.30 +package org.omg.CORBA;
    1.31 +
    1.32 +/**
    1.33 + * The <code>DynUnion</code> interface represents a <code>DynAny</code> object
    1.34 + * that is associated with an IDL union.
    1.35 + * Union values can be traversed using the operations defined in <code>DynAny</code>.
    1.36 + * The first component in the union corresponds to the discriminator;
    1.37 + * the second corresponds to the actual value of the union.
    1.38 + * Calling the method <code>next()</code> twice allows you to access both components.
    1.39 + * @deprecated Use the new <a href="../DynamicAny/DynUnion.html">DynUnion</a> instead
    1.40 + */
    1.41 +@Deprecated
    1.42 +public interface DynUnion extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
    1.43 +{
    1.44 +    /**
    1.45 +     * Determines whether the discriminator associated with this union has been assigned
    1.46 +     * a valid default value.
    1.47 +     * @return <code>true</code> if the discriminator has a default value;
    1.48 +     * <code>false</code> otherwise
    1.49 +     */
    1.50 +    public boolean set_as_default();
    1.51 +
    1.52 +    /**
    1.53 +    * Determines whether the discriminator associated with this union gets assigned
    1.54 +    * a valid default value.
    1.55 +    * @param arg <code>true</code> if the discriminator gets assigned a default value
    1.56 +    */
    1.57 +    public void set_as_default(boolean arg);
    1.58 +
    1.59 +    /**
    1.60 +    * Returns a DynAny object reference that must be narrowed to the type
    1.61 +    * of the discriminator in order to insert/get the discriminator value.
    1.62 +    * @return a <code>DynAny</code> object reference representing the discriminator value
    1.63 +    */
    1.64 +    public org.omg.CORBA.DynAny discriminator();
    1.65 +
    1.66 +    /**
    1.67 +    * Returns the TCKind object associated with the discriminator of this union.
    1.68 +    * @return the <code>TCKind</code> object associated with the discriminator of this union
    1.69 +    */
    1.70 +    public org.omg.CORBA.TCKind discriminator_kind();
    1.71 +
    1.72 +    /**
    1.73 +    * Returns a DynAny object reference that is used in order to insert/get
    1.74 +    * a member of this union.
    1.75 +    * @return the <code>DynAny</code> object representing a member of this union
    1.76 +    */
    1.77 +    public org.omg.CORBA.DynAny member();
    1.78 +
    1.79 +    /**
    1.80 +    * Allows for the inspection of the name of this union member
    1.81 +    * without checking the value of the discriminator.
    1.82 +    * @return the name of this union member
    1.83 +    */
    1.84 +    public String member_name();
    1.85 +
    1.86 +    /**
    1.87 +    * Allows for the assignment of the name of this union member.
    1.88 +    * @param arg the new name of this union member
    1.89 +    */
    1.90 +    public void member_name(String arg);
    1.91 +
    1.92 +    /**
    1.93 +    * Returns the TCKind associated with the member of this union.
    1.94 +    * @return the <code>TCKind</code> object associated with the member of this union
    1.95 +    */
    1.96 +    public org.omg.CORBA.TCKind member_kind();
    1.97 +}

mercurial