00001 package Sct_SctApi;
00002
00003
00011 public class EventFormatType implements org.omg.CORBA.portable.IDLEntity
00012 {
00013 private int __value;
00014 private static int __size = 3;
00015 private static Sct_SctApi.EventFormatType[] __array = new Sct_SctApi.EventFormatType [__size];
00016
00017 public static final int _NORMAL_EVENT_FORMAT = 0;
00018 public static final Sct_SctApi.EventFormatType NORMAL_EVENT_FORMAT = new Sct_SctApi.EventFormatType(_NORMAL_EVENT_FORMAT);
00019 public static final int _EXPANDED_EVENT_FORMAT = 1;
00020 public static final Sct_SctApi.EventFormatType EXPANDED_EVENT_FORMAT = new Sct_SctApi.EventFormatType(_EXPANDED_EVENT_FORMAT);
00021 public static final int _RAW_EVENT_FORMAT = 2;
00022 public static final Sct_SctApi.EventFormatType RAW_EVENT_FORMAT = new Sct_SctApi.EventFormatType(_RAW_EVENT_FORMAT);
00023
00024 public int value ()
00025 {
00026 return __value;
00027 }
00028
00029 public static Sct_SctApi.EventFormatType from_int (int value)
00030 {
00031 if (value >= 0 && value < __size)
00032 return __array[value];
00033 else
00034 throw new org.omg.CORBA.BAD_PARAM ();
00035 }
00036
00037 protected EventFormatType (int value)
00038 {
00039 __value = value;
00040 __array[__value] = this;
00041 }
00042 }