1 package org.enhydra.shark.api.client.wfmodel; 2 3 23 public class how_closedType 24 { 25 private int __value; 26 private static int __size = 3; 27 private static how_closedType[] __array = new how_closedType [__size]; 28 29 public static final int _completed = 0; 30 public static final how_closedType completed = new how_closedType(_completed); 31 public static final int _terminated = 1; 32 public static final how_closedType terminated = new how_closedType(_terminated); 33 public static final int _aborted = 2; 34 public static final how_closedType aborted = new how_closedType(_aborted); 35 36 public int value () 37 { 38 return __value; 39 } 40 41 public static how_closedType from_int (int value) 42 { 43 if (value >= 0 && value < __size) 44 return __array[value]; 45 else 46 throw new org.omg.CORBA.BAD_PARAM (); 47 } 48 49 protected how_closedType (int value) 50 { 51 __value = value; 52 __array[__value] = this; 53 } 54 } | Popular Tags |