01: /***** Copyright (c) 1999-2000 Object Management Group. Unlimited rights to
02: duplicate and use this code are hereby granted provided that this
03: copyright notice is included.
04: *****/
05:
06: /***** This class is generated by an IDL compiler and is ORB-vendor specific.
07: A "dummy" implementation is provided so that the "official" org.omg.*
08: packages may be compiled. In order to actually use a Java ORB,
09: the ORB vendor's implementation will provide a "real"
10: implementation of the class.
11:
12: In order to be conformant the class shall support the signatures
13: specified here, but will have an orb-specific implementation.
14:
15: The class may support additional vendor specific functionality.
16: It shall have at least the inheritance relationships specified
17: here. Any additional (vendor specific) inheritance relationships may
18: only be with other classes and interfaces that are guaranteed to be
19: present in the JDK core.
20: *****/package org.omg.PortableServer;
21:
22: public class RequestProcessingPolicyValue implements
23: org.omg.CORBA.portable.IDLEntity {
24:
25: public static final int _USE_ACTIVE_OBJECT_MAP_ONLY = 0;
26: public static final RequestProcessingPolicyValue USE_ACTIVE_OBJECT_MAP_ONLY = new RequestProcessingPolicyValue(
27: _USE_ACTIVE_OBJECT_MAP_ONLY);
28:
29: public static final int _USE_DEFAULT_SERVANT = 1;
30: public static final RequestProcessingPolicyValue USE_DEFAULT_SERVANT = new RequestProcessingPolicyValue(
31: _USE_DEFAULT_SERVANT);
32:
33: public static final int _USE_SERVANT_MANAGER = 2;
34: public static final RequestProcessingPolicyValue USE_SERVANT_MANAGER = new RequestProcessingPolicyValue(
35: _USE_SERVANT_MANAGER);
36:
37: public int value() {
38: throw new org.omg.CORBA.NO_IMPLEMENT();
39: }
40:
41: public static RequestProcessingPolicyValue from_int(int val)
42: /* Issue 3669 throws org.omg.CORBA.BAD_PARAM */{
43: switch (val) {
44: case _USE_ACTIVE_OBJECT_MAP_ONLY:
45: return USE_ACTIVE_OBJECT_MAP_ONLY;
46: case _USE_DEFAULT_SERVANT:
47: return USE_DEFAULT_SERVANT;
48: case _USE_SERVANT_MANAGER:
49: return USE_SERVANT_MANAGER;
50: default:
51: throw new org.omg.CORBA.BAD_PARAM();
52: }
53: }
54:
55: protected RequestProcessingPolicyValue(int _value) {
56: throw new org.omg.CORBA.NO_IMPLEMENT();
57: }
58:
59: }
|