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 private int __value;
8 private static int __size = 2;
9 private static CosTime.ComparisonType[] __array = new CosTime.ComparisonType [__size];
10
11 public static final int _IntervalC = 0;
12 public static final CosTime.ComparisonType IntervalC = new CosTime.ComparisonType(_IntervalC);
13 public static final int _MidC = 1;
14 public static final CosTime.ComparisonType MidC = new CosTime.ComparisonType(_MidC);
15
16 public int value ()
17 {
18 return __value;
19 }
20
21 public static CosTime.ComparisonType from_int (int value)
22 {
23 if (value >= 0 && value < __size)
24 return __array[value];
25 else
throw new org.omg.CORBA.BAD_PARAM ();
26 }
27
28 protected ComparisonType (int value)
29 {
30 __value = value;
31 __array[__value] = this;
32 }
33 } // class ComparisonType
34
35