1 26 27 package org.objectweb.openccm.ir3; 28 29 import org.omg.CORBA.*; 31 32 40 41 public class StringDef_impl 42 extends AnonymousIDLType 43 implements StringDefOperations 44 { 45 51 54 public 55 StringDef_impl(IFR ifr) 56 { 57 super(ifr); 59 60 setServant(new StringDefPOATie(this)); 62 63 bound_ = 0; 65 } 66 67 73 76 protected int bound_; 77 78 84 88 protected TypeCode 89 recursiveType(java.util.List idSeq) 90 { 91 return type(); 92 } 93 94 100 103 public StringDef 104 asStringDef() 105 { 106 return StringDefHelper.narrow(asObject()); 107 } 108 109 115 118 public DefinitionKind 119 def_kind() 120 { 121 return DefinitionKind.dk_String; 122 } 123 124 130 133 public TypeCode 134 type() 135 { 136 return getIFR().getTCF().create_string_tc(bound()); 138 } 139 140 146 149 public int 150 bound() 151 { 152 return bound_; 153 } 154 155 158 public void 159 bound(int b) 160 { 161 if(b == 0) 162 throw exceptionBadParam("the string bound can't be set to zero"); 163 164 bound_ = b; 165 } 166 } 167 | Popular Tags |