corba/src/share/classes/org/omg/CORBA/TypeCode.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) 1996, 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 org.omg.CORBA;
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
import org.omg.CORBA.TypeCodePackage.*;
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
import org.omg.CORBA.portable.IDLEntity;
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
 * A container for information about a specific CORBA data
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
 * type.
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
 *<P>
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
 * <code>TypeCode</code> objects are used:
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
 * <UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
 * <LI>in the Dynamic Invocation Interface -- to indicate the types
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
 * of the actual arguments or the type of the return value.  <BR>
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
 * <code>NamedValue</code> objects are used to represent arguments and
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
 * return values.  One of their components is an <code>Any</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
 * object, which in turn has as one of its components a
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
 * <code>TypeCode</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
 * <LI>by an Interface Repository to represent the type specifications
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
 * that are part of many OMG IDL declarations
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
 * </UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
 * The representation of a <code>TypeCode</code> object is opaque,
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
 * but abstractly, a <code>TypeCode</code> object consists of:
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
 * <UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
 * <LI>a <code>kind</code> field, which is set to an instance
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
 * of the class <code>TCKind</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
 * <LI>zero or more additional fields appropriate
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
 * for the particular kind. For example, the
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
 * <code>TypeCode</code> object
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
 * describing the OMG IDL type <code>1ong</code> has kind
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
 * <code>TCKind.tk_long</code> and no additional fields.
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
 * The <code>TypeCode</code> describing OMG IDL type
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
 * <code>sequence&lt;boolean, 10&gt;</code> has a <code>kind</code> field
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
 * with the value
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
 * <code>TCKind.tk_sequence</code> and also fields with the values
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
 * <code>boolean</code> and <code>10</code> for the
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
 * type of sequence elements and the length of the sequence. <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
 * </UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
 * <code>TypeCode</code> objects can be obtained in various ways:
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
 * <OL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
 * <LI>from a call to the method <code>Any.insert_X</code>, where X is
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
 * a basic IDL type.  This method creates a <code>TypeCode</code> object
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
 * for type X and assigns it to the <code>Any</code> object's
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
 * <code>type</code> field.
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
 * <LI>from invocations of methods in the ORB class
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
 * <P>For example, the following creates a <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
 * object for a <code>string</code> with a maximum of 30 characters:
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
 * <PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
 *   org.omg.CORBA.TypeCode tcString = orb.create_string_tc(30);
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
 * </PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
 * <P> The following creates a <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
 * object for an <code>array</code> of five <code>string</code>s:
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
 * <PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
 *   org.omg.CORBA.TypeCode tcArray = orb.create_array_tc(
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
 *                                       5, TCKind.tk_string);
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
 * </PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
 * <P> The following creates a <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
 * object for an interface named "Account":
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
 * <PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
 *   org.omg.CORBA.TypeCode tcInterface = orb.create_interface_tc(
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
 *                                                 "thisId", "Account");
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
 * </PRE>
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
 * <LI>as the return value from the <code>_type</code> method
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
 * in <code>Holder</code> classes for user-defined
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
 * IDL types.  These <code>Holder</code> classes are generated
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
 * by the <code>idltojava</code> compiler.
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
 * <LI>from a CORBA Interface Repository
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
 * </OL>
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
 * Most of the methods in the class <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
 * are accessors, and the information contained in a <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
 * object is specific to a particular type.  Therefore, methods
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
 * must be invoked
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
 * only on the kind of type codes to which they apply.  If an
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
 * accessor method
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
 * tries to access information from an inappropriate kind of
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
 * type code, it will throw
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
 * the exception <code>TypeCodePackage.BadKind</code>.  For example,
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
 * if the method <code>discriminator_type</code> is called on anything
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
 * other than a <code>union</code>, it will throw <code>BadKind</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
 * because only <code>union</code>s have a discriminator.
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
 * The following list shows which methods apply to which kinds of
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
 * type codes:
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
 * These methods may be invoked on all <code>TypeCode</code> kinds:
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
 * <UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
 * <LI><code>equal</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
 * <LI><code>kind</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   115
 * </UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
 * These methods may be invoked on <code>objref</code>, <code>struct</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
 * <code>union</code>, <code>enum</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
 * <code>alias</code>, <code>exception</code>, <code>value</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
 * <code>value_box</code>, <code>native</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
 * and <code>abstract_interface</code>:
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
 * <UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
 * <LI><code>id</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
 * <LI><code>name</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
 * </UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
 * These methods may be invoked on <code>struct</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
 * <code>union</code>, <code>enum</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
 * and <code>exception</code>:
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
 * <UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
 * <LI><code>member_count</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
 * <LI><code>member_name</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
 * </UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
 * These methods may be invoked on <code>struct</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
 * <code>union</code>, and <code>exception</code>:
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
 * <UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
 * <LI><code>member_type(int index)</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
 * </UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
 * These methods may be invoked on <code>union</code>:
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
 * <UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
 * <LI><code>member_label</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
 * <LI><code>discriminator_type</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
 * <LI><code>default_index</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
 * </UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
 * These methods may be invoked on <code>string</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
 * <code>sequence</code>, and <code>array</code>:
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
 * <UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
 * <LI><code>length</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
 * </UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
 * These methods may be invoked on <code>alias</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
 * <code>sequence</code>, <code>array</code>, and <code>value_box</code>:
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
 * <UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
 * <LI><code>content_type</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
 * </UL>
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
 * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
 * Unlike other CORBA pseudo-objects, <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
 * objects can be passed as general IDL parameters. <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
 * The methods <code>parameter</code> and <code>param_count</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
 * which are deprecated, are not mapped.  <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
 * Java IDL extends the CORBA specification to allow all operations permitted
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
 * on a <code>struct</code> <code>TypeCode</code> to be permitted
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
 * on an <code>exception</code> <code>TypeCode</code> as well. <p>
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
 *
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
public abstract class TypeCode implements IDLEntity {
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
     * Compares this <code>TypeCode</code> object with the given one,
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
     * testing for equality. <code>TypeCode</code> objects are equal if
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
     * they are interchangeable and give identical results when
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
     * <code>TypeCode</code> operations are applied to them.
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
     * @param tc                the <code>TypeCode</code> object to compare against
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
     * @return          <code>true</code> if the type codes are equal;
02bb8761fcce Initial load
duke
parents:
diff changeset
   180
     *                <code>false</code> otherwise
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
    public abstract boolean equal(TypeCode tc);
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
         * Tests to see if the given <code>TypeCode</code> object is
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
         * equivalent to this <code>TypeCode</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
         * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
         *
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
         *
02bb8761fcce Initial load
duke
parents:
diff changeset
   191
         * @param tc the typecode to compare with this typecode
02bb8761fcce Initial load
duke
parents:
diff changeset
   192
         *
02bb8761fcce Initial load
duke
parents:
diff changeset
   193
         * @return <code>true</code> if the given typecode is equivalent to
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
         *         this typecode; <code>false</code> otherwise
02bb8761fcce Initial load
duke
parents:
diff changeset
   195
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   196
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
    public abstract boolean equivalent(TypeCode tc);
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
02bb8761fcce Initial load
duke
parents:
diff changeset
   199
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
     * Strips out all optional name and member name fields,
02bb8761fcce Initial load
duke
parents:
diff changeset
   201
     * but leaves all alias typecodes intact.
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
         * @return a <code>TypeCode</code> object with optional name and
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
         *         member name fields stripped out, except for alias typecodes,
02bb8761fcce Initial load
duke
parents:
diff changeset
   204
         *         which are left intact
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
    public abstract TypeCode get_compact_typecode();
02bb8761fcce Initial load
duke
parents:
diff changeset
   209
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   212
     * Retrieves the kind of this <code>TypeCode</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
     * The kind of a type code determines which <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
     * methods may legally be invoked on it.
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
     * The method <code>kind</code> may be invoked on any
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
     * <code>TypeCode</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   218
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   219
     * @return  the <code>TCKind</code> instance indicating the
02bb8761fcce Initial load
duke
parents:
diff changeset
   220
     *            value of the <code>kind</code> field of this
02bb8761fcce Initial load
duke
parents:
diff changeset
   221
     *                  <code>TypeCode</code> object
02bb8761fcce Initial load
duke
parents:
diff changeset
   222
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   223
02bb8761fcce Initial load
duke
parents:
diff changeset
   224
    public abstract TCKind kind();
02bb8761fcce Initial load
duke
parents:
diff changeset
   225
02bb8761fcce Initial load
duke
parents:
diff changeset
   226
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   227
     * Retrieves the RepositoryId globally identifying the type
02bb8761fcce Initial load
duke
parents:
diff changeset
   228
     * of this <code>TypeCode</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   229
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   230
     * The method <code>id</code> can be invoked on object reference,
02bb8761fcce Initial load
duke
parents:
diff changeset
   231
     * structure, union, enumeration, alias, exception, valuetype,
02bb8761fcce Initial load
duke
parents:
diff changeset
   232
     * boxed valuetype, native, and abstract interface type codes.
02bb8761fcce Initial load
duke
parents:
diff changeset
   233
     * Object reference, exception, valuetype, boxed valuetype,
02bb8761fcce Initial load
duke
parents:
diff changeset
   234
     * native, and abstract interface <code>TypeCode</code> objects
02bb8761fcce Initial load
duke
parents:
diff changeset
   235
     * always have a RepositoryId.
02bb8761fcce Initial load
duke
parents:
diff changeset
   236
     * Structure, union, enumeration, and alias <code>TypeCode</code> objects
02bb8761fcce Initial load
duke
parents:
diff changeset
   237
     * obtained from the Interface Repository or the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   238
     * <code>ORB.create_operation_list</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   239
     * also always have a RepositoryId. If there is no RepositoryId, the
02bb8761fcce Initial load
duke
parents:
diff changeset
   240
     * method can return an empty string.
02bb8761fcce Initial load
duke
parents:
diff changeset
   241
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   242
     * @return          the RepositoryId for this <code>TypeCode</code> object
02bb8761fcce Initial load
duke
parents:
diff changeset
   243
     *                or an empty string if there is no RepositoryID
02bb8761fcce Initial load
duke
parents:
diff changeset
   244
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   245
     *           is invoked on an inappropriate kind of<code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   246
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   247
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   248
02bb8761fcce Initial load
duke
parents:
diff changeset
   249
    public abstract String id() throws BadKind;
02bb8761fcce Initial load
duke
parents:
diff changeset
   250
02bb8761fcce Initial load
duke
parents:
diff changeset
   251
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   252
     * Retrieves the simple name identifying this <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   253
     * object within its
02bb8761fcce Initial load
duke
parents:
diff changeset
   254
     * enclosing scope. Since names are local to a Repository, the
02bb8761fcce Initial load
duke
parents:
diff changeset
   255
     * name returned from a <code>TypeCode</code> object
02bb8761fcce Initial load
duke
parents:
diff changeset
   256
     * may not match the name of the
02bb8761fcce Initial load
duke
parents:
diff changeset
   257
     * type in any particular Repository, and may even be an empty
02bb8761fcce Initial load
duke
parents:
diff changeset
   258
     * string.
02bb8761fcce Initial load
duke
parents:
diff changeset
   259
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   260
     * The method <code>name</code> can be invoked on object reference,
02bb8761fcce Initial load
duke
parents:
diff changeset
   261
     * structure, union, enumeration, alias, exception, valuetype,
02bb8761fcce Initial load
duke
parents:
diff changeset
   262
     * boxed valuetype, native, and abstract interface
02bb8761fcce Initial load
duke
parents:
diff changeset
   263
     * <code>TypeCode</code> objects.
02bb8761fcce Initial load
duke
parents:
diff changeset
   264
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   265
     * @return          the name identifying this <code>TypeCode</code> object
02bb8761fcce Initial load
duke
parents:
diff changeset
   266
     *                or an empty string
02bb8761fcce Initial load
duke
parents:
diff changeset
   267
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   268
     *           is invoked on an inappropriate kind of<code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   269
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   270
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   271
02bb8761fcce Initial load
duke
parents:
diff changeset
   272
    public abstract String name() throws BadKind;
02bb8761fcce Initial load
duke
parents:
diff changeset
   273
02bb8761fcce Initial load
duke
parents:
diff changeset
   274
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   275
     * Retrieves the number of members in the type described by
02bb8761fcce Initial load
duke
parents:
diff changeset
   276
     * this <code>TypeCode</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   277
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   278
     * The method <code>member_count</code> can be invoked on
02bb8761fcce Initial load
duke
parents:
diff changeset
   279
     * structure, union, and enumeration <code>TypeCode</code> objects.
02bb8761fcce Initial load
duke
parents:
diff changeset
   280
     * Java IDL extends the CORBA specification to allow this method to
02bb8761fcce Initial load
duke
parents:
diff changeset
   281
     * operate on exceptions as well.
02bb8761fcce Initial load
duke
parents:
diff changeset
   282
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   283
     * @return          the number of members constituting the type described
02bb8761fcce Initial load
duke
parents:
diff changeset
   284
     *                by this <code>TypeCode</code> object
02bb8761fcce Initial load
duke
parents:
diff changeset
   285
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   286
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   287
     *           is invoked on an inappropriate kind of <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   288
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   289
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   290
02bb8761fcce Initial load
duke
parents:
diff changeset
   291
    public abstract int member_count() throws BadKind;
02bb8761fcce Initial load
duke
parents:
diff changeset
   292
02bb8761fcce Initial load
duke
parents:
diff changeset
   293
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   294
     * Retrieves the simple name of the member identified by
02bb8761fcce Initial load
duke
parents:
diff changeset
   295
     * the given index. Since names are local to a
02bb8761fcce Initial load
duke
parents:
diff changeset
   296
     * Repository, the name returned from a <code>TypeCode</code> object
02bb8761fcce Initial load
duke
parents:
diff changeset
   297
     * may not match the name of the member in any particular
02bb8761fcce Initial load
duke
parents:
diff changeset
   298
     * Repository, and may even be an empty string.
02bb8761fcce Initial load
duke
parents:
diff changeset
   299
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   300
     * The  method <code>member_name</code> can be invoked on structure, union,
02bb8761fcce Initial load
duke
parents:
diff changeset
   301
     * and enumeration <code>TypeCode</code> objects.
02bb8761fcce Initial load
duke
parents:
diff changeset
   302
     * Java IDL extends the CORBA specification to allow this method to
02bb8761fcce Initial load
duke
parents:
diff changeset
   303
     * operate on exceptions as well.
02bb8761fcce Initial load
duke
parents:
diff changeset
   304
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   305
     * @param index     index of the member for which a name is being reqested
02bb8761fcce Initial load
duke
parents:
diff changeset
   306
     * @return          simple name of the member identified by the
02bb8761fcce Initial load
duke
parents:
diff changeset
   307
     *                  index or an empty string
02bb8761fcce Initial load
duke
parents:
diff changeset
   308
     * @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is equal
02bb8761fcce Initial load
duke
parents:
diff changeset
   309
     *            to or greater than
02bb8761fcce Initial load
duke
parents:
diff changeset
   310
     *                  the number of members constituting the type
02bb8761fcce Initial load
duke
parents:
diff changeset
   311
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   312
     *           is invoked on an inappropriate kind of <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   313
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   314
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   315
02bb8761fcce Initial load
duke
parents:
diff changeset
   316
    public abstract String member_name(int index)
02bb8761fcce Initial load
duke
parents:
diff changeset
   317
        throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds;
02bb8761fcce Initial load
duke
parents:
diff changeset
   318
02bb8761fcce Initial load
duke
parents:
diff changeset
   319
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   320
     * Retrieves the <code>TypeCode</code> object describing the type
02bb8761fcce Initial load
duke
parents:
diff changeset
   321
     * of the member identified by the given index.
02bb8761fcce Initial load
duke
parents:
diff changeset
   322
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   323
     * The method <code>member_type</code> can be invoked on structure
02bb8761fcce Initial load
duke
parents:
diff changeset
   324
     * and union <code>TypeCode</code> objects.
02bb8761fcce Initial load
duke
parents:
diff changeset
   325
     * Java IDL extends the CORBA specification to allow this method to
02bb8761fcce Initial load
duke
parents:
diff changeset
   326
     * operate on exceptions as well.
02bb8761fcce Initial load
duke
parents:
diff changeset
   327
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   328
     * @param index     index of the member for which type information
02bb8761fcce Initial load
duke
parents:
diff changeset
   329
     *                is begin requested
02bb8761fcce Initial load
duke
parents:
diff changeset
   330
     * @return          the <code>TypeCode</code> object describing the
02bb8761fcce Initial load
duke
parents:
diff changeset
   331
     *                member at the given index
02bb8761fcce Initial load
duke
parents:
diff changeset
   332
     * @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is
02bb8761fcce Initial load
duke
parents:
diff changeset
   333
     *                equal to or greater than
02bb8761fcce Initial load
duke
parents:
diff changeset
   334
     *                      the number of members constituting the type
02bb8761fcce Initial load
duke
parents:
diff changeset
   335
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   336
     *           is invoked on an inappropriate kind of <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   337
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   338
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   339
02bb8761fcce Initial load
duke
parents:
diff changeset
   340
    public abstract TypeCode member_type(int index)
02bb8761fcce Initial load
duke
parents:
diff changeset
   341
        throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds;
02bb8761fcce Initial load
duke
parents:
diff changeset
   342
02bb8761fcce Initial load
duke
parents:
diff changeset
   343
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   344
     * Retrieves the label of the union member
02bb8761fcce Initial load
duke
parents:
diff changeset
   345
     * identified by the given index. For the default member,
02bb8761fcce Initial load
duke
parents:
diff changeset
   346
     * the label is the zero octet.
02bb8761fcce Initial load
duke
parents:
diff changeset
   347
     *<P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   348
     * The method <code>member_label</code> can only be invoked on union
02bb8761fcce Initial load
duke
parents:
diff changeset
   349
     * <code>TypeCode</code> objects.
02bb8761fcce Initial load
duke
parents:
diff changeset
   350
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   351
     * @param index     index of the union member for which the
02bb8761fcce Initial load
duke
parents:
diff changeset
   352
     *                label is being requested
02bb8761fcce Initial load
duke
parents:
diff changeset
   353
     * @return          an <code>Any</code> object describing the label of
02bb8761fcce Initial load
duke
parents:
diff changeset
   354
     *                the requested union member or the zero octet for
02bb8761fcce Initial load
duke
parents:
diff changeset
   355
     *                the default member
02bb8761fcce Initial load
duke
parents:
diff changeset
   356
     * @throws org.omg.CORBA.TypeCodePackage.Bounds if the index is
02bb8761fcce Initial load
duke
parents:
diff changeset
   357
     *                equal to or greater than
02bb8761fcce Initial load
duke
parents:
diff changeset
   358
     *                      the number of members constituting the union
02bb8761fcce Initial load
duke
parents:
diff changeset
   359
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   360
     *           is invoked on a non-union <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   361
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   362
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   363
02bb8761fcce Initial load
duke
parents:
diff changeset
   364
    public abstract Any member_label(int index)
02bb8761fcce Initial load
duke
parents:
diff changeset
   365
        throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds;
02bb8761fcce Initial load
duke
parents:
diff changeset
   366
02bb8761fcce Initial load
duke
parents:
diff changeset
   367
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   368
     * Returns a <code>TypeCode</code> object describing
02bb8761fcce Initial load
duke
parents:
diff changeset
   369
     * all non-default member labels.
02bb8761fcce Initial load
duke
parents:
diff changeset
   370
     * The method <code>discriminator_type</code> can be invoked only
02bb8761fcce Initial load
duke
parents:
diff changeset
   371
     * on union <code>TypeCode</code> objects.
02bb8761fcce Initial load
duke
parents:
diff changeset
   372
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   373
     * @return          the <code>TypeCode</code> object describing
02bb8761fcce Initial load
duke
parents:
diff changeset
   374
     *                the non-default member labels
02bb8761fcce Initial load
duke
parents:
diff changeset
   375
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   376
     *           is invoked on a non-union <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   377
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   378
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   379
02bb8761fcce Initial load
duke
parents:
diff changeset
   380
    public abstract TypeCode discriminator_type()
02bb8761fcce Initial load
duke
parents:
diff changeset
   381
        throws BadKind;
02bb8761fcce Initial load
duke
parents:
diff changeset
   382
02bb8761fcce Initial load
duke
parents:
diff changeset
   383
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   384
     * Returns the index of the
02bb8761fcce Initial load
duke
parents:
diff changeset
   385
     * default member, or -1 if there is no default member.
02bb8761fcce Initial load
duke
parents:
diff changeset
   386
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   387
     * The method <code>default_index</code> can be invoked only on union
02bb8761fcce Initial load
duke
parents:
diff changeset
   388
     * <code>TypeCode</code> objects.
02bb8761fcce Initial load
duke
parents:
diff changeset
   389
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   390
     * @return          the index of the default member, or -1 if
02bb8761fcce Initial load
duke
parents:
diff changeset
   391
     *                  there is no default member
02bb8761fcce Initial load
duke
parents:
diff changeset
   392
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   393
     *           is invoked on a non-union <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   394
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   395
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   396
02bb8761fcce Initial load
duke
parents:
diff changeset
   397
    public abstract int default_index() throws BadKind;
02bb8761fcce Initial load
duke
parents:
diff changeset
   398
02bb8761fcce Initial load
duke
parents:
diff changeset
   399
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   400
     * Returns the number of elements in the type described by
02bb8761fcce Initial load
duke
parents:
diff changeset
   401
     * this <code>TypeCode</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   402
     * For strings and sequences, it returns the
02bb8761fcce Initial load
duke
parents:
diff changeset
   403
     * bound, with zero indicating an unbounded string or sequence.
02bb8761fcce Initial load
duke
parents:
diff changeset
   404
     * For arrays, it returns the number of elements in the array.
02bb8761fcce Initial load
duke
parents:
diff changeset
   405
     * <P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   406
     * The method <code>length</code> can be invoked on string, sequence, and
02bb8761fcce Initial load
duke
parents:
diff changeset
   407
     * array <code>TypeCode</code> objects.
02bb8761fcce Initial load
duke
parents:
diff changeset
   408
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   409
     * @return          the bound for strings and sequences, or the
02bb8761fcce Initial load
duke
parents:
diff changeset
   410
     *                      number of elements for arrays
02bb8761fcce Initial load
duke
parents:
diff changeset
   411
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   412
     *           is invoked on an inappropriate kind of <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   413
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   414
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   415
02bb8761fcce Initial load
duke
parents:
diff changeset
   416
    public abstract int length() throws BadKind;
02bb8761fcce Initial load
duke
parents:
diff changeset
   417
02bb8761fcce Initial load
duke
parents:
diff changeset
   418
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   419
     * Returns the <code>TypeCode</code> object representing the
02bb8761fcce Initial load
duke
parents:
diff changeset
   420
     * IDL type for the members of the object described by this
02bb8761fcce Initial load
duke
parents:
diff changeset
   421
     * <code>TypeCode</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   422
     * For sequences and arrays, it returns the
02bb8761fcce Initial load
duke
parents:
diff changeset
   423
     * element type. For aliases, it returns the original type. Note
02bb8761fcce Initial load
duke
parents:
diff changeset
   424
     * that multidimensional arrays are represented by nesting
02bb8761fcce Initial load
duke
parents:
diff changeset
   425
     * <code>TypeCode</code> objects, one per dimension.
02bb8761fcce Initial load
duke
parents:
diff changeset
   426
     * For boxed valuetypes, it returns the boxed type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   427
     *<P>
02bb8761fcce Initial load
duke
parents:
diff changeset
   428
     * The method <code>content_type</code> can be invoked on sequence, array,
02bb8761fcce Initial load
duke
parents:
diff changeset
   429
     * alias, and boxed valuetype <code>TypeCode</code> objects.
02bb8761fcce Initial load
duke
parents:
diff changeset
   430
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   431
     * @return  a <code>TypeCode</code> object representing
02bb8761fcce Initial load
duke
parents:
diff changeset
   432
     *            the element type for sequences and arrays, the
02bb8761fcce Initial load
duke
parents:
diff changeset
   433
     *          original type for aliases, or the
02bb8761fcce Initial load
duke
parents:
diff changeset
   434
     *            boxed type for boxed valuetypes.
02bb8761fcce Initial load
duke
parents:
diff changeset
   435
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if the method
02bb8761fcce Initial load
duke
parents:
diff changeset
   436
     *           is invoked on an inappropriate kind of <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   437
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   438
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   439
02bb8761fcce Initial load
duke
parents:
diff changeset
   440
    public abstract TypeCode content_type() throws BadKind;
02bb8761fcce Initial load
duke
parents:
diff changeset
   441
02bb8761fcce Initial load
duke
parents:
diff changeset
   442
02bb8761fcce Initial load
duke
parents:
diff changeset
   443
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   444
         * Returns the number of digits in the fixed type described by this
02bb8761fcce Initial load
duke
parents:
diff changeset
   445
         * <code>TypeCode</code> object. For example, the typecode for
02bb8761fcce Initial load
duke
parents:
diff changeset
   446
         * the number 3000.275d could be <code>fixed<7,3></code>, where
02bb8761fcce Initial load
duke
parents:
diff changeset
   447
         * 7 is the precision and 3 is the scale.
02bb8761fcce Initial load
duke
parents:
diff changeset
   448
         *
02bb8761fcce Initial load
duke
parents:
diff changeset
   449
         * @return the total number of digits
02bb8761fcce Initial load
duke
parents:
diff changeset
   450
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if this method
02bb8761fcce Initial load
duke
parents:
diff changeset
   451
     *           is invoked on an inappropriate kind of <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   452
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   453
         *
02bb8761fcce Initial load
duke
parents:
diff changeset
   454
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   455
    public abstract short fixed_digits() throws BadKind ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   456
02bb8761fcce Initial load
duke
parents:
diff changeset
   457
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   458
         * Returns the scale of the fixed type described by this
02bb8761fcce Initial load
duke
parents:
diff changeset
   459
         * <code>TypeCode</code> object. A positive number indicates the
02bb8761fcce Initial load
duke
parents:
diff changeset
   460
         * number of digits to the right of the decimal point.
02bb8761fcce Initial load
duke
parents:
diff changeset
   461
         * For example, the number 3000d could have the
02bb8761fcce Initial load
duke
parents:
diff changeset
   462
         * typecode <code>fixed<4,0></code>, where the first number is
02bb8761fcce Initial load
duke
parents:
diff changeset
   463
         * the precision and the second number is the scale.
02bb8761fcce Initial load
duke
parents:
diff changeset
   464
         * A negative number is also possible and adds zeroes to the
02bb8761fcce Initial load
duke
parents:
diff changeset
   465
         * left of the decimal point.  In this case, <code>fixed<1,-3></code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   466
         * could be the typecode for the number 3000d.
02bb8761fcce Initial load
duke
parents:
diff changeset
   467
         *
02bb8761fcce Initial load
duke
parents:
diff changeset
   468
         * @return the scale of the fixed type that this
02bb8761fcce Initial load
duke
parents:
diff changeset
   469
         *         <code>TypeCode</code> object describes
02bb8761fcce Initial load
duke
parents:
diff changeset
   470
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if this method
02bb8761fcce Initial load
duke
parents:
diff changeset
   471
     *           is invoked on an inappropriate kind of <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   472
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   473
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   474
    public abstract short fixed_scale() throws BadKind ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   475
02bb8761fcce Initial load
duke
parents:
diff changeset
   476
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   477
     * Returns the constant that indicates the visibility of the member
02bb8761fcce Initial load
duke
parents:
diff changeset
   478
     * at the given index.
02bb8761fcce Initial load
duke
parents:
diff changeset
   479
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   480
     * This operation can only be invoked on non-boxed value
02bb8761fcce Initial load
duke
parents:
diff changeset
   481
     * <code>TypeCode</code> objects.
02bb8761fcce Initial load
duke
parents:
diff changeset
   482
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   483
     * @param index an <code>int</code> indicating the index into the
02bb8761fcce Initial load
duke
parents:
diff changeset
   484
     *               value
02bb8761fcce Initial load
duke
parents:
diff changeset
   485
     * @return either <code>PRIVATE_MEMBER.value</code> or
02bb8761fcce Initial load
duke
parents:
diff changeset
   486
     *          <code>PUBLIC_MEMBER.value</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   487
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if this method
02bb8761fcce Initial load
duke
parents:
diff changeset
   488
     *           is invoked on a non-value type <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   489
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   490
     * @throws org.omg.CORBA.TypeCodePackage.Bounds
02bb8761fcce Initial load
duke
parents:
diff changeset
   491
     *           if the given index is out of bounds
02bb8761fcce Initial load
duke
parents:
diff changeset
   492
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
   493
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   494
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   495
02bb8761fcce Initial load
duke
parents:
diff changeset
   496
    abstract public short member_visibility(int index)
02bb8761fcce Initial load
duke
parents:
diff changeset
   497
        throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   498
02bb8761fcce Initial load
duke
parents:
diff changeset
   499
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   500
     * Returns a constant indicating the modifier of the value type
02bb8761fcce Initial load
duke
parents:
diff changeset
   501
     * that this <code>TypeCode</code> object describes.  The constant
02bb8761fcce Initial load
duke
parents:
diff changeset
   502
     * returned must be one of the following: <code>VM_NONE.value</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   503
     * <code>VM_ABSTRACT.value</code>, <code>VM_CUSTOM.value</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   504
     * or <code>VM_TRUNCATABLE.value</code>,
02bb8761fcce Initial load
duke
parents:
diff changeset
   505
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   506
     * @return a constant describing the value type
02bb8761fcce Initial load
duke
parents:
diff changeset
   507
     *         that this <code>TypeCode</code> object describes
02bb8761fcce Initial load
duke
parents:
diff changeset
   508
     * @throws org.omg.CORBA.TypeCodePackage.BadKind
02bb8761fcce Initial load
duke
parents:
diff changeset
   509
     *           if this method
02bb8761fcce Initial load
duke
parents:
diff changeset
   510
     *           is invoked on a non-value type <code>TypeCode</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   511
     *           object
02bb8761fcce Initial load
duke
parents:
diff changeset
   512
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
   513
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   514
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   515
02bb8761fcce Initial load
duke
parents:
diff changeset
   516
    abstract public short type_modifier() throws BadKind ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   517
02bb8761fcce Initial load
duke
parents:
diff changeset
   518
    /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   519
     * Returns the <code>TypeCode</code> object that describes the concrete base type
02bb8761fcce Initial load
duke
parents:
diff changeset
   520
     * of the value type that this <code>TypeCode</code> object describes.
02bb8761fcce Initial load
duke
parents:
diff changeset
   521
     * Returns null if it doesn't have a concrete base type.
02bb8761fcce Initial load
duke
parents:
diff changeset
   522
     *
02bb8761fcce Initial load
duke
parents:
diff changeset
   523
     * @return the <code>TypeCode</code> object that describes the
02bb8761fcce Initial load
duke
parents:
diff changeset
   524
     * concrete base type of the value type
02bb8761fcce Initial load
duke
parents:
diff changeset
   525
     * that this <code>TypeCode</code> object describes
02bb8761fcce Initial load
duke
parents:
diff changeset
   526
     * @throws org.omg.CORBA.TypeCodePackage.BadKind if this method
02bb8761fcce Initial load
duke
parents:
diff changeset
   527
     *           is invoked on a non-boxed value type <code>TypeCode</code> object
02bb8761fcce Initial load
duke
parents:
diff changeset
   528
     * @see <a href="package-summary.html#unimpl"><code>CORBA</code> package
02bb8761fcce Initial load
duke
parents:
diff changeset
   529
     *      comments for unimplemented features</a>
02bb8761fcce Initial load
duke
parents:
diff changeset
   530
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   531
02bb8761fcce Initial load
duke
parents:
diff changeset
   532
    abstract public TypeCode concrete_base_type() throws BadKind ;
02bb8761fcce Initial load
duke
parents:
diff changeset
   533
}