1 package CosTime;
2
3
4 /**
* CosTime/ComparisonType.java .
* Generated by the IDL-to-Java compiler (portable), version "3.1"
* from time.idl
* Freitag, 18. April 2003 11.06 Uhr CEST
*/
5
6 public class ComparisonType implements org.omg.CORBA.portable.IDLEntity
7 {
8 private int __value;
9 private static int __size = 2;
10 private static CosTime.ComparisonType[] __array = new CosTime.ComparisonType [__size];
11
12 public static final int _IntervalC = 0;
13 public static final CosTime.ComparisonType IntervalC = new CosTime.ComparisonType(_IntervalC);
14 public static final int _MidC = 1;
15 public static final CosTime.ComparisonType MidC = new CosTime.ComparisonType(_MidC);
16
17 public int value ()
18 {
19 return __value;
20 }
21
22 public static CosTime.ComparisonType from_int (int value)
23 {
24 if (value >= 0 && value < __size)
25 return __array[value];
26 else
27 throw new org.omg.CORBA.BAD_PARAM ();
28 }
29
30 protected ComparisonType (int value)
31 {
32 __value = value;
33 __array[__value] = this;
34 }
35 } // class ComparisonType
36