1 26 27 package org.objectweb.openccm.ir3; 28 29 import org.omg.CORBA.*; 31 32 40 41 public class FixedDef_impl 42 extends AnonymousIDLType 43 implements FixedDefOperations 44 { 45 51 54 public 55 FixedDef_impl(IFR ifr) 56 { 57 super(ifr); 59 60 setServant(new FixedDefPOATie(this)); 62 63 digits_ = (short)0; 65 scale_ = (short)0; 66 } 67 68 74 75 protected short digits_; 76 77 78 protected short scale_; 79 80 86 90 protected TypeCode 91 recursiveType(java.util.List idSeq) 92 { 93 return type(); 94 } 95 96 102 105 public FixedDef 106 asFixedDef() 107 { 108 return FixedDefHelper.narrow(asObject()); 109 } 110 111 117 120 public DefinitionKind 121 def_kind() 122 { 123 return DefinitionKind.dk_Fixed; 124 } 125 126 132 135 public TypeCode 136 type() 137 { 138 return getIFR().getTCF().create_fixed_tc(digits(), scale()); 140 } 141 142 148 151 public short 152 digits() 153 { 154 return digits_; 155 } 156 157 160 public void 161 digits(short d) 162 { 163 if(d < 1 || d > 31) 165 throw exceptionBadParam("digits must be between 1 and 31"); 166 167 digits_ = d; 168 } 169 170 173 public short 174 scale() 175 { 176 return scale_; 177 } 178 179 182 public void 183 scale(short s) 184 { 185 scale_ = s; 186 } 187 } 188 | Popular Tags |