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

Wed, 27 Apr 2016 01:21:28 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:21:28 +0800
changeset 0
7ef37b2cdcad
child 748
6845b95cba6b
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/corba/
changeset: 765:f46df0af2ca8
tag: jdk8u25-b17

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 1998, 2004, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation. Oracle designates this
aoqi@0 8 * particular file as subject to the "Classpath" exception as provided
aoqi@0 9 * by Oracle in the LICENSE file that accompanied this code.
aoqi@0 10 *
aoqi@0 11 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 14 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 15 * accompanied this code).
aoqi@0 16 *
aoqi@0 17 * You should have received a copy of the GNU General Public License version
aoqi@0 18 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 20 *
aoqi@0 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 22 * or visit www.oracle.com if you need additional information or have any
aoqi@0 23 * questions.
aoqi@0 24 */
aoqi@0 25
aoqi@0 26
aoqi@0 27 package org.omg.CORBA;
aoqi@0 28
aoqi@0 29
aoqi@0 30 /** Enables <tt>org.omg.CORBA.Any</tt> values to be dynamically
aoqi@0 31 * interpreted (traversed) and
aoqi@0 32 * constructed. A <tt>DynAny</tt> object is associated with a data value
aoqi@0 33 * which may correspond to a copy of the value inserted into an <tt>Any</tt>.
aoqi@0 34 * The <tt>DynAny</tt> APIs enable traversal of the data value associated with an
aoqi@0 35 * Any at runtime and extraction of the primitive constituents of the
aoqi@0 36 * data value.
aoqi@0 37 * @deprecated Use the new <a href="../DynamicAny/DynAny.html">DynAny</a> instead
aoqi@0 38 */
aoqi@0 39 @Deprecated
aoqi@0 40 public interface DynAny extends org.omg.CORBA.Object
aoqi@0 41 {
aoqi@0 42 /**
aoqi@0 43 * Returns the <code>TypeCode</code> of the object inserted into
aoqi@0 44 * this <code>DynAny</code>.
aoqi@0 45 *
aoqi@0 46 * @return the <code>TypeCode</code> object.
aoqi@0 47 */
aoqi@0 48 public org.omg.CORBA.TypeCode type() ;
aoqi@0 49
aoqi@0 50 /**
aoqi@0 51 * Copy the contents from one Dynamic Any into another.
aoqi@0 52 *
aoqi@0 53 * @param dyn_any the <code>DynAny</code> object whose contents
aoqi@0 54 * are assigned to this <code>DynAny</code>.
aoqi@0 55 * @throws Invalid if the source <code>DynAny</code> is
aoqi@0 56 * invalid
aoqi@0 57 */
aoqi@0 58 public void assign(org.omg.CORBA.DynAny dyn_any)
aoqi@0 59 throws org.omg.CORBA.DynAnyPackage.Invalid;
aoqi@0 60
aoqi@0 61 /**
aoqi@0 62 * Make a <code>DynAny</code> object from an <code>Any</code>
aoqi@0 63 * object.
aoqi@0 64 *
aoqi@0 65 * @param value the <code>Any</code> object.
aoqi@0 66 * @throws Invalid if the source <code>Any</code> object is
aoqi@0 67 * empty or bad
aoqi@0 68 */
aoqi@0 69 public void from_any(org.omg.CORBA.Any value)
aoqi@0 70 throws org.omg.CORBA.DynAnyPackage.Invalid;
aoqi@0 71
aoqi@0 72 /**
aoqi@0 73 * Convert a <code>DynAny</code> object to an <code>Any</code>
aoqi@0 74 * object.
aoqi@0 75 *
aoqi@0 76 * @return the <code>Any</code> object.
aoqi@0 77 * @throws Invalid if this <code>DynAny</code> is empty or
aoqi@0 78 * bad.
aoqi@0 79 * created or does not contain a meaningful value
aoqi@0 80 */
aoqi@0 81 public org.omg.CORBA.Any to_any()
aoqi@0 82 throws org.omg.CORBA.DynAnyPackage.Invalid;
aoqi@0 83
aoqi@0 84 /**
aoqi@0 85 * Destroys this <code>DynAny</code> object and frees any resources
aoqi@0 86 * used to represent the data value associated with it. This method
aoqi@0 87 * also destroys all <code>DynAny</code> objects obtained from it.
aoqi@0 88 * <p>
aoqi@0 89 * Destruction of <code>DynAny</code> objects should be handled with
aoqi@0 90 * care, taking into account issues dealing with the representation of
aoqi@0 91 * data values associated with <code>DynAny</code> objects. A programmer
aoqi@0 92 * who wants to destroy a <code>DynAny</code> object but still be able
aoqi@0 93 * to manipulate some component of the data value associated with it,
aoqi@0 94 * should first create a <code>DynAny</code> object for the component
aoqi@0 95 * and then make a copy of the created <code>DynAny</code> object.
aoqi@0 96 */
aoqi@0 97 public void destroy() ;
aoqi@0 98
aoqi@0 99 /**
aoqi@0 100 * Clones this <code>DynAny</code> object.
aoqi@0 101 *
aoqi@0 102 * @return a copy of this <code>DynAny</code> object
aoqi@0 103 */
aoqi@0 104 public org.omg.CORBA.DynAny copy() ;
aoqi@0 105
aoqi@0 106 /**
aoqi@0 107 * Inserts the given <code>boolean</code> as the value for this
aoqi@0 108 * <code>DynAny</code> object.
aoqi@0 109 *
aoqi@0 110 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 111 * object, it initializes the next component of the constructed data
aoqi@0 112 * value associated with this <code>DynAny</code> object.
aoqi@0 113 *
aoqi@0 114 * @param value the <code>boolean</code> to insert into this
aoqi@0 115 * <code>DynAny</code> object
aoqi@0 116 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 117 * if the value inserted is not consistent with the type
aoqi@0 118 * of the accessed component in this <code>DynAny</code> object
aoqi@0 119 */
aoqi@0 120 public void insert_boolean(boolean value)
aoqi@0 121 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 122
aoqi@0 123 /**
aoqi@0 124 * Inserts the given <code>byte</code> as the value for this
aoqi@0 125 * <code>DynAny</code> object.
aoqi@0 126 *
aoqi@0 127 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 128 * object, it initializes the next component of the constructed data
aoqi@0 129 * value associated with this <code>DynAny</code> object.
aoqi@0 130 *
aoqi@0 131 * @param value the <code>byte</code> to insert into this
aoqi@0 132 * <code>DynAny</code> object
aoqi@0 133 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 134 * if the value inserted is not consistent with the type
aoqi@0 135 * of the accessed component in this <code>DynAny</code> object
aoqi@0 136 */
aoqi@0 137 public void insert_octet(byte value)
aoqi@0 138 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 139
aoqi@0 140 /**
aoqi@0 141 * Inserts the given <code>char</code> as the value for this
aoqi@0 142 * <code>DynAny</code> object.
aoqi@0 143 *
aoqi@0 144 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 145 * object, it initializes the next component of the constructed data
aoqi@0 146 * value associated with this <code>DynAny</code> object.
aoqi@0 147 *
aoqi@0 148 * @param value the <code>char</code> to insert into this
aoqi@0 149 * <code>DynAny</code> object
aoqi@0 150 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 151 * if the value inserted is not consistent with the type
aoqi@0 152 * of the accessed component in this <code>DynAny</code> object
aoqi@0 153 */
aoqi@0 154 public void insert_char(char value)
aoqi@0 155 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 156
aoqi@0 157 /**
aoqi@0 158 * Inserts the given <code>short</code> as the value for this
aoqi@0 159 * <code>DynAny</code> object.
aoqi@0 160 *
aoqi@0 161 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 162 * object, it initializes the next component of the constructed data
aoqi@0 163 * value associated with this <code>DynAny</code> object.
aoqi@0 164 *
aoqi@0 165 * @param value the <code>short</code> to insert into this
aoqi@0 166 * <code>DynAny</code> object
aoqi@0 167 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 168 * if the value inserted is not consistent with the type
aoqi@0 169 * of the accessed component in this <code>DynAny</code> object
aoqi@0 170 */
aoqi@0 171 public void insert_short(short value)
aoqi@0 172 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 173
aoqi@0 174 /**
aoqi@0 175 * Inserts the given <code>short</code> as the value for this
aoqi@0 176 * <code>DynAny</code> object.
aoqi@0 177 *
aoqi@0 178 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 179 * object, it initializes the next component of the constructed data
aoqi@0 180 * value associated with this <code>DynAny</code> object.
aoqi@0 181 *
aoqi@0 182 * @param value the <code>short</code> to insert into this
aoqi@0 183 * <code>DynAny</code> object
aoqi@0 184 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 185 * if the value inserted is not consistent with the type
aoqi@0 186 * of the accessed component in this <code>DynAny</code> object
aoqi@0 187 */
aoqi@0 188 public void insert_ushort(short value)
aoqi@0 189 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 190
aoqi@0 191 /**
aoqi@0 192 * Inserts the given <code>int</code> as the value for this
aoqi@0 193 * <code>DynAny</code> object.
aoqi@0 194 *
aoqi@0 195 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 196 * object, it initializes the next component of the constructed data
aoqi@0 197 * value associated with this <code>DynAny</code> object.
aoqi@0 198 *
aoqi@0 199 * @param value the <code>int</code> to insert into this
aoqi@0 200 * <code>DynAny</code> object
aoqi@0 201 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 202 * if the value inserted is not consistent with the type
aoqi@0 203 * of the accessed component in this <code>DynAny</code> object
aoqi@0 204 */
aoqi@0 205 public void insert_long(int value)
aoqi@0 206 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 207
aoqi@0 208 /**
aoqi@0 209 * Inserts the given <code>int</code> as the value for this
aoqi@0 210 * <code>DynAny</code> object.
aoqi@0 211 *
aoqi@0 212 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 213 * object, it initializes the next component of the constructed data
aoqi@0 214 * value associated with this <code>DynAny</code> object.
aoqi@0 215 *
aoqi@0 216 * @param value the <code>int</code> to insert into this
aoqi@0 217 * <code>DynAny</code> object
aoqi@0 218 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 219 * if the value inserted is not consistent with the type
aoqi@0 220 * of the accessed component in this <code>DynAny</code> object
aoqi@0 221 */
aoqi@0 222 public void insert_ulong(int value)
aoqi@0 223 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 224
aoqi@0 225 /**
aoqi@0 226 * Inserts the given <code>float</code> as the value for this
aoqi@0 227 * <code>DynAny</code> object.
aoqi@0 228 *
aoqi@0 229 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 230 * object, it initializes the next component of the constructed data
aoqi@0 231 * value associated with this <code>DynAny</code> object.
aoqi@0 232 *
aoqi@0 233 * @param value the <code>float</code> to insert into this
aoqi@0 234 * <code>DynAny</code> object
aoqi@0 235 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 236 * if the value inserted is not consistent with the type
aoqi@0 237 * of the accessed component in this <code>DynAny</code> object
aoqi@0 238 */
aoqi@0 239 public void insert_float(float value)
aoqi@0 240 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 241
aoqi@0 242 /**
aoqi@0 243 * Inserts the given <code>double</code> as the value for this
aoqi@0 244 * <code>DynAny</code> object.
aoqi@0 245 *
aoqi@0 246 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 247 * object, it initializes the next component of the constructed data
aoqi@0 248 * value associated with this <code>DynAny</code> object.
aoqi@0 249 *
aoqi@0 250 * @param value the <code>double</code> to insert into this
aoqi@0 251 * <code>DynAny</code> object
aoqi@0 252 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 253 * if the value inserted is not consistent with the type
aoqi@0 254 * of the accessed component in this <code>DynAny</code> object
aoqi@0 255 */
aoqi@0 256 public void insert_double(double value)
aoqi@0 257 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 258
aoqi@0 259 /**
aoqi@0 260 * Inserts the given <code>String</code> object as the value for this
aoqi@0 261 * <code>DynAny</code> object.
aoqi@0 262 *
aoqi@0 263 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 264 * object, it initializes the next component of the constructed data
aoqi@0 265 * value associated with this <code>DynAny</code> object.
aoqi@0 266 *
aoqi@0 267 * @param value the <code>String</code> to insert into this
aoqi@0 268 * <code>DynAny</code> object
aoqi@0 269 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 270 * if the value inserted is not consistent with the type
aoqi@0 271 * of the accessed component in this <code>DynAny</code> object
aoqi@0 272 */
aoqi@0 273 public void insert_string(String value)
aoqi@0 274 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 275
aoqi@0 276 /**
aoqi@0 277 * Inserts the given <code>org.omg.CORBA.Object</code> as the value for this
aoqi@0 278 * <code>DynAny</code> object.
aoqi@0 279 *
aoqi@0 280 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 281 * object, it initializes the next component of the constructed data
aoqi@0 282 * value associated with this <code>DynAny</code> object.
aoqi@0 283 *
aoqi@0 284 * @param value the <code>org.omg.CORBA.Object</code> to insert into this
aoqi@0 285 * <code>DynAny</code> object
aoqi@0 286 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 287 * if the value inserted is not consistent with the type
aoqi@0 288 * of the accessed component in this <code>DynAny</code> object
aoqi@0 289 */
aoqi@0 290 public void insert_reference(org.omg.CORBA.Object value)
aoqi@0 291 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 292
aoqi@0 293 /**
aoqi@0 294 * Inserts the given <code>org.omg.CORBA.TypeCode</code> as the value for this
aoqi@0 295 * <code>DynAny</code> object.
aoqi@0 296 *
aoqi@0 297 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 298 * object, it initializes the next component of the constructed data
aoqi@0 299 * value associated with this <code>DynAny</code> object.
aoqi@0 300 *
aoqi@0 301 * @param value the <code>org.omg.CORBA.TypeCode</code> to insert into this
aoqi@0 302 * <code>DynAny</code> object
aoqi@0 303 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 304 * if the value inserted is not consistent with the type
aoqi@0 305 * of the accessed component in this <code>DynAny</code> object
aoqi@0 306 */
aoqi@0 307 public void insert_typecode(org.omg.CORBA.TypeCode value)
aoqi@0 308 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 309
aoqi@0 310 /**
aoqi@0 311 * Inserts the given <code>long</code> as the value for this
aoqi@0 312 * <code>DynAny</code> object.
aoqi@0 313 *
aoqi@0 314 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 315 * object, it initializes the next component of the constructed data
aoqi@0 316 * value associated with this <code>DynAny</code> object.
aoqi@0 317 *
aoqi@0 318 * @param value the <code>long</code> to insert into this
aoqi@0 319 * <code>DynAny</code> object
aoqi@0 320 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 321 * if the value inserted is not consistent with the type
aoqi@0 322 * of the accessed component in this <code>DynAny</code> object
aoqi@0 323 */
aoqi@0 324 public void insert_longlong(long value)
aoqi@0 325 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 326
aoqi@0 327 /**
aoqi@0 328 * Inserts the given <code>long</code> as the value for this
aoqi@0 329 * <code>DynAny</code> object.
aoqi@0 330 *
aoqi@0 331 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 332 * object, it initializes the next component of the constructed data
aoqi@0 333 * value associated with this <code>DynAny</code> object.
aoqi@0 334 *
aoqi@0 335 * @param value the <code>long</code> to insert into this
aoqi@0 336 * <code>DynAny</code> object
aoqi@0 337 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 338 * if the value inserted is not consistent with the type
aoqi@0 339 * of the accessed component in this <code>DynAny</code> object
aoqi@0 340 */
aoqi@0 341 public void insert_ulonglong(long value)
aoqi@0 342 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 343
aoqi@0 344 /**
aoqi@0 345 * Inserts the given <code>char</code> as the value for this
aoqi@0 346 * <code>DynAny</code> object.
aoqi@0 347 *
aoqi@0 348 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 349 * object, it initializes the next component of the constructed data
aoqi@0 350 * value associated with this <code>DynAny</code> object.
aoqi@0 351 *
aoqi@0 352 * @param value the <code>char</code> to insert into this
aoqi@0 353 * <code>DynAny</code> object
aoqi@0 354 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 355 * if the value inserted is not consistent with the type
aoqi@0 356 * of the accessed component in this <code>DynAny</code> object
aoqi@0 357 */
aoqi@0 358 public void insert_wchar(char value)
aoqi@0 359 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 360
aoqi@0 361 /**
aoqi@0 362 * Inserts the given <code>String</code> as the value for this
aoqi@0 363 * <code>DynAny</code> object.
aoqi@0 364 *
aoqi@0 365 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 366 * object, it initializes the next component of the constructed data
aoqi@0 367 * value associated with this <code>DynAny</code> object.
aoqi@0 368 *
aoqi@0 369 * @param value the <code>String</code> to insert into this
aoqi@0 370 * <code>DynAny</code> object
aoqi@0 371 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 372 * if the value inserted is not consistent with the type
aoqi@0 373 * of the accessed component in this <code>DynAny</code> object
aoqi@0 374 */
aoqi@0 375 public void insert_wstring(String value)
aoqi@0 376 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 377
aoqi@0 378 /**
aoqi@0 379 * Inserts the given <code>org.omg.CORBA.Any</code> object as the value for this
aoqi@0 380 * <code>DynAny</code> object.
aoqi@0 381 *
aoqi@0 382 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 383 * object, it initializes the next component of the constructed data
aoqi@0 384 * value associated with this <code>DynAny</code> object.
aoqi@0 385 *
aoqi@0 386 * @param value the <code>org.omg.CORBA.Any</code> object to insert into this
aoqi@0 387 * <code>DynAny</code> object
aoqi@0 388 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 389 * if the value inserted is not consistent with the type
aoqi@0 390 * of the accessed component in this <code>DynAny</code> object
aoqi@0 391 */
aoqi@0 392 public void insert_any(org.omg.CORBA.Any value)
aoqi@0 393 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 394
aoqi@0 395 // orbos 98-01-18: Objects By Value -- begin
aoqi@0 396
aoqi@0 397 /**
aoqi@0 398 * Inserts the given <code>java.io.Serializable</code> object as the value for this
aoqi@0 399 * <code>DynAny</code> object.
aoqi@0 400 *
aoqi@0 401 * <p> If this method is called on a constructed <code>DynAny</code>
aoqi@0 402 * object, it initializes the next component of the constructed data
aoqi@0 403 * value associated with this <code>DynAny</code> object.
aoqi@0 404 *
aoqi@0 405 * @param value the <code>java.io.Serializable</code> object to insert into this
aoqi@0 406 * <code>DynAny</code> object
aoqi@0 407 * @throws org.omg.CORBA.DynAnyPackage.InvalidValue
aoqi@0 408 * if the value inserted is not consistent with the type
aoqi@0 409 * of the accessed component in this <code>DynAny</code> object
aoqi@0 410 */
aoqi@0 411 public void insert_val(java.io.Serializable value)
aoqi@0 412 throws org.omg.CORBA.DynAnyPackage.InvalidValue;
aoqi@0 413
aoqi@0 414 /**
aoqi@0 415 * Retrieves the <code>java.io.Serializable</code> object contained
aoqi@0 416 * in this <code>DynAny</code> object.
aoqi@0 417 *
aoqi@0 418 * @return the <code>java.io.Serializable</code> object that is the
aoqi@0 419 * value for this <code>DynAny</code> object
aoqi@0 420 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 421 * if the type code of the accessed component in this
aoqi@0 422 * <code>DynAny</code> object is not equivalent to
aoqi@0 423 * the type code for a <code>java.io.Serializable</code> object
aoqi@0 424 */
aoqi@0 425 public java.io.Serializable get_val()
aoqi@0 426 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 427
aoqi@0 428 // orbos 98-01-18: Objects By Value -- end
aoqi@0 429
aoqi@0 430 /**
aoqi@0 431 * Retrieves the <code>boolean</code> contained
aoqi@0 432 * in this <code>DynAny</code> object.
aoqi@0 433 *
aoqi@0 434 * @return the <code>boolean</code> that is the
aoqi@0 435 * value for this <code>DynAny</code> object
aoqi@0 436 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 437 * if the type code of the accessed component in this
aoqi@0 438 * <code>DynAny</code> object is not equivalent to
aoqi@0 439 * the type code for a <code>boolean</code>
aoqi@0 440 */
aoqi@0 441 public boolean get_boolean()
aoqi@0 442 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 443
aoqi@0 444
aoqi@0 445 /**
aoqi@0 446 * Retrieves the <code>byte</code> contained
aoqi@0 447 * in this <code>DynAny</code> object.
aoqi@0 448 *
aoqi@0 449 * @return the <code>byte</code> that is the
aoqi@0 450 * value for this <code>DynAny</code> object
aoqi@0 451 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 452 * if the type code of the accessed component in this
aoqi@0 453 * <code>DynAny</code> object is not equivalent to
aoqi@0 454 * the type code for a <code>byte</code>
aoqi@0 455 */
aoqi@0 456 public byte get_octet()
aoqi@0 457 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 458
aoqi@0 459 /**
aoqi@0 460 * Retrieves the <code>char</code> contained
aoqi@0 461 * in this <code>DynAny</code> object.
aoqi@0 462 *
aoqi@0 463 * @return the <code>char</code> that is the
aoqi@0 464 * value for this <code>DynAny</code> object
aoqi@0 465 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 466 * if the type code of the accessed component in this
aoqi@0 467 * <code>DynAny</code> object is not equivalent to
aoqi@0 468 * the type code for a <code>char</code>
aoqi@0 469 */
aoqi@0 470 public char get_char()
aoqi@0 471 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 472
aoqi@0 473
aoqi@0 474 /**
aoqi@0 475 * Retrieves the <code>short</code> contained
aoqi@0 476 * in this <code>DynAny</code> object.
aoqi@0 477 *
aoqi@0 478 * @return the <code>short</code> that is the
aoqi@0 479 * value for this <code>DynAny</code> object
aoqi@0 480 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 481 * if the type code of the accessed component in this
aoqi@0 482 * <code>DynAny</code> object is not equivalent to
aoqi@0 483 * the type code for a <code>short</code>
aoqi@0 484 */
aoqi@0 485 public short get_short()
aoqi@0 486 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 487
aoqi@0 488
aoqi@0 489 /**
aoqi@0 490 * Retrieves the <code>short</code> contained
aoqi@0 491 * in this <code>DynAny</code> object.
aoqi@0 492 *
aoqi@0 493 * @return the <code>short</code> that is the
aoqi@0 494 * value for this <code>DynAny</code> object
aoqi@0 495 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 496 * if the type code of the accessed component in this
aoqi@0 497 * <code>DynAny</code> object is not equivalent to
aoqi@0 498 * the type code for a <code>short</code>
aoqi@0 499 */
aoqi@0 500 public short get_ushort()
aoqi@0 501 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 502
aoqi@0 503
aoqi@0 504 /**
aoqi@0 505 * Retrieves the <code>int</code> contained
aoqi@0 506 * in this <code>DynAny</code> object.
aoqi@0 507 *
aoqi@0 508 * @return the <code>int</code> that is the
aoqi@0 509 * value for this <code>DynAny</code> object
aoqi@0 510 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 511 * if the type code of the accessed component in this
aoqi@0 512 * <code>DynAny</code> object is not equivalent to
aoqi@0 513 * the type code for a <code>int</code>
aoqi@0 514 */
aoqi@0 515 public int get_long()
aoqi@0 516 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 517
aoqi@0 518
aoqi@0 519 /**
aoqi@0 520 * Retrieves the <code>int</code> contained
aoqi@0 521 * in this <code>DynAny</code> object.
aoqi@0 522 *
aoqi@0 523 * @return the <code>int</code> that is the
aoqi@0 524 * value for this <code>DynAny</code> object
aoqi@0 525 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 526 * if the type code of the accessed component in this
aoqi@0 527 * <code>DynAny</code> object is not equivalent to
aoqi@0 528 * the type code for a <code>int</code>
aoqi@0 529 */
aoqi@0 530 public int get_ulong()
aoqi@0 531 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 532
aoqi@0 533
aoqi@0 534 /**
aoqi@0 535 * Retrieves the <code>float</code> contained
aoqi@0 536 * in this <code>DynAny</code> object.
aoqi@0 537 *
aoqi@0 538 * @return the <code>float</code> that is the
aoqi@0 539 * value for this <code>DynAny</code> object
aoqi@0 540 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 541 * if the type code of the accessed component in this
aoqi@0 542 * <code>DynAny</code> object is not equivalent to
aoqi@0 543 * the type code for a <code>float</code>
aoqi@0 544 */
aoqi@0 545 public float get_float()
aoqi@0 546 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 547
aoqi@0 548
aoqi@0 549 /**
aoqi@0 550 * Retrieves the <code>double</code> contained
aoqi@0 551 * in this <code>DynAny</code> object.
aoqi@0 552 *
aoqi@0 553 * @return the <code>double</code> that is the
aoqi@0 554 * value for this <code>DynAny</code> object
aoqi@0 555 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 556 * if the type code of the accessed component in this
aoqi@0 557 * <code>DynAny</code> object is not equivalent to
aoqi@0 558 * the type code for a <code>double</code>
aoqi@0 559 */
aoqi@0 560 public double get_double()
aoqi@0 561 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 562
aoqi@0 563
aoqi@0 564 /**
aoqi@0 565 * Retrieves the <code>String</code> contained
aoqi@0 566 * in this <code>DynAny</code> object.
aoqi@0 567 *
aoqi@0 568 * @return the <code>String</code> that is the
aoqi@0 569 * value for this <code>DynAny</code> object
aoqi@0 570 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 571 * if the type code of the accessed component in this
aoqi@0 572 * <code>DynAny</code> object is not equivalent to
aoqi@0 573 * the type code for a <code>String</code>
aoqi@0 574 */
aoqi@0 575 public String get_string()
aoqi@0 576 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 577
aoqi@0 578
aoqi@0 579 /**
aoqi@0 580 * Retrieves the <code>org.omg.CORBA.Other</code> contained
aoqi@0 581 * in this <code>DynAny</code> object.
aoqi@0 582 *
aoqi@0 583 * @return the <code>org.omg.CORBA.Other</code> that is the
aoqi@0 584 * value for this <code>DynAny</code> object
aoqi@0 585 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 586 * if the type code of the accessed component in this
aoqi@0 587 * <code>DynAny</code> object is not equivalent to
aoqi@0 588 * the type code for an <code>org.omg.CORBA.Other</code>
aoqi@0 589 */
aoqi@0 590 public org.omg.CORBA.Object get_reference()
aoqi@0 591 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 592
aoqi@0 593
aoqi@0 594 /**
aoqi@0 595 * Retrieves the <code>org.omg.CORBA.TypeCode</code> contained
aoqi@0 596 * in this <code>DynAny</code> object.
aoqi@0 597 *
aoqi@0 598 * @return the <code>org.omg.CORBA.TypeCode</code> that is the
aoqi@0 599 * value for this <code>DynAny</code> object
aoqi@0 600 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 601 * if the type code of the accessed component in this
aoqi@0 602 * <code>DynAny</code> object is not equivalent to
aoqi@0 603 * the type code for a <code>org.omg.CORBA.TypeCode</code>
aoqi@0 604 */
aoqi@0 605 public org.omg.CORBA.TypeCode get_typecode()
aoqi@0 606 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 607
aoqi@0 608
aoqi@0 609 /**
aoqi@0 610 * Retrieves the <code>long</code> contained
aoqi@0 611 * in this <code>DynAny</code> object.
aoqi@0 612 *
aoqi@0 613 * @return the <code>long</code> that is the
aoqi@0 614 * value for this <code>DynAny</code> object
aoqi@0 615 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 616 * if the type code of the accessed component in this
aoqi@0 617 * <code>DynAny</code> object is not equivalent to
aoqi@0 618 * the type code for a <code>long</code>
aoqi@0 619 */
aoqi@0 620 public long get_longlong()
aoqi@0 621 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 622
aoqi@0 623
aoqi@0 624 /**
aoqi@0 625 * Retrieves the <code>long</code> contained
aoqi@0 626 * in this <code>DynAny</code> object.
aoqi@0 627 *
aoqi@0 628 * @return the <code>long</code> that is the
aoqi@0 629 * value for this <code>DynAny</code> object
aoqi@0 630 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 631 * if the type code of the accessed component in this
aoqi@0 632 * <code>DynAny</code> object is not equivalent to
aoqi@0 633 * the type code for a <code>long</code>
aoqi@0 634 */
aoqi@0 635 public long get_ulonglong()
aoqi@0 636 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 637
aoqi@0 638
aoqi@0 639 /**
aoqi@0 640 * Retrieves the <code>char</code> contained
aoqi@0 641 * in this <code>DynAny</code> object.
aoqi@0 642 *
aoqi@0 643 * @return the <code>char</code> that is the
aoqi@0 644 * value for this <code>DynAny</code> object
aoqi@0 645 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 646 * if the type code of the accessed component in this
aoqi@0 647 * <code>DynAny</code> object is not equivalent to
aoqi@0 648 * the type code for a <code>char</code>
aoqi@0 649 */
aoqi@0 650 public char get_wchar()
aoqi@0 651 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 652
aoqi@0 653
aoqi@0 654 /**
aoqi@0 655 * Retrieves the <code>String</code> contained
aoqi@0 656 * in this <code>DynAny</code> object.
aoqi@0 657 *
aoqi@0 658 * @return the <code>String</code> that is the
aoqi@0 659 * value for this <code>DynAny</code> object
aoqi@0 660 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 661 * if the type code of the accessed component in this
aoqi@0 662 * <code>DynAny</code> object is not equivalent to
aoqi@0 663 * the type code for a <code>String</code>
aoqi@0 664 */
aoqi@0 665 public String get_wstring()
aoqi@0 666 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 667
aoqi@0 668
aoqi@0 669 /**
aoqi@0 670 * Retrieves the <code>org.omg.CORBA.Any</code> contained
aoqi@0 671 * in this <code>DynAny</code> object.
aoqi@0 672 *
aoqi@0 673 * @return the <code>org.omg.CORBA.Any</code> that is the
aoqi@0 674 * value for this <code>DynAny</code> object
aoqi@0 675 * @throws org.omg.CORBA.DynAnyPackage.TypeMismatch
aoqi@0 676 * if the type code of the accessed component in this
aoqi@0 677 * <code>DynAny</code> object is not equivalent to
aoqi@0 678 * the type code for an <code>org.omg.CORBA.Any</code>
aoqi@0 679 */
aoqi@0 680 public org.omg.CORBA.Any get_any()
aoqi@0 681 throws org.omg.CORBA.DynAnyPackage.TypeMismatch;
aoqi@0 682
aoqi@0 683 /**
aoqi@0 684 * Returns a <code>DynAny</code> object reference that can
aoqi@0 685 * be used to get/set the value of the component currently accessed.
aoqi@0 686 * The appropriate <code>insert</code> method
aoqi@0 687 * can be called on the resulting <code>DynAny</code> object
aoqi@0 688 * to initialize the component.
aoqi@0 689 * The appropriate <code>get</code> method
aoqi@0 690 * can be called on the resulting <code>DynAny</code> object
aoqi@0 691 * to extract the value of the component.
aoqi@0 692 *
aoqi@0 693 * @return a <code>DynAny</code> object reference that can be
aoqi@0 694 * used to retrieve or set the value of the component currently
aoqi@0 695 * accessed
aoqi@0 696 */
aoqi@0 697 public org.omg.CORBA.DynAny current_component() ;
aoqi@0 698
aoqi@0 699 /**
aoqi@0 700 * Moves to the next component of this <code>DynAny</code> object.
aoqi@0 701 * This method is used for iterating through the components of
aoqi@0 702 * a constructed type, effectively moving a pointer from one
aoqi@0 703 * component to the next. The pointer starts out on the first
aoqi@0 704 * component when a <code>DynAny</code> object is created.
aoqi@0 705 *
aoqi@0 706 * @return <code>true</code> if the pointer points to a component;
aoqi@0 707 * <code>false</code> if there are no more components or this
aoqi@0 708 * <code>DynAny</code> is associated with a basic type rather than
aoqi@0 709 * a constructed type
aoqi@0 710 */
aoqi@0 711 public boolean next() ;
aoqi@0 712
aoqi@0 713 /**
aoqi@0 714 * Moves the internal pointer to the given index. Logically, this method
aoqi@0 715 * sets a new offset for this pointer.
aoqi@0 716 *
aoqi@0 717 * @param index an <code>int</code> indicating the position to which
aoqi@0 718 * the pointer should move. The first position is 0.
aoqi@0 719 * @return <code>true</code> if the pointer points to a component;
aoqi@0 720 * <code>false</code> if there is no component at the designated
aoqi@0 721 * index. If this <code>DynAny</code> object is associated with a
aoqi@0 722 * basic type, this method returns <code>false</code> for any index
aoqi@0 723 * other than 0.
aoqi@0 724 */
aoqi@0 725 public boolean seek(int index) ;
aoqi@0 726
aoqi@0 727 /**
aoqi@0 728 * Moves the internal pointer to the first component.
aoqi@0 729 */
aoqi@0 730 public void rewind() ;
aoqi@0 731 }

mercurial