DynStruct.java revision 608:7e06bf1dcb09
132517Sgibbs/*
2143598Sscottl * Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
332517Sgibbs * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
432517Sgibbs *
532517Sgibbs * This code is free software; you can redistribute it and/or modify it
632517Sgibbs * under the terms of the GNU General Public License version 2 only, as
732517Sgibbs * published by the Free Software Foundation.  Oracle designates this
832517Sgibbs * particular file as subject to the "Classpath" exception as provided
932517Sgibbs * by Oracle in the LICENSE file that accompanied this code.
1032517Sgibbs *
1132517Sgibbs * This code is distributed in the hope that it will be useful, but WITHOUT
1232517Sgibbs * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1332517Sgibbs * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1432517Sgibbs * version 2 for more details (a copy is included in the LICENSE file that
1532517Sgibbs * accompanied this code).
1632517Sgibbs *
1732517Sgibbs * You should have received a copy of the GNU General Public License version
1832517Sgibbs * 2 along with this work; if not, write to the Free Software Foundation,
1932517Sgibbs * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2032517Sgibbs *
2132517Sgibbs * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2232517Sgibbs * or visit www.oracle.com if you need additional information or have any
2332517Sgibbs * questions.
2432517Sgibbs */
2532517Sgibbs
2632517Sgibbs
2750477Speterpackage org.omg.CORBA;
2832517Sgibbs
2984593Snyan/**
3084593Snyan * The representation of a <code>DynAny</code> object that is associated
3132517Sgibbs *  with an IDL struct.
32143598Sscottl * @deprecated Use the new <a href="../DynamicAny/DynStruct.html">DynStruct</a> instead
3332517Sgibbs */
3484593Snyan@Deprecated
35public interface DynStruct extends org.omg.CORBA.Object, org.omg.CORBA.DynAny
36{
37    /**
38     * During a traversal, returns the name of the current member.
39     *
40     * @return the string name of the current member
41     */
42    public String current_member_name();
43
44    /**
45     * Returns the <code>TCKind</code> object that describes the kind of
46         * the current member.
47     *
48     * @return the <code>TCKind</code> object that describes the current member
49     */
50    public org.omg.CORBA.TCKind current_member_kind();
51
52    /**
53     * Returns an array containing all the members of the stored struct.
54     *
55     * @return the array of name-value pairs
56         * @see #set_members
57     */
58    public org.omg.CORBA.NameValuePair[] get_members();
59
60    /**
61     * Set the members of the struct.
62     *
63     * @param value the array of name-value pairs.
64         * @throws org.omg.CORBA.DynAnyPackage.InvalidSeq if the given argument
65         *         is invalid
66         * @see #get_members
67     */
68    public void set_members(org.omg.CORBA.NameValuePair[] value)
69        throws org.omg.CORBA.DynAnyPackage.InvalidSeq;
70}
71