1 26 27 package org.objectweb.openccm.ir3; 28 29 import org.omg.CORBA.*; 31 32 40 41 public class WstringDef_impl 42 extends IRObject_impl 43 implements WstringDefOperations 44 { 45 51 52 protected int bound_; 53 54 60 63 public 64 WstringDef_impl(IFR ifr) 65 { 66 super(ifr); 68 69 setServant(new WstringDefPOATie(this)); 71 72 bound_ = 0; 74 } 75 76 82 86 protected TypeCode 87 recursiveType(java.util.List idSeq) 88 { 89 return type(); 90 } 91 92 98 101 public WstringDef 102 asWstringDef() 103 { 104 return WstringDefHelper.narrow(asObject()); 105 } 106 107 113 116 public DefinitionKind 117 def_kind() 118 { 119 return DefinitionKind.dk_Wstring; 120 } 121 122 128 131 public TypeCode 132 type() 133 { 134 return getIFR().getTCF().create_wstring_tc(bound()); 136 } 137 138 144 147 public int 148 bound() 149 { 150 return bound_; 151 } 152 153 156 public void 157 bound(int b) 158 { 159 if(b == 0) 160 throw exceptionBadParam("the wstring bound can't be set to zero"); 161 162 bound_ = b; 163 } 164 } 165 | Popular Tags |