1 package org.jacorb.ir; 2 3 22 23 public class FixedDef 24 extends IDLType 25 implements org.omg.CORBA.FixedDefOperations 26 { 27 private short digits; 28 private short scale; 29 30 public FixedDef(org.omg.CORBA.TypeCode tc) 31 { 32 def_kind = org.omg.CORBA.DefinitionKind.dk_Fixed; 33 type = tc; 34 try 35 { 36 digits = tc.fixed_digits(); 37 scale = tc.fixed_scale(); 38 } 39 catch( Exception e ) 40 { 41 e.printStackTrace(); } 43 } 44 45 public short digits() 46 { 47 return digits; 48 } 49 50 public void digits(short arg) 51 { 52 digits = arg; 53 } 54 55 public short scale() 56 { 57 return scale; 58 } 59 60 public void scale(short arg) 61 { 62 scale = arg; 63 } 64 65 66 public void define() 67 { 68 } 69 70 public void destroy() 71 { 72 } 73 74 } 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | Popular Tags |