corba/src/share/classes/com/sun/corba/se/impl/dynamicany/DynAnyConstructedImpl.java
author ohair
Tue, 25 May 2010 15:52:11 -0700
changeset 5555 b2b5ed3f0d0d
parent 4 02bb8761fcce
permissions -rw-r--r--
6943119: Rebrand source copyright notices Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     1
/*
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     2
 * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
02bb8761fcce Initial load
duke
parents:
diff changeset
     4
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
02bb8761fcce Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
4
02bb8761fcce Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    10
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
02bb8761fcce Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
02bb8761fcce Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
02bb8761fcce Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
02bb8761fcce Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
02bb8761fcce Initial load
duke
parents:
diff changeset
    16
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
02bb8761fcce Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
02bb8761fcce Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
02bb8761fcce Initial load
duke
parents:
diff changeset
    20
 *
5555
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
b2b5ed3f0d0d 6943119: Rebrand source copyright notices
ohair
parents: 4
diff changeset
    23
 * questions.
4
02bb8761fcce Initial load
duke
parents:
diff changeset
    24
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    25
02bb8761fcce Initial load
duke
parents:
diff changeset
    26
package com.sun.corba.se.impl.dynamicany;
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
import org.omg.CORBA.Any;
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
import org.omg.CORBA.TypeCode;
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
import org.omg.CORBA.portable.OutputStream;
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
import org.omg.DynamicAny.*;
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
import org.omg.DynamicAny.DynAnyPackage.TypeMismatch;
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
import org.omg.DynamicAny.DynAnyPackage.InvalidValue;
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
import org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode;
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
import com.sun.corba.se.impl.corba.TypeCodeImpl;        // needed for recursive type codes
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
import com.sun.corba.se.spi.orb.ORB ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
import com.sun.corba.se.spi.logging.CORBALogDomains ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
abstract class DynAnyConstructedImpl extends DynAnyImpl
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
{
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
    protected static final byte REPRESENTATION_NONE = 0;
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
    protected static final byte REPRESENTATION_TYPECODE = 1;
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
    protected static final byte REPRESENTATION_ANY = 2;
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
    protected static final byte REPRESENTATION_COMPONENTS = 4;
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
    protected static final byte RECURSIVE_UNDEF = -1;
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
    protected static final byte RECURSIVE_NO = 0;
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
    protected static final byte RECURSIVE_YES = 1;
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
    protected static final DynAny[] emptyComponents = new DynAny[0];
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
    // Instance variables
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
    // Constructed DynAnys maintain an ordered collection of component DynAnys.
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
    DynAny[] components = emptyComponents;
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
    byte representations = REPRESENTATION_NONE;
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
    byte isRecursive = RECURSIVE_UNDEF;
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
    // Constructors
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
    private DynAnyConstructedImpl() {
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
        this(null, (Any)null, false);
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
    protected DynAnyConstructedImpl(ORB orb, Any any, boolean copyValue) {
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
        super(orb, any, copyValue);
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
        //System.out.println(this + " constructed with any " + any);
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
        if (this.any != null) {
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
            representations = REPRESENTATION_ANY;
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
        // set the current position to 0 if any has components, otherwise to -1.
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
        index = 0;
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
    protected DynAnyConstructedImpl(ORB orb, TypeCode typeCode) {
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
        // assertion: typeCode has been checked to be valid for this particular subclass.
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
        // note: We don't copy TypeCodes since they are considered immutable.
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
        super(orb, typeCode);
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
        if (typeCode != null) {
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
            representations = REPRESENTATION_TYPECODE;
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
        // set the current position to 0 if any has components, otherwise to -1.
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
        index = NO_INDEX;
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
        // _REVISIT_ Would need REPRESENTATION_TYPECODE for lazy initialization
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
        //if ( ! isRecursive()) {
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
        //    initializeComponentsFromTypeCode();
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
        //}
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
    protected boolean isRecursive() {
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
        if (isRecursive == RECURSIVE_UNDEF) {
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
            TypeCode typeCode = any.type();
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
            if (typeCode instanceof TypeCodeImpl) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
                if (((TypeCodeImpl)typeCode).is_recursive())
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
                    isRecursive = RECURSIVE_YES;
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
                else
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
                    isRecursive = RECURSIVE_NO;
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
            } else {
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
                // No way to find out unless the TypeCode spec changes.
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
                isRecursive = RECURSIVE_NO;
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
        return (isRecursive == RECURSIVE_YES);
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
    // DynAny traversal methods
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   115
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
    public org.omg.DynamicAny.DynAny current_component()
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
        if (index == NO_INDEX) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
            return null;
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
        return (checkInitComponents() ? components[index] : null);
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
    public int component_count() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
        return (checkInitComponents() ? components.length : 0);
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
    public boolean next() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
        if (checkInitComponents() == false) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
            return false;
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
        index++;
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
        if (index >= 0 && index < components.length) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
            return true;
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
        } else {
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
            index = NO_INDEX;
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
            return false;
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
    public boolean seek(int newIndex) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
        if (newIndex < 0) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
            this.index = NO_INDEX;
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
            return false;
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
        if (checkInitComponents() == false) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
            return false;
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
        if (newIndex < components.length) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
            index = newIndex;
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
            return true;
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
        return false;
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
    public void rewind() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
        this.seek(0);
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
    // Utility methods
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
02bb8761fcce Initial load
duke
parents:
diff changeset
   180
    protected void clearData() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
        super.clearData();
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
        // _REVISIT_ What about status?
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
        components = emptyComponents;
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
        index = NO_INDEX;
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
        representations = REPRESENTATION_NONE;
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
    protected void writeAny(OutputStream out) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
        // If all we got is TypeCode representation (no value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
        // then we don't want to force creating a default value
02bb8761fcce Initial load
duke
parents:
diff changeset
   191
        //System.out.println(this + " checkInitAny before writeAny");
02bb8761fcce Initial load
duke
parents:
diff changeset
   192
        checkInitAny();
02bb8761fcce Initial load
duke
parents:
diff changeset
   193
        super.writeAny(out);
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   195
02bb8761fcce Initial load
duke
parents:
diff changeset
   196
    // Makes sure that the components representation is initialized
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
    protected boolean checkInitComponents() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
        if ((representations & REPRESENTATION_COMPONENTS) == 0) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   199
            if ((representations & REPRESENTATION_ANY) != 0) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
                if (initializeComponentsFromAny()) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   201
                    representations |= REPRESENTATION_COMPONENTS;
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
                } else {
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
                    return false;
02bb8761fcce Initial load
duke
parents:
diff changeset
   204
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
            } else if ((representations & REPRESENTATION_TYPECODE) != 0) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
                if (initializeComponentsFromTypeCode()) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
                    representations |= REPRESENTATION_COMPONENTS;
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
                } else {
02bb8761fcce Initial load
duke
parents:
diff changeset
   209
                    return false;
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   212
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
        return true;
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
    // Makes sure that the Any representation is initialized
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
    protected void checkInitAny() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   218
        if ((representations & REPRESENTATION_ANY) == 0) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   219
            //System.out.println(this + " checkInitAny: reps does not have REPRESENTATION_ANY");
02bb8761fcce Initial load
duke
parents:
diff changeset
   220
            if ((representations & REPRESENTATION_COMPONENTS) != 0) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   221
                //System.out.println(this + " checkInitAny: reps has REPRESENTATION_COMPONENTS");
02bb8761fcce Initial load
duke
parents:
diff changeset
   222
                if (initializeAnyFromComponents()) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   223
                    representations |= REPRESENTATION_ANY;
02bb8761fcce Initial load
duke
parents:
diff changeset
   224
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   225
            } else if ((representations & REPRESENTATION_TYPECODE) != 0) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   226
                //System.out.println(this + " checkInitAny: reps has REPRESENTATION_TYPECODE");
02bb8761fcce Initial load
duke
parents:
diff changeset
   227
                if (representations == REPRESENTATION_TYPECODE && isRecursive())
02bb8761fcce Initial load
duke
parents:
diff changeset
   228
                    return;
02bb8761fcce Initial load
duke
parents:
diff changeset
   229
                if (initializeComponentsFromTypeCode()) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   230
                    representations |= REPRESENTATION_COMPONENTS;
02bb8761fcce Initial load
duke
parents:
diff changeset
   231
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   232
                if (initializeAnyFromComponents()) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   233
                    representations |= REPRESENTATION_ANY;
02bb8761fcce Initial load
duke
parents:
diff changeset
   234
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   235
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   236
        } else {
02bb8761fcce Initial load
duke
parents:
diff changeset
   237
            //System.out.println(this + " checkInitAny: reps != REPRESENTATION_ANY");
02bb8761fcce Initial load
duke
parents:
diff changeset
   238
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   239
        return;
02bb8761fcce Initial load
duke
parents:
diff changeset
   240
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   241
02bb8761fcce Initial load
duke
parents:
diff changeset
   242
    protected abstract boolean initializeComponentsFromAny();
02bb8761fcce Initial load
duke
parents:
diff changeset
   243
    protected abstract boolean initializeComponentsFromTypeCode();
02bb8761fcce Initial load
duke
parents:
diff changeset
   244
02bb8761fcce Initial load
duke
parents:
diff changeset
   245
    // Collapses the whole DynAny hierarchys values into one single streamed Any
02bb8761fcce Initial load
duke
parents:
diff changeset
   246
    protected boolean initializeAnyFromComponents() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   247
        //System.out.println(this + " initializeAnyFromComponents");
02bb8761fcce Initial load
duke
parents:
diff changeset
   248
        OutputStream out = any.create_output_stream();
02bb8761fcce Initial load
duke
parents:
diff changeset
   249
        for (int i=0; i<components.length; i++) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   250
            if (components[i] instanceof DynAnyImpl) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   251
                ((DynAnyImpl)components[i]).writeAny(out);
02bb8761fcce Initial load
duke
parents:
diff changeset
   252
            } else {
02bb8761fcce Initial load
duke
parents:
diff changeset
   253
                // Not our implementation. Nothing we can do to prevent copying.
02bb8761fcce Initial load
duke
parents:
diff changeset
   254
                components[i].to_any().write_value(out);
02bb8761fcce Initial load
duke
parents:
diff changeset
   255
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   256
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   257
        any.read_value(out.create_input_stream(), any.type());
02bb8761fcce Initial load
duke
parents:
diff changeset
   258
        return true;
02bb8761fcce Initial load
duke
parents:
diff changeset
   259
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   260
02bb8761fcce Initial load
duke
parents:
diff changeset
   261
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   262
    // DynAny interface methods
02bb8761fcce Initial load
duke
parents:
diff changeset
   263
    //
02bb8761fcce Initial load
duke
parents:
diff changeset
   264
02bb8761fcce Initial load
duke
parents:
diff changeset
   265
    public void assign (org.omg.DynamicAny.DynAny dyn_any)
02bb8761fcce Initial load
duke
parents:
diff changeset
   266
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch
02bb8761fcce Initial load
duke
parents:
diff changeset
   267
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   268
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   269
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   270
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   271
        clearData();
02bb8761fcce Initial load
duke
parents:
diff changeset
   272
        super.assign(dyn_any);
02bb8761fcce Initial load
duke
parents:
diff changeset
   273
        representations = REPRESENTATION_ANY;
02bb8761fcce Initial load
duke
parents:
diff changeset
   274
        index = 0;
02bb8761fcce Initial load
duke
parents:
diff changeset
   275
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   276
02bb8761fcce Initial load
duke
parents:
diff changeset
   277
    public void from_any (org.omg.CORBA.Any value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   278
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   279
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   280
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   281
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   282
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   283
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   284
        clearData();
02bb8761fcce Initial load
duke
parents:
diff changeset
   285
        super.from_any(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   286
        representations = REPRESENTATION_ANY;
02bb8761fcce Initial load
duke
parents:
diff changeset
   287
        index = 0;
02bb8761fcce Initial load
duke
parents:
diff changeset
   288
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   289
02bb8761fcce Initial load
duke
parents:
diff changeset
   290
    // Spec: Returns a copy of the internal Any
02bb8761fcce Initial load
duke
parents:
diff changeset
   291
    public org.omg.CORBA.Any to_any() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   292
        //System.out.println(this + " to_any ");
02bb8761fcce Initial load
duke
parents:
diff changeset
   293
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   294
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   295
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   296
        checkInitAny();
02bb8761fcce Initial load
duke
parents:
diff changeset
   297
        // Anys value may still be uninitialized if DynAny was initialized by TypeCode only
02bb8761fcce Initial load
duke
parents:
diff changeset
   298
        return DynAnyUtil.copy(any, orb);
02bb8761fcce Initial load
duke
parents:
diff changeset
   299
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   300
02bb8761fcce Initial load
duke
parents:
diff changeset
   301
    public boolean equal (org.omg.DynamicAny.DynAny dyn_any) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   302
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   303
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   304
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   305
        if (dyn_any == this) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   306
            return true;
02bb8761fcce Initial load
duke
parents:
diff changeset
   307
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   308
        if ( ! any.type().equal(dyn_any.type())) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   309
            return false;
02bb8761fcce Initial load
duke
parents:
diff changeset
   310
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   311
        // This changes the current position of dyn_any.
02bb8761fcce Initial load
duke
parents:
diff changeset
   312
        // Make sure that our position isn't changed.
02bb8761fcce Initial load
duke
parents:
diff changeset
   313
        if (checkInitComponents() == false) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   314
            return false;
02bb8761fcce Initial load
duke
parents:
diff changeset
   315
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   316
        DynAny currentComponent = null;
02bb8761fcce Initial load
duke
parents:
diff changeset
   317
        try {
02bb8761fcce Initial load
duke
parents:
diff changeset
   318
            // Remember the current position to restore it later
02bb8761fcce Initial load
duke
parents:
diff changeset
   319
            currentComponent = dyn_any.current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   320
            for (int i=0; i<components.length; i++) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   321
                if (dyn_any.seek(i) == false)
02bb8761fcce Initial load
duke
parents:
diff changeset
   322
                    return false;
02bb8761fcce Initial load
duke
parents:
diff changeset
   323
                //System.out.println(this + " comparing component " + i + "=" + components[i] +
02bb8761fcce Initial load
duke
parents:
diff changeset
   324
                //                   " of type " + components[i].type().kind().value());
02bb8761fcce Initial load
duke
parents:
diff changeset
   325
                if ( ! components[i].equal(dyn_any.current_component())) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   326
                    //System.out.println("Not equal component " + i);
02bb8761fcce Initial load
duke
parents:
diff changeset
   327
                    return false;
02bb8761fcce Initial load
duke
parents:
diff changeset
   328
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   329
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   330
        } catch (TypeMismatch tm) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   331
            // impossible, we checked the type codes already
02bb8761fcce Initial load
duke
parents:
diff changeset
   332
        } finally {
02bb8761fcce Initial load
duke
parents:
diff changeset
   333
            // Restore the current position of the other DynAny
02bb8761fcce Initial load
duke
parents:
diff changeset
   334
            DynAnyUtil.set_current_component(dyn_any, currentComponent);
02bb8761fcce Initial load
duke
parents:
diff changeset
   335
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   336
        return true;
02bb8761fcce Initial load
duke
parents:
diff changeset
   337
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   338
02bb8761fcce Initial load
duke
parents:
diff changeset
   339
    public void destroy() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   340
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   341
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   342
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   343
        if (status == STATUS_DESTROYABLE) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   344
            status = STATUS_DESTROYED;
02bb8761fcce Initial load
duke
parents:
diff changeset
   345
            for (int i=0; i<components.length; i++) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   346
                if (components[i] instanceof DynAnyImpl) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   347
                    ((DynAnyImpl)components[i]).setStatus(STATUS_DESTROYABLE);
02bb8761fcce Initial load
duke
parents:
diff changeset
   348
                }
02bb8761fcce Initial load
duke
parents:
diff changeset
   349
                components[i].destroy();
02bb8761fcce Initial load
duke
parents:
diff changeset
   350
            }
02bb8761fcce Initial load
duke
parents:
diff changeset
   351
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   352
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   353
02bb8761fcce Initial load
duke
parents:
diff changeset
   354
    public org.omg.DynamicAny.DynAny copy() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   355
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   356
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   357
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   358
        checkInitAny();
02bb8761fcce Initial load
duke
parents:
diff changeset
   359
        try {
02bb8761fcce Initial load
duke
parents:
diff changeset
   360
            return DynAnyUtil.createMostDerivedDynAny(any, orb, true);
02bb8761fcce Initial load
duke
parents:
diff changeset
   361
        } catch (InconsistentTypeCode ictc) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   362
            return null; // impossible
02bb8761fcce Initial load
duke
parents:
diff changeset
   363
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   364
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   365
02bb8761fcce Initial load
duke
parents:
diff changeset
   366
    // getter / setter methods
02bb8761fcce Initial load
duke
parents:
diff changeset
   367
02bb8761fcce Initial load
duke
parents:
diff changeset
   368
    public void insert_boolean(boolean value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   369
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   370
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   371
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   372
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   373
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   374
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   375
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   376
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   377
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   378
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   379
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   380
        currentComponent.insert_boolean(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   381
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   382
02bb8761fcce Initial load
duke
parents:
diff changeset
   383
    public void insert_octet(byte value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   384
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   385
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   386
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   387
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   388
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   389
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   390
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   391
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   392
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   393
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   394
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   395
        currentComponent.insert_octet(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   396
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   397
02bb8761fcce Initial load
duke
parents:
diff changeset
   398
    public void insert_char(char value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   399
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   400
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   401
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   402
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   403
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   404
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   405
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   406
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   407
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   408
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   409
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   410
        currentComponent.insert_char(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   411
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   412
02bb8761fcce Initial load
duke
parents:
diff changeset
   413
    public void insert_short(short value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   414
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   415
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   416
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   417
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   418
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   419
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   420
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   421
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   422
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   423
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   424
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   425
        currentComponent.insert_short(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   426
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   427
02bb8761fcce Initial load
duke
parents:
diff changeset
   428
    public void insert_ushort(short value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   429
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   430
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   431
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   432
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   433
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   434
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   435
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   436
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   437
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   438
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   439
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   440
        currentComponent.insert_ushort(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   441
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   442
02bb8761fcce Initial load
duke
parents:
diff changeset
   443
    public void insert_long(int value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   444
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   445
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   446
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   447
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   448
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   449
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   450
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   451
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   452
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   453
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   454
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   455
        currentComponent.insert_long(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   456
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   457
02bb8761fcce Initial load
duke
parents:
diff changeset
   458
    public void insert_ulong(int value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   459
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   460
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   461
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   462
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   463
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   464
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   465
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   466
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   467
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   468
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   469
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   470
        currentComponent.insert_ulong(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   471
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   472
02bb8761fcce Initial load
duke
parents:
diff changeset
   473
    public void insert_float(float value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   474
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   475
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   476
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   477
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   478
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   479
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   480
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   481
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   482
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   483
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   484
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   485
        currentComponent.insert_float(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   486
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   487
02bb8761fcce Initial load
duke
parents:
diff changeset
   488
    public void insert_double(double value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   489
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   490
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   491
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   492
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   493
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   494
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   495
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   496
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   497
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   498
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   499
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   500
        currentComponent.insert_double(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   501
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   502
02bb8761fcce Initial load
duke
parents:
diff changeset
   503
    public void insert_string(String value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   504
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   505
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   506
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   507
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   508
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   509
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   510
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   511
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   512
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   513
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   514
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   515
        currentComponent.insert_string(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   516
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   517
02bb8761fcce Initial load
duke
parents:
diff changeset
   518
    public void insert_reference(org.omg.CORBA.Object value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   519
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   520
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   521
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   522
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   523
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   524
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   525
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   526
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   527
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   528
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   529
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   530
        currentComponent.insert_reference(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   531
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   532
02bb8761fcce Initial load
duke
parents:
diff changeset
   533
    public void insert_typecode(org.omg.CORBA.TypeCode value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   534
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   535
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   536
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   537
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   538
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   539
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   540
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   541
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   542
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   543
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   544
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   545
        currentComponent.insert_typecode(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   546
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   547
02bb8761fcce Initial load
duke
parents:
diff changeset
   548
    public void insert_longlong(long value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   549
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   550
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   551
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   552
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   553
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   554
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   555
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   556
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   557
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   558
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   559
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   560
        currentComponent.insert_longlong(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   561
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   562
02bb8761fcce Initial load
duke
parents:
diff changeset
   563
    public void insert_ulonglong(long value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   564
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   565
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   566
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   567
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   568
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   569
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   570
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   571
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   572
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   573
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   574
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   575
        currentComponent.insert_ulonglong(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   576
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   577
02bb8761fcce Initial load
duke
parents:
diff changeset
   578
    public void insert_wchar(char value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   579
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   580
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   581
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   582
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   583
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   584
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   585
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   586
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   587
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   588
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   589
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   590
        currentComponent.insert_wchar(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   591
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   592
02bb8761fcce Initial load
duke
parents:
diff changeset
   593
    public void insert_wstring(String value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   594
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   595
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   596
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   597
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   598
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   599
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   600
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   601
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   602
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   603
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   604
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   605
        currentComponent.insert_wstring(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   606
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   607
02bb8761fcce Initial load
duke
parents:
diff changeset
   608
    public void insert_any(org.omg.CORBA.Any value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   609
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   610
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   611
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   612
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   613
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   614
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   615
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   616
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   617
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   618
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   619
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   620
        currentComponent.insert_any(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   621
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   622
02bb8761fcce Initial load
duke
parents:
diff changeset
   623
    public void insert_dyn_any (org.omg.DynamicAny.DynAny value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   624
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   625
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   626
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   627
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   628
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   629
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   630
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   631
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   632
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   633
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   634
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   635
        currentComponent.insert_dyn_any(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   636
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   637
02bb8761fcce Initial load
duke
parents:
diff changeset
   638
    public void insert_val(java.io.Serializable value)
02bb8761fcce Initial load
duke
parents:
diff changeset
   639
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   640
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   641
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   642
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   643
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   644
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   645
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   646
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   647
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   648
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   649
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   650
        currentComponent.insert_val(value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   651
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   652
02bb8761fcce Initial load
duke
parents:
diff changeset
   653
    public java.io.Serializable get_val()
02bb8761fcce Initial load
duke
parents:
diff changeset
   654
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   655
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   656
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   657
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   658
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   659
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   660
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   661
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   662
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   663
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   664
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   665
        return currentComponent.get_val();
02bb8761fcce Initial load
duke
parents:
diff changeset
   666
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   667
02bb8761fcce Initial load
duke
parents:
diff changeset
   668
    public boolean get_boolean()
02bb8761fcce Initial load
duke
parents:
diff changeset
   669
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   670
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   671
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   672
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   673
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   674
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   675
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   676
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   677
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   678
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   679
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   680
        return currentComponent.get_boolean();
02bb8761fcce Initial load
duke
parents:
diff changeset
   681
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   682
02bb8761fcce Initial load
duke
parents:
diff changeset
   683
    public byte get_octet()
02bb8761fcce Initial load
duke
parents:
diff changeset
   684
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   685
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   686
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   687
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   688
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   689
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   690
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   691
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   692
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   693
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   694
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   695
        return currentComponent.get_octet();
02bb8761fcce Initial load
duke
parents:
diff changeset
   696
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   697
02bb8761fcce Initial load
duke
parents:
diff changeset
   698
    public char get_char()
02bb8761fcce Initial load
duke
parents:
diff changeset
   699
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   700
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   701
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   702
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   703
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   704
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   705
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   706
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   707
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   708
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   709
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   710
        return currentComponent.get_char();
02bb8761fcce Initial load
duke
parents:
diff changeset
   711
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   712
02bb8761fcce Initial load
duke
parents:
diff changeset
   713
    public short get_short()
02bb8761fcce Initial load
duke
parents:
diff changeset
   714
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   715
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   716
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   717
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   718
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   719
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   720
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   721
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   722
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   723
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   724
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   725
        return currentComponent.get_short();
02bb8761fcce Initial load
duke
parents:
diff changeset
   726
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   727
02bb8761fcce Initial load
duke
parents:
diff changeset
   728
    public short get_ushort()
02bb8761fcce Initial load
duke
parents:
diff changeset
   729
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   730
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   731
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   732
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   733
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   734
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   735
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   736
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   737
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   738
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   739
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   740
        return currentComponent.get_ushort();
02bb8761fcce Initial load
duke
parents:
diff changeset
   741
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   742
02bb8761fcce Initial load
duke
parents:
diff changeset
   743
    public int get_long()
02bb8761fcce Initial load
duke
parents:
diff changeset
   744
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   745
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   746
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   747
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   748
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   749
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   750
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   751
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   752
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   753
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   754
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   755
        return currentComponent.get_long();
02bb8761fcce Initial load
duke
parents:
diff changeset
   756
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   757
02bb8761fcce Initial load
duke
parents:
diff changeset
   758
    public int get_ulong()
02bb8761fcce Initial load
duke
parents:
diff changeset
   759
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   760
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   761
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   762
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   763
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   764
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   765
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   766
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   767
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   768
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   769
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   770
        return currentComponent.get_ulong();
02bb8761fcce Initial load
duke
parents:
diff changeset
   771
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   772
02bb8761fcce Initial load
duke
parents:
diff changeset
   773
    public float get_float()
02bb8761fcce Initial load
duke
parents:
diff changeset
   774
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   775
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   776
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   777
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   778
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   779
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   780
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   781
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   782
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   783
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   784
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   785
        return currentComponent.get_float();
02bb8761fcce Initial load
duke
parents:
diff changeset
   786
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   787
02bb8761fcce Initial load
duke
parents:
diff changeset
   788
    public double get_double()
02bb8761fcce Initial load
duke
parents:
diff changeset
   789
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   790
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   791
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   792
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   793
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   794
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   795
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   796
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   797
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   798
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   799
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   800
        return currentComponent.get_double();
02bb8761fcce Initial load
duke
parents:
diff changeset
   801
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   802
02bb8761fcce Initial load
duke
parents:
diff changeset
   803
    public String get_string()
02bb8761fcce Initial load
duke
parents:
diff changeset
   804
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   805
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   806
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   807
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   808
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   809
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   810
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   811
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   812
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   813
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   814
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   815
        return currentComponent.get_string();
02bb8761fcce Initial load
duke
parents:
diff changeset
   816
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   817
02bb8761fcce Initial load
duke
parents:
diff changeset
   818
    public org.omg.CORBA.Object get_reference()
02bb8761fcce Initial load
duke
parents:
diff changeset
   819
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   820
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   821
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   822
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   823
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   824
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   825
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   826
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   827
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   828
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   829
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   830
        return currentComponent.get_reference();
02bb8761fcce Initial load
duke
parents:
diff changeset
   831
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   832
02bb8761fcce Initial load
duke
parents:
diff changeset
   833
    public org.omg.CORBA.TypeCode get_typecode()
02bb8761fcce Initial load
duke
parents:
diff changeset
   834
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   835
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   836
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   837
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   838
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   839
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   840
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   841
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   842
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   843
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   844
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   845
        return currentComponent.get_typecode();
02bb8761fcce Initial load
duke
parents:
diff changeset
   846
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   847
02bb8761fcce Initial load
duke
parents:
diff changeset
   848
    public long get_longlong()
02bb8761fcce Initial load
duke
parents:
diff changeset
   849
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   850
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   851
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   852
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   853
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   854
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   855
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   856
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   857
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   858
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   859
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   860
        return currentComponent.get_longlong();
02bb8761fcce Initial load
duke
parents:
diff changeset
   861
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   862
02bb8761fcce Initial load
duke
parents:
diff changeset
   863
    public long get_ulonglong()
02bb8761fcce Initial load
duke
parents:
diff changeset
   864
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   865
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   866
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   867
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   868
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   869
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   870
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   871
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   872
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   873
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   874
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   875
        return currentComponent.get_ulonglong();
02bb8761fcce Initial load
duke
parents:
diff changeset
   876
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   877
02bb8761fcce Initial load
duke
parents:
diff changeset
   878
    public char get_wchar()
02bb8761fcce Initial load
duke
parents:
diff changeset
   879
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   880
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   881
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   882
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   883
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   884
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   885
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   886
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   887
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   888
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   889
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   890
        return currentComponent.get_wchar();
02bb8761fcce Initial load
duke
parents:
diff changeset
   891
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   892
02bb8761fcce Initial load
duke
parents:
diff changeset
   893
    public String get_wstring()
02bb8761fcce Initial load
duke
parents:
diff changeset
   894
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   895
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   896
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   897
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   898
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   899
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   900
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   901
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   902
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   903
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   904
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   905
        return currentComponent.get_wstring();
02bb8761fcce Initial load
duke
parents:
diff changeset
   906
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   907
02bb8761fcce Initial load
duke
parents:
diff changeset
   908
    public org.omg.CORBA.Any get_any()
02bb8761fcce Initial load
duke
parents:
diff changeset
   909
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   910
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   911
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   912
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   913
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   914
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   915
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   916
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   917
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   918
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   919
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   920
        return currentComponent.get_any();
02bb8761fcce Initial load
duke
parents:
diff changeset
   921
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   922
02bb8761fcce Initial load
duke
parents:
diff changeset
   923
    public org.omg.DynamicAny.DynAny get_dyn_any()
02bb8761fcce Initial load
duke
parents:
diff changeset
   924
        throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
02bb8761fcce Initial load
duke
parents:
diff changeset
   925
               org.omg.DynamicAny.DynAnyPackage.InvalidValue
02bb8761fcce Initial load
duke
parents:
diff changeset
   926
    {
02bb8761fcce Initial load
duke
parents:
diff changeset
   927
        if (status == STATUS_DESTROYED) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   928
            throw wrapper.dynAnyDestroyed() ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   929
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   930
        if (index == NO_INDEX)
02bb8761fcce Initial load
duke
parents:
diff changeset
   931
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();
02bb8761fcce Initial load
duke
parents:
diff changeset
   932
        DynAny currentComponent = current_component();
02bb8761fcce Initial load
duke
parents:
diff changeset
   933
        if (DynAnyUtil.isConstructedDynAny(currentComponent))
02bb8761fcce Initial load
duke
parents:
diff changeset
   934
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
02bb8761fcce Initial load
duke
parents:
diff changeset
   935
        return currentComponent.get_dyn_any();
02bb8761fcce Initial load
duke
parents:
diff changeset
   936
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   937
}