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 IdAssignmentPolicyValue implements
23: org.omg.CORBA.portable.IDLEntity {
24:
25: public static final int _USER_ID = 0;
26: public static final IdAssignmentPolicyValue USER_ID = new IdAssignmentPolicyValue(
27: _USER_ID);
28:
29: public static final int _SYSTEM_ID = 1;
30: public static final IdAssignmentPolicyValue SYSTEM_ID = new IdAssignmentPolicyValue(
31: _SYSTEM_ID);
32:
33: public int value() {
34: throw new org.omg.CORBA.NO_IMPLEMENT();
35: }
36:
37: public static IdAssignmentPolicyValue from_int(int val)
38: /* Issue 3669 throws org.omg.CORBA.BAD_PARAM */{
39: switch (val) {
40: case _USER_ID:
41: return USER_ID;
42: case _SYSTEM_ID:
43: return SYSTEM_ID;
44: default:
45: throw new org.omg.CORBA.BAD_PARAM();
46: }
47: }
48:
49: protected IdAssignmentPolicyValue(int _value) {
50: throw new org.omg.CORBA.NO_IMPLEMENT();
51: }
52:
53: }
|