1 7 package org.omg.CORBA; 8 9 35 36 public final class CompletionStatus implements org.omg.CORBA.portable.IDLEntity 37 { 38 42 public static final int _COMPLETED_YES = 0, 43 44 48 _COMPLETED_NO = 1, 49 50 54 _COMPLETED_MAYBE = 2; 55 56 57 61 public static final CompletionStatus COMPLETED_YES = new CompletionStatus (_COMPLETED_YES); 62 63 67 public static final CompletionStatus COMPLETED_NO = new CompletionStatus (_COMPLETED_NO); 68 69 73 public static final CompletionStatus COMPLETED_MAYBE = new CompletionStatus (_COMPLETED_MAYBE); 74 75 83 public int value() { return _value; } 84 85 99 public static CompletionStatus from_int(int i) { 100 switch (i) { 101 case _COMPLETED_YES: 102 return COMPLETED_YES; 103 case _COMPLETED_NO: 104 return COMPLETED_NO; 105 case _COMPLETED_MAYBE: 106 return COMPLETED_MAYBE; 107 default: 108 throw new org.omg.CORBA.BAD_PARAM (); 109 } 110 } 111 112 113 120 private CompletionStatus(int _value) { 121 this._value = _value; 122 } 123 124 private int _value; 125 } 126 | Popular Tags |