1 package org.jacorb.ir; 2 3 22 23 import org.omg.CORBA.INTF_REPOS ; 24 25 public class WstringDef 26 extends StringDef 27 implements org.omg.CORBA.WstringDefOperations  28 { 29 public WstringDef(org.omg.CORBA.TypeCode tc) 30 { 31 if (tc.kind () != org.omg.CORBA.TCKind.tk_wstring) 32 { 33 throw new INTF_REPOS ("Precondition volation: TypeCode must be of kind wstring, but is " + 34 tc.kind().value()); 35 } 36 def_kind = org.omg.CORBA.DefinitionKind.dk_Wstring; 37 type = tc; 38 try 39 { 40 bound( tc.length()); 41 } 42 catch( Exception e ) 43 { 44 e.printStackTrace(); } 46 } 47 48 } 49 | Popular Tags |