corba/src/share/classes/org/omg/CORBA/DefinitionKind.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) 1997, 2001, 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
/*
02bb8761fcce Initial load
duke
parents:
diff changeset
    27
 * File: ./org/omg/CORBA/DefinitionKind.java
02bb8761fcce Initial load
duke
parents:
diff changeset
    28
 * From: ./ir.idl
02bb8761fcce Initial load
duke
parents:
diff changeset
    29
 * Date: Fri Aug 28 16:03:31 1998
02bb8761fcce Initial load
duke
parents:
diff changeset
    30
 *   By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
02bb8761fcce Initial load
duke
parents:
diff changeset
    31
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    32
02bb8761fcce Initial load
duke
parents:
diff changeset
    33
package org.omg.CORBA;
02bb8761fcce Initial load
duke
parents:
diff changeset
    34
02bb8761fcce Initial load
duke
parents:
diff changeset
    35
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    36
* The class that provides the constants used to identify the type of an
02bb8761fcce Initial load
duke
parents:
diff changeset
    37
* Interface Repository object.  This class contains two kinds of constants,
02bb8761fcce Initial load
duke
parents:
diff changeset
    38
* those that are an <code>int</code> and those that are an instance of the class
02bb8761fcce Initial load
duke
parents:
diff changeset
    39
* <code>DefinitionKind</code>.  This class provides the method
02bb8761fcce Initial load
duke
parents:
diff changeset
    40
* <code>from_int</code>, which given one
02bb8761fcce Initial load
duke
parents:
diff changeset
    41
* of the <code>int</code> constants, creates the corresponding
02bb8761fcce Initial load
duke
parents:
diff changeset
    42
* <code>DefinitionKind</code> instance.  It also provides the method
02bb8761fcce Initial load
duke
parents:
diff changeset
    43
* <code>value</code>, which returns the <code>int</code> constant that
02bb8761fcce Initial load
duke
parents:
diff changeset
    44
* is the value for a <code>DefinitionKind</code> instance.
02bb8761fcce Initial load
duke
parents:
diff changeset
    45
*
02bb8761fcce Initial load
duke
parents:
diff changeset
    46
* @see IRObject
02bb8761fcce Initial load
duke
parents:
diff changeset
    47
*/
02bb8761fcce Initial load
duke
parents:
diff changeset
    48
02bb8761fcce Initial load
duke
parents:
diff changeset
    49
public class DefinitionKind implements org.omg.CORBA.portable.IDLEntity {
02bb8761fcce Initial load
duke
parents:
diff changeset
    50
02bb8761fcce Initial load
duke
parents:
diff changeset
    51
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    52
 * The constant that indicates that an Interface Repository object
02bb8761fcce Initial load
duke
parents:
diff changeset
    53
 * does not have a definition kind.
02bb8761fcce Initial load
duke
parents:
diff changeset
    54
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    55
        public static final int _dk_none = 0,
02bb8761fcce Initial load
duke
parents:
diff changeset
    56
02bb8761fcce Initial load
duke
parents:
diff changeset
    57
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    58
 * The constant that indicates that the type of an Interface Repository object
02bb8761fcce Initial load
duke
parents:
diff changeset
    59
 * may be any type.
02bb8761fcce Initial load
duke
parents:
diff changeset
    60
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    61
        _dk_all = 1,
02bb8761fcce Initial load
duke
parents:
diff changeset
    62
02bb8761fcce Initial load
duke
parents:
diff changeset
    63
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    64
 * The constant that indicates that an Interface Repository object is an
02bb8761fcce Initial load
duke
parents:
diff changeset
    65
 * attribute.
02bb8761fcce Initial load
duke
parents:
diff changeset
    66
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    67
        _dk_Attribute = 2,
02bb8761fcce Initial load
duke
parents:
diff changeset
    68
02bb8761fcce Initial load
duke
parents:
diff changeset
    69
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    70
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
    71
 * constant.
02bb8761fcce Initial load
duke
parents:
diff changeset
    72
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    73
        _dk_Constant = 3,
02bb8761fcce Initial load
duke
parents:
diff changeset
    74
02bb8761fcce Initial load
duke
parents:
diff changeset
    75
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    76
 * The constant that indicates that an Interface Repository object is an
02bb8761fcce Initial load
duke
parents:
diff changeset
    77
 * exception.
02bb8761fcce Initial load
duke
parents:
diff changeset
    78
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    79
02bb8761fcce Initial load
duke
parents:
diff changeset
    80
        _dk_Exception = 4,
02bb8761fcce Initial load
duke
parents:
diff changeset
    81
02bb8761fcce Initial load
duke
parents:
diff changeset
    82
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    83
 * The constant that indicates that an Interface Repository object is an
02bb8761fcce Initial load
duke
parents:
diff changeset
    84
 * interface.
02bb8761fcce Initial load
duke
parents:
diff changeset
    85
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    86
02bb8761fcce Initial load
duke
parents:
diff changeset
    87
        _dk_Interface = 5,
02bb8761fcce Initial load
duke
parents:
diff changeset
    88
02bb8761fcce Initial load
duke
parents:
diff changeset
    89
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    90
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
    91
 * module.
02bb8761fcce Initial load
duke
parents:
diff changeset
    92
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
    93
02bb8761fcce Initial load
duke
parents:
diff changeset
    94
        _dk_Module = 6,
02bb8761fcce Initial load
duke
parents:
diff changeset
    95
02bb8761fcce Initial load
duke
parents:
diff changeset
    96
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
    97
 * The constant that indicates that an Interface Repository object is an
02bb8761fcce Initial load
duke
parents:
diff changeset
    98
 * operation.
02bb8761fcce Initial load
duke
parents:
diff changeset
    99
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   100
02bb8761fcce Initial load
duke
parents:
diff changeset
   101
        _dk_Operation = 7,
02bb8761fcce Initial load
duke
parents:
diff changeset
   102
02bb8761fcce Initial load
duke
parents:
diff changeset
   103
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   104
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   105
 * Typedef.
02bb8761fcce Initial load
duke
parents:
diff changeset
   106
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   107
02bb8761fcce Initial load
duke
parents:
diff changeset
   108
        _dk_Typedef = 8,
02bb8761fcce Initial load
duke
parents:
diff changeset
   109
02bb8761fcce Initial load
duke
parents:
diff changeset
   110
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   111
 * The constant that indicates that an Interface Repository object is an
02bb8761fcce Initial load
duke
parents:
diff changeset
   112
 * Alias.
02bb8761fcce Initial load
duke
parents:
diff changeset
   113
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   114
02bb8761fcce Initial load
duke
parents:
diff changeset
   115
        _dk_Alias = 9,
02bb8761fcce Initial load
duke
parents:
diff changeset
   116
02bb8761fcce Initial load
duke
parents:
diff changeset
   117
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   118
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   119
 * Struct.
02bb8761fcce Initial load
duke
parents:
diff changeset
   120
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   121
02bb8761fcce Initial load
duke
parents:
diff changeset
   122
        _dk_Struct = 10,
02bb8761fcce Initial load
duke
parents:
diff changeset
   123
02bb8761fcce Initial load
duke
parents:
diff changeset
   124
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   125
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   126
 * Union.
02bb8761fcce Initial load
duke
parents:
diff changeset
   127
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   128
02bb8761fcce Initial load
duke
parents:
diff changeset
   129
        _dk_Union = 11,
02bb8761fcce Initial load
duke
parents:
diff changeset
   130
02bb8761fcce Initial load
duke
parents:
diff changeset
   131
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   132
 * The constant that indicates that an Interface Repository object is an
02bb8761fcce Initial load
duke
parents:
diff changeset
   133
 * Enum.
02bb8761fcce Initial load
duke
parents:
diff changeset
   134
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   135
02bb8761fcce Initial load
duke
parents:
diff changeset
   136
        _dk_Enum = 12,
02bb8761fcce Initial load
duke
parents:
diff changeset
   137
02bb8761fcce Initial load
duke
parents:
diff changeset
   138
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   139
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   140
 * Primitive.
02bb8761fcce Initial load
duke
parents:
diff changeset
   141
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   142
02bb8761fcce Initial load
duke
parents:
diff changeset
   143
        _dk_Primitive = 13,
02bb8761fcce Initial load
duke
parents:
diff changeset
   144
02bb8761fcce Initial load
duke
parents:
diff changeset
   145
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   146
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   147
 * String.
02bb8761fcce Initial load
duke
parents:
diff changeset
   148
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   149
02bb8761fcce Initial load
duke
parents:
diff changeset
   150
        _dk_String = 14,
02bb8761fcce Initial load
duke
parents:
diff changeset
   151
02bb8761fcce Initial load
duke
parents:
diff changeset
   152
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   153
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   154
 * Sequence.
02bb8761fcce Initial load
duke
parents:
diff changeset
   155
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   156
02bb8761fcce Initial load
duke
parents:
diff changeset
   157
        _dk_Sequence = 15,
02bb8761fcce Initial load
duke
parents:
diff changeset
   158
02bb8761fcce Initial load
duke
parents:
diff changeset
   159
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   160
 * The constant that indicates that an Interface Repository object is an
02bb8761fcce Initial load
duke
parents:
diff changeset
   161
 * Array.
02bb8761fcce Initial load
duke
parents:
diff changeset
   162
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   163
02bb8761fcce Initial load
duke
parents:
diff changeset
   164
        _dk_Array = 16,
02bb8761fcce Initial load
duke
parents:
diff changeset
   165
02bb8761fcce Initial load
duke
parents:
diff changeset
   166
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   167
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   168
 * Repository.
02bb8761fcce Initial load
duke
parents:
diff changeset
   169
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   170
02bb8761fcce Initial load
duke
parents:
diff changeset
   171
        _dk_Repository = 17,
02bb8761fcce Initial load
duke
parents:
diff changeset
   172
02bb8761fcce Initial load
duke
parents:
diff changeset
   173
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   174
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   175
 * Wstring.
02bb8761fcce Initial load
duke
parents:
diff changeset
   176
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   177
02bb8761fcce Initial load
duke
parents:
diff changeset
   178
        _dk_Wstring = 18,
02bb8761fcce Initial load
duke
parents:
diff changeset
   179
02bb8761fcce Initial load
duke
parents:
diff changeset
   180
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   181
 * The constant that indicates that an Interface Repository object is of type
02bb8761fcce Initial load
duke
parents:
diff changeset
   182
 * Fixed.
02bb8761fcce Initial load
duke
parents:
diff changeset
   183
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   184
02bb8761fcce Initial load
duke
parents:
diff changeset
   185
        _dk_Fixed = 19,
02bb8761fcce Initial load
duke
parents:
diff changeset
   186
02bb8761fcce Initial load
duke
parents:
diff changeset
   187
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   188
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   189
 * Value.
02bb8761fcce Initial load
duke
parents:
diff changeset
   190
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   191
02bb8761fcce Initial load
duke
parents:
diff changeset
   192
        _dk_Value = 20,
02bb8761fcce Initial load
duke
parents:
diff changeset
   193
02bb8761fcce Initial load
duke
parents:
diff changeset
   194
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   195
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   196
 * ValueBox.
02bb8761fcce Initial load
duke
parents:
diff changeset
   197
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   198
02bb8761fcce Initial load
duke
parents:
diff changeset
   199
        _dk_ValueBox = 21,
02bb8761fcce Initial load
duke
parents:
diff changeset
   200
02bb8761fcce Initial load
duke
parents:
diff changeset
   201
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   202
 * The constant that indicates that an Interface Repository object is a
02bb8761fcce Initial load
duke
parents:
diff changeset
   203
 * ValueMember.
02bb8761fcce Initial load
duke
parents:
diff changeset
   204
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   205
02bb8761fcce Initial load
duke
parents:
diff changeset
   206
        _dk_ValueMember = 22,
02bb8761fcce Initial load
duke
parents:
diff changeset
   207
02bb8761fcce Initial load
duke
parents:
diff changeset
   208
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   209
 * The constant that indicates that an Interface Repository object is of type
02bb8761fcce Initial load
duke
parents:
diff changeset
   210
 * Native.
02bb8761fcce Initial load
duke
parents:
diff changeset
   211
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   212
02bb8761fcce Initial load
duke
parents:
diff changeset
   213
        _dk_Native = 23,
02bb8761fcce Initial load
duke
parents:
diff changeset
   214
02bb8761fcce Initial load
duke
parents:
diff changeset
   215
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   216
 * The constant that indicates that an Interface Repository object
02bb8761fcce Initial load
duke
parents:
diff changeset
   217
 * is representing an abstract interface.
02bb8761fcce Initial load
duke
parents:
diff changeset
   218
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   219
        _dk_AbstractInterface = 24;
02bb8761fcce Initial load
duke
parents:
diff changeset
   220
02bb8761fcce Initial load
duke
parents:
diff changeset
   221
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   222
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   223
 * Interface Repository object has no definition kind.
02bb8761fcce Initial load
duke
parents:
diff changeset
   224
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   225
02bb8761fcce Initial load
duke
parents:
diff changeset
   226
    public static final DefinitionKind dk_none = new DefinitionKind(_dk_none);
02bb8761fcce Initial load
duke
parents:
diff changeset
   227
02bb8761fcce Initial load
duke
parents:
diff changeset
   228
     /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   229
         * The wildcard <code>DefinitionKind</code> constant, useful
02bb8761fcce Initial load
duke
parents:
diff changeset
   230
         * in all occasions where any
02bb8761fcce Initial load
duke
parents:
diff changeset
   231
     * <code>DefinitionKind</code> is appropriate. The Container's
02bb8761fcce Initial load
duke
parents:
diff changeset
   232
         * <code>contents</code> method
02bb8761fcce Initial load
duke
parents:
diff changeset
   233
     * makes use of this constant to return all contained definitions of any kind.
02bb8761fcce Initial load
duke
parents:
diff changeset
   234
         */
02bb8761fcce Initial load
duke
parents:
diff changeset
   235
02bb8761fcce Initial load
duke
parents:
diff changeset
   236
    public static final DefinitionKind dk_all = new DefinitionKind(_dk_all);
02bb8761fcce Initial load
duke
parents:
diff changeset
   237
02bb8761fcce Initial load
duke
parents:
diff changeset
   238
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   239
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   240
 * Interface Repository object is an Attribute.
02bb8761fcce Initial load
duke
parents:
diff changeset
   241
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   242
02bb8761fcce Initial load
duke
parents:
diff changeset
   243
    public static final DefinitionKind dk_Attribute = new DefinitionKind(_dk_Attribute);
02bb8761fcce Initial load
duke
parents:
diff changeset
   244
02bb8761fcce Initial load
duke
parents:
diff changeset
   245
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   246
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   247
 * Interface Repository object is a constant.
02bb8761fcce Initial load
duke
parents:
diff changeset
   248
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   249
02bb8761fcce Initial load
duke
parents:
diff changeset
   250
    public static final DefinitionKind dk_Constant = new DefinitionKind(_dk_Constant);
02bb8761fcce Initial load
duke
parents:
diff changeset
   251
02bb8761fcce Initial load
duke
parents:
diff changeset
   252
02bb8761fcce Initial load
duke
parents:
diff changeset
   253
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   254
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   255
 * Interface Repository object is an Exception.
02bb8761fcce Initial load
duke
parents:
diff changeset
   256
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   257
02bb8761fcce Initial load
duke
parents:
diff changeset
   258
    public static final DefinitionKind dk_Exception = new DefinitionKind(_dk_Exception);
02bb8761fcce Initial load
duke
parents:
diff changeset
   259
02bb8761fcce Initial load
duke
parents:
diff changeset
   260
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   261
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   262
 * Interface Repository object is an Interface.
02bb8761fcce Initial load
duke
parents:
diff changeset
   263
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   264
02bb8761fcce Initial load
duke
parents:
diff changeset
   265
    public static final DefinitionKind dk_Interface = new DefinitionKind(_dk_Interface);
02bb8761fcce Initial load
duke
parents:
diff changeset
   266
02bb8761fcce Initial load
duke
parents:
diff changeset
   267
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   268
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   269
 * Interface Repository object is a Module.
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 static final DefinitionKind dk_Module = new DefinitionKind(_dk_Module);
02bb8761fcce Initial load
duke
parents:
diff changeset
   273
02bb8761fcce Initial load
duke
parents:
diff changeset
   274
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   275
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   276
 * Interface Repository object is an Operation.
02bb8761fcce Initial load
duke
parents:
diff changeset
   277
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   278
02bb8761fcce Initial load
duke
parents:
diff changeset
   279
    public static final DefinitionKind dk_Operation = new DefinitionKind(_dk_Operation);
02bb8761fcce Initial load
duke
parents:
diff changeset
   280
02bb8761fcce Initial load
duke
parents:
diff changeset
   281
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   282
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   283
 * Interface Repository object is a Typedef.
02bb8761fcce Initial load
duke
parents:
diff changeset
   284
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   285
02bb8761fcce Initial load
duke
parents:
diff changeset
   286
    public static final DefinitionKind dk_Typedef = new DefinitionKind(_dk_Typedef);
02bb8761fcce Initial load
duke
parents:
diff changeset
   287
02bb8761fcce Initial load
duke
parents:
diff changeset
   288
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   289
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   290
 * Interface Repository object is an Alias.
02bb8761fcce Initial load
duke
parents:
diff changeset
   291
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   292
02bb8761fcce Initial load
duke
parents:
diff changeset
   293
    public static final DefinitionKind dk_Alias = new DefinitionKind(_dk_Alias);
02bb8761fcce Initial load
duke
parents:
diff changeset
   294
02bb8761fcce Initial load
duke
parents:
diff changeset
   295
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   296
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   297
 * Interface Repository object is a Struct.
02bb8761fcce Initial load
duke
parents:
diff changeset
   298
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   299
02bb8761fcce Initial load
duke
parents:
diff changeset
   300
    public static final DefinitionKind dk_Struct = new DefinitionKind(_dk_Struct);
02bb8761fcce Initial load
duke
parents:
diff changeset
   301
02bb8761fcce Initial load
duke
parents:
diff changeset
   302
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   303
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   304
 * Interface Repository object is a Union.
02bb8761fcce Initial load
duke
parents:
diff changeset
   305
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   306
02bb8761fcce Initial load
duke
parents:
diff changeset
   307
    public static final DefinitionKind dk_Union = new DefinitionKind(_dk_Union);
02bb8761fcce Initial load
duke
parents:
diff changeset
   308
02bb8761fcce Initial load
duke
parents:
diff changeset
   309
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   310
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   311
 * Interface Repository object is an Enum.
02bb8761fcce Initial load
duke
parents:
diff changeset
   312
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   313
02bb8761fcce Initial load
duke
parents:
diff changeset
   314
    public static final DefinitionKind dk_Enum = new DefinitionKind(_dk_Enum);
02bb8761fcce Initial load
duke
parents:
diff changeset
   315
02bb8761fcce Initial load
duke
parents:
diff changeset
   316
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   317
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   318
 * Interface Repository object is a Primitive.
02bb8761fcce Initial load
duke
parents:
diff changeset
   319
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   320
02bb8761fcce Initial load
duke
parents:
diff changeset
   321
    public static final DefinitionKind dk_Primitive = new DefinitionKind(_dk_Primitive);
02bb8761fcce Initial load
duke
parents:
diff changeset
   322
02bb8761fcce Initial load
duke
parents:
diff changeset
   323
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   324
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   325
 * Interface Repository object is a String.
02bb8761fcce Initial load
duke
parents:
diff changeset
   326
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   327
02bb8761fcce Initial load
duke
parents:
diff changeset
   328
    public static final DefinitionKind dk_String = new DefinitionKind(_dk_String);
02bb8761fcce Initial load
duke
parents:
diff changeset
   329
02bb8761fcce Initial load
duke
parents:
diff changeset
   330
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   331
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   332
 * Interface Repository object is a Sequence.
02bb8761fcce Initial load
duke
parents:
diff changeset
   333
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   334
02bb8761fcce Initial load
duke
parents:
diff changeset
   335
    public static final DefinitionKind dk_Sequence = new DefinitionKind(_dk_Sequence);
02bb8761fcce Initial load
duke
parents:
diff changeset
   336
02bb8761fcce Initial load
duke
parents:
diff changeset
   337
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   338
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   339
 * Interface Repository object is an Array.
02bb8761fcce Initial load
duke
parents:
diff changeset
   340
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   341
02bb8761fcce Initial load
duke
parents:
diff changeset
   342
    public static final DefinitionKind dk_Array = new DefinitionKind(_dk_Array);
02bb8761fcce Initial load
duke
parents:
diff changeset
   343
02bb8761fcce Initial load
duke
parents:
diff changeset
   344
02bb8761fcce Initial load
duke
parents:
diff changeset
   345
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   346
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   347
 * Interface Repository object is a Repository.
02bb8761fcce Initial load
duke
parents:
diff changeset
   348
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   349
02bb8761fcce Initial load
duke
parents:
diff changeset
   350
    public static final DefinitionKind dk_Repository = new DefinitionKind(_dk_Repository);
02bb8761fcce Initial load
duke
parents:
diff changeset
   351
02bb8761fcce Initial load
duke
parents:
diff changeset
   352
02bb8761fcce Initial load
duke
parents:
diff changeset
   353
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   354
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   355
 * Interface Repository object is a Wstring.
02bb8761fcce Initial load
duke
parents:
diff changeset
   356
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   357
02bb8761fcce Initial load
duke
parents:
diff changeset
   358
    public static final DefinitionKind dk_Wstring = new DefinitionKind(_dk_Wstring);
02bb8761fcce Initial load
duke
parents:
diff changeset
   359
02bb8761fcce Initial load
duke
parents:
diff changeset
   360
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   361
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   362
 * Interface Repository object is a Fixed value.
02bb8761fcce Initial load
duke
parents:
diff changeset
   363
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   364
02bb8761fcce Initial load
duke
parents:
diff changeset
   365
    public static final DefinitionKind dk_Fixed = new DefinitionKind(_dk_Fixed);
02bb8761fcce Initial load
duke
parents:
diff changeset
   366
02bb8761fcce Initial load
duke
parents:
diff changeset
   367
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   368
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   369
 * Interface Repository object is a Value.
02bb8761fcce Initial load
duke
parents:
diff changeset
   370
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   371
02bb8761fcce Initial load
duke
parents:
diff changeset
   372
    public static final DefinitionKind dk_Value = new DefinitionKind(_dk_Value);
02bb8761fcce Initial load
duke
parents:
diff changeset
   373
02bb8761fcce Initial load
duke
parents:
diff changeset
   374
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   375
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   376
 * Interface Repository object is a ValueBox.
02bb8761fcce Initial load
duke
parents:
diff changeset
   377
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   378
02bb8761fcce Initial load
duke
parents:
diff changeset
   379
    public static final DefinitionKind dk_ValueBox = new DefinitionKind(_dk_ValueBox);
02bb8761fcce Initial load
duke
parents:
diff changeset
   380
02bb8761fcce Initial load
duke
parents:
diff changeset
   381
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   382
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   383
 * Interface Repository object is a ValueMember.
02bb8761fcce Initial load
duke
parents:
diff changeset
   384
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   385
02bb8761fcce Initial load
duke
parents:
diff changeset
   386
    public static final DefinitionKind dk_ValueMember = new DefinitionKind(_dk_ValueMember);
02bb8761fcce Initial load
duke
parents:
diff changeset
   387
02bb8761fcce Initial load
duke
parents:
diff changeset
   388
02bb8761fcce Initial load
duke
parents:
diff changeset
   389
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   390
 * The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   391
 * Interface Repository object is a Native value.
02bb8761fcce Initial load
duke
parents:
diff changeset
   392
 */
02bb8761fcce Initial load
duke
parents:
diff changeset
   393
02bb8761fcce Initial load
duke
parents:
diff changeset
   394
    public static final DefinitionKind dk_Native = new DefinitionKind(_dk_Native);
02bb8761fcce Initial load
duke
parents:
diff changeset
   395
02bb8761fcce Initial load
duke
parents:
diff changeset
   396
02bb8761fcce Initial load
duke
parents:
diff changeset
   397
/**
02bb8761fcce Initial load
duke
parents:
diff changeset
   398
* The static instance of <code>DefinitionKind</code> indicating that an
02bb8761fcce Initial load
duke
parents:
diff changeset
   399
* Interface Repository object represents an abstract interface.
02bb8761fcce Initial load
duke
parents:
diff changeset
   400
*/
02bb8761fcce Initial load
duke
parents:
diff changeset
   401
    public static final DefinitionKind dk_AbstractInterface = new DefinitionKind(_dk_AbstractInterface);
02bb8761fcce Initial load
duke
parents:
diff changeset
   402
02bb8761fcce Initial load
duke
parents:
diff changeset
   403
02bb8761fcce Initial load
duke
parents:
diff changeset
   404
     /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   405
     * Returns the <code>int</code> constant identifying the type of an IR object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   406
     * @return the <code>int</code> constant from the class
02bb8761fcce Initial load
duke
parents:
diff changeset
   407
         * <code>DefinitionKind</code> that is the value of this
02bb8761fcce Initial load
duke
parents:
diff changeset
   408
         * <code>DefinitionKind</code> instance
02bb8761fcce Initial load
duke
parents:
diff changeset
   409
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   410
02bb8761fcce Initial load
duke
parents:
diff changeset
   411
    public int value() {
02bb8761fcce Initial load
duke
parents:
diff changeset
   412
        return _value;
02bb8761fcce Initial load
duke
parents:
diff changeset
   413
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   414
02bb8761fcce Initial load
duke
parents:
diff changeset
   415
02bb8761fcce Initial load
duke
parents:
diff changeset
   416
     /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   417
     * Creates a <code>DefinitionKind</code> instance corresponding to the given code
02bb8761fcce Initial load
duke
parents:
diff changeset
   418
.
02bb8761fcce Initial load
duke
parents:
diff changeset
   419
     * @param i one of the <code>int</code> constants from the class
02bb8761fcce Initial load
duke
parents:
diff changeset
   420
         * <code>DefinitionKind</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   421
         * @return the <code>DefinitionKind</code> instance corresponding
02bb8761fcce Initial load
duke
parents:
diff changeset
   422
         *         to the given code
02bb8761fcce Initial load
duke
parents:
diff changeset
   423
         * @throws org.omg.CORBA.BAD_PARAM if the given parameter is not
02bb8761fcce Initial load
duke
parents:
diff changeset
   424
 one
02bb8761fcce Initial load
duke
parents:
diff changeset
   425
         *         of the <code>int</code> constants from the class
02bb8761fcce Initial load
duke
parents:
diff changeset
   426
         *         <code>DefinitionKind</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   427
     */
02bb8761fcce Initial load
duke
parents:
diff changeset
   428
02bb8761fcce Initial load
duke
parents:
diff changeset
   429
    public static DefinitionKind from_int(int i) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   430
        switch (i) {
02bb8761fcce Initial load
duke
parents:
diff changeset
   431
        case _dk_none:
02bb8761fcce Initial load
duke
parents:
diff changeset
   432
            return dk_none;
02bb8761fcce Initial load
duke
parents:
diff changeset
   433
        case _dk_all:
02bb8761fcce Initial load
duke
parents:
diff changeset
   434
            return dk_all;
02bb8761fcce Initial load
duke
parents:
diff changeset
   435
        case _dk_Attribute:
02bb8761fcce Initial load
duke
parents:
diff changeset
   436
            return dk_Attribute;
02bb8761fcce Initial load
duke
parents:
diff changeset
   437
        case _dk_Constant:
02bb8761fcce Initial load
duke
parents:
diff changeset
   438
            return dk_Constant;
02bb8761fcce Initial load
duke
parents:
diff changeset
   439
        case _dk_Exception:
02bb8761fcce Initial load
duke
parents:
diff changeset
   440
            return dk_Exception;
02bb8761fcce Initial load
duke
parents:
diff changeset
   441
        case _dk_Interface:
02bb8761fcce Initial load
duke
parents:
diff changeset
   442
            return dk_Interface;
02bb8761fcce Initial load
duke
parents:
diff changeset
   443
        case _dk_Module:
02bb8761fcce Initial load
duke
parents:
diff changeset
   444
            return dk_Module;
02bb8761fcce Initial load
duke
parents:
diff changeset
   445
        case _dk_Operation:
02bb8761fcce Initial load
duke
parents:
diff changeset
   446
            return dk_Operation;
02bb8761fcce Initial load
duke
parents:
diff changeset
   447
        case _dk_Typedef:
02bb8761fcce Initial load
duke
parents:
diff changeset
   448
            return dk_Typedef;
02bb8761fcce Initial load
duke
parents:
diff changeset
   449
        case _dk_Alias:
02bb8761fcce Initial load
duke
parents:
diff changeset
   450
            return dk_Alias;
02bb8761fcce Initial load
duke
parents:
diff changeset
   451
        case _dk_Struct:
02bb8761fcce Initial load
duke
parents:
diff changeset
   452
            return dk_Struct;
02bb8761fcce Initial load
duke
parents:
diff changeset
   453
        case _dk_Union:
02bb8761fcce Initial load
duke
parents:
diff changeset
   454
            return dk_Union;
02bb8761fcce Initial load
duke
parents:
diff changeset
   455
        case _dk_Enum:
02bb8761fcce Initial load
duke
parents:
diff changeset
   456
            return dk_Enum;
02bb8761fcce Initial load
duke
parents:
diff changeset
   457
        case _dk_Primitive:
02bb8761fcce Initial load
duke
parents:
diff changeset
   458
            return dk_Primitive;
02bb8761fcce Initial load
duke
parents:
diff changeset
   459
        case _dk_String:
02bb8761fcce Initial load
duke
parents:
diff changeset
   460
            return dk_String;
02bb8761fcce Initial load
duke
parents:
diff changeset
   461
        case _dk_Sequence:
02bb8761fcce Initial load
duke
parents:
diff changeset
   462
            return dk_Sequence;
02bb8761fcce Initial load
duke
parents:
diff changeset
   463
        case _dk_Array:
02bb8761fcce Initial load
duke
parents:
diff changeset
   464
            return dk_Array;
02bb8761fcce Initial load
duke
parents:
diff changeset
   465
        case _dk_Repository:
02bb8761fcce Initial load
duke
parents:
diff changeset
   466
            return dk_Repository;
02bb8761fcce Initial load
duke
parents:
diff changeset
   467
        case _dk_Wstring:
02bb8761fcce Initial load
duke
parents:
diff changeset
   468
            return dk_Wstring;
02bb8761fcce Initial load
duke
parents:
diff changeset
   469
        case _dk_Fixed:
02bb8761fcce Initial load
duke
parents:
diff changeset
   470
            return dk_Fixed;
02bb8761fcce Initial load
duke
parents:
diff changeset
   471
        case _dk_Value:
02bb8761fcce Initial load
duke
parents:
diff changeset
   472
            return dk_Value;
02bb8761fcce Initial load
duke
parents:
diff changeset
   473
        case _dk_ValueBox:
02bb8761fcce Initial load
duke
parents:
diff changeset
   474
            return dk_ValueBox;
02bb8761fcce Initial load
duke
parents:
diff changeset
   475
        case _dk_ValueMember:
02bb8761fcce Initial load
duke
parents:
diff changeset
   476
            return dk_ValueMember;
02bb8761fcce Initial load
duke
parents:
diff changeset
   477
        case _dk_Native:
02bb8761fcce Initial load
duke
parents:
diff changeset
   478
            return dk_Native;
02bb8761fcce Initial load
duke
parents:
diff changeset
   479
        default:
02bb8761fcce Initial load
duke
parents:
diff changeset
   480
            throw new org.omg.CORBA.BAD_PARAM();
02bb8761fcce Initial load
duke
parents:
diff changeset
   481
        }
02bb8761fcce Initial load
duke
parents:
diff changeset
   482
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   483
02bb8761fcce Initial load
duke
parents:
diff changeset
   484
   /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   485
    * Constructs a <code>DefinitionKind</code> object with its <code>_value</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   486
    * field initialized with the given value.
02bb8761fcce Initial load
duke
parents:
diff changeset
   487
    * @param _value one of the <code>int</code> constants defined in the
02bb8761fcce Initial load
duke
parents:
diff changeset
   488
    *                   class <code>DefinitionKind</code>
02bb8761fcce Initial load
duke
parents:
diff changeset
   489
    */
02bb8761fcce Initial load
duke
parents:
diff changeset
   490
02bb8761fcce Initial load
duke
parents:
diff changeset
   491
    protected DefinitionKind(int _value){
02bb8761fcce Initial load
duke
parents:
diff changeset
   492
        this._value = _value;
02bb8761fcce Initial load
duke
parents:
diff changeset
   493
    }
02bb8761fcce Initial load
duke
parents:
diff changeset
   494
02bb8761fcce Initial load
duke
parents:
diff changeset
   495
     /**
02bb8761fcce Initial load
duke
parents:
diff changeset
   496
      * The field that holds a value for a <code>DefinitionKind</code> object.
02bb8761fcce Initial load
duke
parents:
diff changeset
   497
      * @serial
02bb8761fcce Initial load
duke
parents:
diff changeset
   498
      */
02bb8761fcce Initial load
duke
parents:
diff changeset
   499
02bb8761fcce Initial load
duke
parents:
diff changeset
   500
    private int _value;
02bb8761fcce Initial load
duke
parents:
diff changeset
   501
}