1 package org.jacorb.ir; 2 3 22 23 import org.omg.CORBA.INTF_REPOS ; 24 25 public class StringDef 26 extends IDLType 27 implements org.omg.CORBA.StringDefOperations 28 { 29 private int bound; 30 31 32 protected StringDef(){} 33 34 public StringDef(org.omg.CORBA.TypeCode tc) 35 { 36 if (tc.kind () != org.omg.CORBA.TCKind.tk_string) 37 { 38 throw new INTF_REPOS ("Precondition volation: TypeCode must be of kind string"); 39 } 40 41 def_kind = org.omg.CORBA.DefinitionKind.dk_String; 42 type = tc; 43 try 44 { 45 bound( tc.length()); 46 } 47 catch( Exception e ) 48 { 49 e.printStackTrace(); } 51 } 52 53 public int bound() 54 { 55 return bound; 56 } 57 58 public void bound(int arg) 59 { 60 bound = arg; 61 } 62 63 public void define() 64 { 65 } 66 67 public void destroy() 68 { 69 } 70 71 } 72 | Popular Tags |