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