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.POAManagerPackage;
21:
22: public class State implements org.omg.CORBA.portable.IDLEntity {
23:
24: public static final int _HOLDING = 0;
25: public static final State HOLDING = new State(_HOLDING);
26:
27: public static final int _ACTIVE = 1;
28: public static final State ACTIVE = new State(_ACTIVE);
29:
30: public static final int _DISCARDING = 2;
31: public static final State DISCARDING = new State(_DISCARDING);
32:
33: public static final int _INACTIVE = 3;
34: public static final State INACTIVE = new State(_INACTIVE);
35:
36: public int value() {
37: throw new org.omg.CORBA.NO_IMPLEMENT();
38: }
39:
40: public static State from_int(int val)
41: /* Issue 3669 throws org.omg.CORBA.BAD_PARAM */{
42: switch (val) {
43: case _HOLDING:
44: return HOLDING;
45: case _ACTIVE:
46: return ACTIVE;
47: case _DISCARDING:
48: return DISCARDING;
49: case _INACTIVE:
50: return INACTIVE;
51: default:
52: throw new org.omg.CORBA.BAD_PARAM();
53: }
54: }
55:
56: protected State(int _value) {
57: throw new org.omg.CORBA.NO_IMPLEMENT();
58: }
59:
60: }
|