1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
/*
 * %W% %E%
 *
 * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

/*
 * Licensed Materials - Property of IBM
 * RMI-IIOP v1.0
 * Copyright IBM Corp. 1998 1999  All Rights Reserved
 *
 * US Government Users Restricted Rights - Use, duplication or
 * disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 */

package sun.rmi.rmic.iiop;

import sun.tools.java.Identifier;

public interface Constants extends sun.rmi.rmic.Constants {

    // Identifiers for referenced classes:

    public static final Identifier idReplyHandler =
    Identifier.lookup("org.omg.CORBA.portable.ResponseHandler");
    public static final Identifier idStubBase =
    Identifier.lookup("javax.rmi.CORBA.Stub");
    public static final Identifier idTieBase =
    Identifier.lookup("org.omg.CORBA.portable.ObjectImpl");
    public static final Identifier idTieInterface =
    Identifier.lookup("javax.rmi.CORBA.Tie");
    public static final Identifier idPOAServantType =
    Identifier.lookup( "org.omg.PortableServer.Servant" ) ;
    public static final Identifier idDelegate =
    Identifier.lookup("org.omg.CORBA.portable.Delegate");
    public static final Identifier idOutputStream =
    Identifier.lookup("org.omg.CORBA.portable.OutputStream");
    public static final Identifier idExtOutputStream =
    Identifier.lookup("org.omg.CORBA_2_3.portable.OutputStream");
    public static final Identifier idInputStream =
    Identifier.lookup("org.omg.CORBA.portable.InputStream");
    public static final Identifier idExtInputStream =
    Identifier.lookup("org.omg.CORBA_2_3.portable.InputStream");
    public static final Identifier idSystemException =
    Identifier.lookup("org.omg.CORBA.SystemException");
    public static final Identifier idBadMethodException =
    Identifier.lookup("org.omg.CORBA.BAD_OPERATION");
    public static final Identifier idPortableUnknownException =
    Identifier.lookup("org.omg.CORBA.portable.UnknownException");
    public static final Identifier idApplicationException =
    Identifier.lookup("org.omg.CORBA.portable.ApplicationException");
    public static final Identifier idRemarshalException =
    Identifier.lookup("org.omg.CORBA.portable.RemarshalException");
    public static final Identifier idJavaIoExternalizable =
    Identifier.lookup("java.io.Externalizable");
    public static final Identifier idCorbaObject =
    Identifier.lookup("org.omg.CORBA.Object");
    public static final Identifier idCorbaORB =
    Identifier.lookup("org.omg.CORBA.ORB");
    public static final Identifier idClassDesc =
    Identifier.lookup("javax.rmi.CORBA.ClassDesc");
    public static final Identifier idJavaIoIOException =
    Identifier.lookup("java.io.IOException");
    public static final Identifier idIDLEntity =
    Identifier.lookup("org.omg.CORBA.portable.IDLEntity");
    public static final Identifier idValueBase =
    Identifier.lookup("org.omg.CORBA.portable.ValueBase");
    public static final Identifier idBoxedRMI =
    Identifier.lookup("org.omg.boxedRMI");
    public static final Identifier idBoxedIDL =
    Identifier.lookup("org.omg.boxedIDL");
    public static final Identifier idCorbaUserException =
    Identifier.lookup("org.omg.CORBA.UserException");


    // Identifiers for primitive types:

    public static final Identifier idBoolean =
    Identifier.lookup("boolean");
    public static final Identifier idByte =
    Identifier.lookup("byte");
    public static final Identifier idChar =
    Identifier.lookup("char");
    public static final Identifier idShort =
    Identifier.lookup("short");
    public static final Identifier idInt =
    Identifier.lookup("int");
    public static final Identifier idLong =
    Identifier.lookup("long");
    public static final Identifier idFloat =
    Identifier.lookup("float");
    public static final Identifier idDouble =
    Identifier.lookup("double");
    public static final Identifier idVoid =
    Identifier.lookup("void");

    // IndentingWriter constructor args:

    public static final int INDENT_STEP = 4;
    public static final int TAB_SIZE = Integer.MAX_VALUE; // No tabs.

    // Type status codes:
    
    public static final int STATUS_PENDING = 0;
    public static final int STATUS_VALID = 1;
    public static final int STATUS_INVALID = 2;
    
    // Java Names:

    public static final String NAME_SEPARATOR = ".";
    public static final String SERIAL_VERSION_UID = "serialVersionUID";

    // IDL Names:

    public static final String[] IDL_KEYWORDS = {
    "abstract",
    "any",
    "attribute",
    "boolean",
    "case",
    "char",
    "const",
    "context",
    "custom",
    "default",
    "double",
    "enum",
    "exception",
    "factory",
    "FALSE",
    "fixed",
    "float",
    "in",
    "inout",
    "interface",
    "long",
    "module",
    "native",
    "Object",
    "octet",
    "oneway",
    "out",
    "private",
    "public",
    "raises",
        "readonly",
    "sequence",
    "short",
    "string",
    "struct",
    "supports",
    "switch",
    "TRUE",
    "truncatable",
    "typedef",
        "unsigned",
    "union",
    "ValueBase",
    "valuetype",
    "void",
    "wchar",
    "wstring",
    };


    public static final String EXCEPTION_SUFFIX = "Exception";
    public static final String ERROR_SUFFIX = "Error";
    public static final String EX_SUFFIX = "Ex";
    
    public static final String IDL_REPOSITORY_ID_PREFIX = "IDL:";
    public static final String IDL_REPOSITORY_ID_VERSION = ":1.0";
        
    public static final String[]  IDL_CORBA_MODULE = {"CORBA"};
    public static final String[]  IDL_SEQUENCE_MODULE = {"org","omg","boxedRMI"};
    public static final String[]  IDL_BOXEDIDL_MODULE = {"org","omg","boxedIDL"};

    public static final String    IDL_CLASS = "ClassDesc";
    public static final String[]  IDL_CLASS_MODULE = {"javax","rmi","CORBA"};
 
    public static final String    IDL_IDLENTITY = "IDLEntity";
    public static final String    IDL_SERIALIZABLE = "Serializable";
    public static final String    IDL_EXTERNALIZABLE = "Externalizable";
    public static final String[]  IDL_JAVA_IO_MODULE = {"java","io"};
    public static final String[]  IDL_ORG_OMG_CORBA_MODULE = {"org","omg","CORBA"};
    public static final String[]  IDL_ORG_OMG_CORBA_PORTABLE_MODULE = {"org","omg","CORBA","portable"};
      
    public static final String    IDL_JAVA_LANG_OBJECT = "_Object";
    public static final String[]  IDL_JAVA_LANG_MODULE = {"java","lang"};
    
    public static final String    IDL_JAVA_RMI_REMOTE = "Remote";
    public static final String[]  IDL_JAVA_RMI_MODULE = {"java","rmi"};
   
    public static final String  IDL_SEQUENCE = "seq";

    public static final String  IDL_CONSTRUCTOR = "create";

    public static final String  IDL_NAME_SEPARATOR = "::";
    public static final String  IDL_BOOLEAN = "boolean";
    public static final String  IDL_BYTE = "octet";
    public static final String  IDL_CHAR = "wchar";
    public static final String  IDL_SHORT = "short";
    public static final String  IDL_INT = "long";
    public static final String  IDL_LONG = "long long";
    public static final String  IDL_FLOAT = "float";
    public static final String  IDL_DOUBLE = "double";
    public static final String  IDL_VOID = "void";

    public static final String  IDL_STRING = "WStringValue";
    public static final String  IDL_CONSTANT_STRING = "wstring";
    public static final String  IDL_CORBA_OBJECT = "Object";
    public static final String  IDL_ANY = "any";

    // File names:

    public static final String SOURCE_FILE_EXTENSION = ".java";
    public static final String IDL_FILE_EXTENSION = ".idl";

    // Type Codes:

    public static final int TYPE_VOID           = 0x00000001;   // In PrimitiveType
    public static final int TYPE_BOOLEAN        = 0x00000002;   // In PrimitiveType
    public static final int TYPE_BYTE           = 0x00000004;   // In PrimitiveType
    public static final int TYPE_CHAR           = 0x00000008;   // In PrimitiveType
    public static final int TYPE_SHORT          = 0x00000010;   // In PrimitiveType
    public static final int TYPE_INT            = 0x00000020;   // In PrimitiveType
    public static final int TYPE_LONG           = 0x00000040;   // In PrimitiveType
    public static final int TYPE_FLOAT          = 0x00000080;   // In PrimitiveType
    public static final int TYPE_DOUBLE         = 0x00000100;   // In PrimitiveType

    public static final int TYPE_STRING         = 0x00000200;   // In SpecialClassType (String)
    public static final int TYPE_ANY            = 0x00000400;   // In SpecialInterfaceType (Serializable,Externalizable)
    public static final int TYPE_CORBA_OBJECT   = 0x00000800;   // In SpecialInterfaceType (CORBA.Object,Remote)

    public static final int TYPE_REMOTE         = 0x00001000;   // In RemoteType
    public static final int TYPE_ABSTRACT       = 0x00002000;   // In AbstractType
    public static final int TYPE_NC_INTERFACE   = 0x00004000;   // In NCInterfaceType

    public static final int TYPE_VALUE          = 0x00008000;   // In ValueType
    public static final int TYPE_IMPLEMENTATION = 0x00010000;   // In ImplementationType
    public static final int TYPE_NC_CLASS       = 0x00020000;   // In NCClassType

    public static final int TYPE_ARRAY          = 0x00040000;   // In ArrayType
    public static final int TYPE_JAVA_RMI_REMOTE = 0x00080000;  // In SpecialInterfaceType

    // Type code masks:

    public static final int TYPE_NONE           = 0x00000000;
    public static final int TYPE_ALL            = 0xFFFFFFFF;
    public static final int TYPE_MASK           = 0x00FFFFFF;
    public static final int TM_MASK             = 0xFF000000;

    // Type code modifiers:

    public static final int TM_PRIMITIVE        = 0x01000000;
    public static final int TM_COMPOUND         = 0x02000000;
    public static final int TM_CLASS            = 0x04000000;
    public static final int TM_INTERFACE        = 0x08000000;
    public static final int TM_SPECIAL_CLASS    = 0x10000000;
    public static final int TM_SPECIAL_INTERFACE= 0x20000000;
    public static final int TM_NON_CONFORMING   = 0x40000000;
    public static final int TM_INNER            = 0x80000000;
    
    // Attribute kinds...
    
    public static final int ATTRIBUTE_NONE = 0;     // Not an attribute.
    public static final int ATTRIBUTE_IS = 1;       // read-only, had "is" prefix.
    public static final int ATTRIBUTE_GET = 2;      // read-only, had "get" prefix.
    public static final int ATTRIBUTE_IS_RW = 3;    // read-write, had "is" prefix.
    public static final int ATTRIBUTE_GET_RW = 4;   // read-write, had "get" prefix.
    public static final int ATTRIBUTE_SET = 5;      // had "set" prefix.
    
    public static final String[] ATTRIBUTE_WIRE_PREFIX = {
    "",
    "_get_",
    "_get_",
    "_get_",
    "_get_",
    "_set_",
    };
}
			
			

Browsed Source: [clear]