00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 package cast.interfaces;
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00026 public final class ComponentManagerPrxHelper extends Ice.ObjectPrxHelperBase implements ComponentManagerPrx
00027 {
00031 public void
00032 addComponentDescription(cast.cdl.ComponentDescription description)
00033 {
00034 addComponentDescription(description, null, false);
00035 }
00036
00041 public void
00042 addComponentDescription(cast.cdl.ComponentDescription description, java.util.Map<String, String> __ctx)
00043 {
00044 addComponentDescription(description, __ctx, true);
00045 }
00046
00047 private void
00048 addComponentDescription(cast.cdl.ComponentDescription description, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00049 {
00050 if(__explicitCtx && __ctx == null)
00051 {
00052 __ctx = _emptyContext;
00053 }
00054 int __cnt = 0;
00055 while(true)
00056 {
00057 Ice._ObjectDel __delBase = null;
00058 try
00059 {
00060 __delBase = __getDelegate(false);
00061 _ComponentManagerDel __del = (_ComponentManagerDel)__delBase;
00062 __del.addComponentDescription(description, __ctx);
00063 return;
00064 }
00065 catch(IceInternal.LocalExceptionWrapper __ex)
00066 {
00067 __cnt = __handleExceptionWrapperRelaxed(__delBase, __ex, null, __cnt);
00068 }
00069 catch(Ice.LocalException __ex)
00070 {
00071 __cnt = __handleException(__delBase, __ex, null, __cnt);
00072 }
00073 }
00074 }
00075
00076 private static final String __addComponentDescription_name = "addComponentDescription";
00077
00082 public Ice.AsyncResult begin_addComponentDescription(cast.cdl.ComponentDescription description)
00083 {
00084 return begin_addComponentDescription(description, null, false, null);
00085 }
00086
00092 public Ice.AsyncResult begin_addComponentDescription(cast.cdl.ComponentDescription description, java.util.Map<String, String> __ctx)
00093 {
00094 return begin_addComponentDescription(description, __ctx, true, null);
00095 }
00096
00101 public Ice.AsyncResult begin_addComponentDescription(cast.cdl.ComponentDescription description, Ice.Callback __cb)
00102 {
00103 return begin_addComponentDescription(description, null, false, __cb);
00104 }
00105
00111 public Ice.AsyncResult begin_addComponentDescription(cast.cdl.ComponentDescription description, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00112 {
00113 return begin_addComponentDescription(description, __ctx, true, __cb);
00114 }
00115
00120 public Ice.AsyncResult begin_addComponentDescription(cast.cdl.ComponentDescription description, Callback_ComponentManager_addComponentDescription __cb)
00121 {
00122 return begin_addComponentDescription(description, null, false, __cb);
00123 }
00124
00130 public Ice.AsyncResult begin_addComponentDescription(cast.cdl.ComponentDescription description, java.util.Map<String, String> __ctx, Callback_ComponentManager_addComponentDescription __cb)
00131 {
00132 return begin_addComponentDescription(description, __ctx, true, __cb);
00133 }
00134
00135 private Ice.AsyncResult begin_addComponentDescription(cast.cdl.ComponentDescription description, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00136 {
00137 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __addComponentDescription_name, __cb);
00138 try
00139 {
00140 __result.__prepare(__addComponentDescription_name, Ice.OperationMode.Idempotent, __ctx, __explicitCtx);
00141 IceInternal.BasicStream __os = __result.__os();
00142 description.__write(__os);
00143 __os.endWriteEncaps();
00144 __result.__send(true);
00145 }
00146 catch(Ice.LocalException __ex)
00147 {
00148 __result.__exceptionAsync(__ex);
00149 }
00150 return __result;
00151 }
00152
00157 public void end_addComponentDescription(Ice.AsyncResult __result)
00158 {
00159 __end(__result, __addComponentDescription_name);
00160 }
00161
00165 public cast.cdl.ComponentDescription
00166 getComponentDescription(String componentID)
00167 throws cast.CASTException
00168 {
00169 return getComponentDescription(componentID, null, false);
00170 }
00171
00176 public cast.cdl.ComponentDescription
00177 getComponentDescription(String componentID, java.util.Map<String, String> __ctx)
00178 throws cast.CASTException
00179 {
00180 return getComponentDescription(componentID, __ctx, true);
00181 }
00182
00183 private cast.cdl.ComponentDescription
00184 getComponentDescription(String componentID, java.util.Map<String, String> __ctx, boolean __explicitCtx)
00185 throws cast.CASTException
00186 {
00187 if(__explicitCtx && __ctx == null)
00188 {
00189 __ctx = _emptyContext;
00190 }
00191 int __cnt = 0;
00192 while(true)
00193 {
00194 Ice._ObjectDel __delBase = null;
00195 try
00196 {
00197 __checkTwowayOnly("getComponentDescription");
00198 __delBase = __getDelegate(false);
00199 _ComponentManagerDel __del = (_ComponentManagerDel)__delBase;
00200 return __del.getComponentDescription(componentID, __ctx);
00201 }
00202 catch(IceInternal.LocalExceptionWrapper __ex)
00203 {
00204 __cnt = __handleExceptionWrapperRelaxed(__delBase, __ex, null, __cnt);
00205 }
00206 catch(Ice.LocalException __ex)
00207 {
00208 __cnt = __handleException(__delBase, __ex, null, __cnt);
00209 }
00210 }
00211 }
00212
00213 private static final String __getComponentDescription_name = "getComponentDescription";
00214
00219 public Ice.AsyncResult begin_getComponentDescription(String componentID)
00220 {
00221 return begin_getComponentDescription(componentID, null, false, null);
00222 }
00223
00229 public Ice.AsyncResult begin_getComponentDescription(String componentID, java.util.Map<String, String> __ctx)
00230 {
00231 return begin_getComponentDescription(componentID, __ctx, true, null);
00232 }
00233
00238 public Ice.AsyncResult begin_getComponentDescription(String componentID, Ice.Callback __cb)
00239 {
00240 return begin_getComponentDescription(componentID, null, false, __cb);
00241 }
00242
00248 public Ice.AsyncResult begin_getComponentDescription(String componentID, java.util.Map<String, String> __ctx, Ice.Callback __cb)
00249 {
00250 return begin_getComponentDescription(componentID, __ctx, true, __cb);
00251 }
00252
00257 public Ice.AsyncResult begin_getComponentDescription(String componentID, Callback_ComponentManager_getComponentDescription __cb)
00258 {
00259 return begin_getComponentDescription(componentID, null, false, __cb);
00260 }
00261
00267 public Ice.AsyncResult begin_getComponentDescription(String componentID, java.util.Map<String, String> __ctx, Callback_ComponentManager_getComponentDescription __cb)
00268 {
00269 return begin_getComponentDescription(componentID, __ctx, true, __cb);
00270 }
00271
00272 private Ice.AsyncResult begin_getComponentDescription(String componentID, java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00273 {
00274 __checkAsyncTwowayOnly(__getComponentDescription_name);
00275 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __getComponentDescription_name, __cb);
00276 try
00277 {
00278 __result.__prepare(__getComponentDescription_name, Ice.OperationMode.Idempotent, __ctx, __explicitCtx);
00279 IceInternal.BasicStream __os = __result.__os();
00280 __os.writeString(componentID);
00281 __os.endWriteEncaps();
00282 __result.__send(true);
00283 }
00284 catch(Ice.LocalException __ex)
00285 {
00286 __result.__exceptionAsync(__ex);
00287 }
00288 return __result;
00289 }
00290
00295 public cast.cdl.ComponentDescription end_getComponentDescription(Ice.AsyncResult __result)
00296 throws cast.CASTException
00297 {
00298 Ice.AsyncResult.__check(__result, this, __getComponentDescription_name);
00299 if(!__result.__wait())
00300 {
00301 try
00302 {
00303 __result.__throwUserException();
00304 }
00305 catch(cast.CASTException __ex)
00306 {
00307 throw __ex;
00308 }
00309 catch(Ice.UserException __ex)
00310 {
00311 throw new Ice.UnknownUserException(__ex.ice_name());
00312 }
00313 }
00314 cast.cdl.ComponentDescription __ret;
00315 IceInternal.BasicStream __is = __result.__is();
00316 __is.startReadEncaps();
00317 __ret = new cast.cdl.ComponentDescription();
00318 __ret.__read(__is);
00319 __is.endReadEncaps();
00320 return __ret;
00321 }
00322
00326 public java.util.Map<java.lang.String, cast.cdl.ComponentDescription>
00327 getComponentDescriptions()
00328 {
00329 return getComponentDescriptions(null, false);
00330 }
00331
00336 public java.util.Map<java.lang.String, cast.cdl.ComponentDescription>
00337 getComponentDescriptions(java.util.Map<String, String> __ctx)
00338 {
00339 return getComponentDescriptions(__ctx, true);
00340 }
00341
00342 private java.util.Map<java.lang.String, cast.cdl.ComponentDescription>
00343 getComponentDescriptions(java.util.Map<String, String> __ctx, boolean __explicitCtx)
00344 {
00345 if(__explicitCtx && __ctx == null)
00346 {
00347 __ctx = _emptyContext;
00348 }
00349 int __cnt = 0;
00350 while(true)
00351 {
00352 Ice._ObjectDel __delBase = null;
00353 try
00354 {
00355 __checkTwowayOnly("getComponentDescriptions");
00356 __delBase = __getDelegate(false);
00357 _ComponentManagerDel __del = (_ComponentManagerDel)__delBase;
00358 return __del.getComponentDescriptions(__ctx);
00359 }
00360 catch(IceInternal.LocalExceptionWrapper __ex)
00361 {
00362 __cnt = __handleExceptionWrapperRelaxed(__delBase, __ex, null, __cnt);
00363 }
00364 catch(Ice.LocalException __ex)
00365 {
00366 __cnt = __handleException(__delBase, __ex, null, __cnt);
00367 }
00368 }
00369 }
00370
00371 private static final String __getComponentDescriptions_name = "getComponentDescriptions";
00372
00377 public Ice.AsyncResult begin_getComponentDescriptions()
00378 {
00379 return begin_getComponentDescriptions(null, false, null);
00380 }
00381
00387 public Ice.AsyncResult begin_getComponentDescriptions(java.util.Map<String, String> __ctx)
00388 {
00389 return begin_getComponentDescriptions(__ctx, true, null);
00390 }
00391
00396 public Ice.AsyncResult begin_getComponentDescriptions(Ice.Callback __cb)
00397 {
00398 return begin_getComponentDescriptions(null, false, __cb);
00399 }
00400
00406 public Ice.AsyncResult begin_getComponentDescriptions(java.util.Map<String, String> __ctx, Ice.Callback __cb)
00407 {
00408 return begin_getComponentDescriptions(__ctx, true, __cb);
00409 }
00410
00415 public Ice.AsyncResult begin_getComponentDescriptions(Callback_ComponentManager_getComponentDescriptions __cb)
00416 {
00417 return begin_getComponentDescriptions(null, false, __cb);
00418 }
00419
00425 public Ice.AsyncResult begin_getComponentDescriptions(java.util.Map<String, String> __ctx, Callback_ComponentManager_getComponentDescriptions __cb)
00426 {
00427 return begin_getComponentDescriptions(__ctx, true, __cb);
00428 }
00429
00430 private Ice.AsyncResult begin_getComponentDescriptions(java.util.Map<String, String> __ctx, boolean __explicitCtx, IceInternal.CallbackBase __cb)
00431 {
00432 __checkAsyncTwowayOnly(__getComponentDescriptions_name);
00433 IceInternal.OutgoingAsync __result = new IceInternal.OutgoingAsync(this, __getComponentDescriptions_name, __cb);
00434 try
00435 {
00436 __result.__prepare(__getComponentDescriptions_name, Ice.OperationMode.Idempotent, __ctx, __explicitCtx);
00437 IceInternal.BasicStream __os = __result.__os();
00438 __os.endWriteEncaps();
00439 __result.__send(true);
00440 }
00441 catch(Ice.LocalException __ex)
00442 {
00443 __result.__exceptionAsync(__ex);
00444 }
00445 return __result;
00446 }
00447
00452 public java.util.Map<java.lang.String, cast.cdl.ComponentDescription> end_getComponentDescriptions(Ice.AsyncResult __result)
00453 {
00454 Ice.AsyncResult.__check(__result, this, __getComponentDescriptions_name);
00455 if(!__result.__wait())
00456 {
00457 try
00458 {
00459 __result.__throwUserException();
00460 }
00461 catch(Ice.UserException __ex)
00462 {
00463 throw new Ice.UnknownUserException(__ex.ice_name());
00464 }
00465 }
00466 java.util.Map<java.lang.String, cast.cdl.ComponentDescription> __ret;
00467 IceInternal.BasicStream __is = __result.__is();
00468 __is.startReadEncaps();
00469 __ret = ComponentDescriptionMapHelper.read(__is);
00470 __is.endReadEncaps();
00471 return __ret;
00472 }
00473
00474 public static ComponentManagerPrx
00475 checkedCast(Ice.ObjectPrx __obj)
00476 {
00477 ComponentManagerPrx __d = null;
00478 if(__obj != null)
00479 {
00480 try
00481 {
00482 __d = (ComponentManagerPrx)__obj;
00483 }
00484 catch(ClassCastException ex)
00485 {
00486 if(__obj.ice_isA("::cast::interfaces::ComponentManager"))
00487 {
00488 ComponentManagerPrxHelper __h = new ComponentManagerPrxHelper();
00489 __h.__copyFrom(__obj);
00490 __d = __h;
00491 }
00492 }
00493 }
00494 return __d;
00495 }
00496
00497 public static ComponentManagerPrx
00498 checkedCast(Ice.ObjectPrx __obj, java.util.Map<String, String> __ctx)
00499 {
00500 ComponentManagerPrx __d = null;
00501 if(__obj != null)
00502 {
00503 try
00504 {
00505 __d = (ComponentManagerPrx)__obj;
00506 }
00507 catch(ClassCastException ex)
00508 {
00509 if(__obj.ice_isA("::cast::interfaces::ComponentManager", __ctx))
00510 {
00511 ComponentManagerPrxHelper __h = new ComponentManagerPrxHelper();
00512 __h.__copyFrom(__obj);
00513 __d = __h;
00514 }
00515 }
00516 }
00517 return __d;
00518 }
00519
00520 public static ComponentManagerPrx
00521 checkedCast(Ice.ObjectPrx __obj, String __facet)
00522 {
00523 ComponentManagerPrx __d = null;
00524 if(__obj != null)
00525 {
00526 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
00527 try
00528 {
00529 if(__bb.ice_isA("::cast::interfaces::ComponentManager"))
00530 {
00531 ComponentManagerPrxHelper __h = new ComponentManagerPrxHelper();
00532 __h.__copyFrom(__bb);
00533 __d = __h;
00534 }
00535 }
00536 catch(Ice.FacetNotExistException ex)
00537 {
00538 }
00539 }
00540 return __d;
00541 }
00542
00543 public static ComponentManagerPrx
00544 checkedCast(Ice.ObjectPrx __obj, String __facet, java.util.Map<String, String> __ctx)
00545 {
00546 ComponentManagerPrx __d = null;
00547 if(__obj != null)
00548 {
00549 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
00550 try
00551 {
00552 if(__bb.ice_isA("::cast::interfaces::ComponentManager", __ctx))
00553 {
00554 ComponentManagerPrxHelper __h = new ComponentManagerPrxHelper();
00555 __h.__copyFrom(__bb);
00556 __d = __h;
00557 }
00558 }
00559 catch(Ice.FacetNotExistException ex)
00560 {
00561 }
00562 }
00563 return __d;
00564 }
00565
00566 public static ComponentManagerPrx
00567 uncheckedCast(Ice.ObjectPrx __obj)
00568 {
00569 ComponentManagerPrx __d = null;
00570 if(__obj != null)
00571 {
00572 try
00573 {
00574 __d = (ComponentManagerPrx)__obj;
00575 }
00576 catch(ClassCastException ex)
00577 {
00578 ComponentManagerPrxHelper __h = new ComponentManagerPrxHelper();
00579 __h.__copyFrom(__obj);
00580 __d = __h;
00581 }
00582 }
00583 return __d;
00584 }
00585
00586 public static ComponentManagerPrx
00587 uncheckedCast(Ice.ObjectPrx __obj, String __facet)
00588 {
00589 ComponentManagerPrx __d = null;
00590 if(__obj != null)
00591 {
00592 Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
00593 ComponentManagerPrxHelper __h = new ComponentManagerPrxHelper();
00594 __h.__copyFrom(__bb);
00595 __d = __h;
00596 }
00597 return __d;
00598 }
00599
00600 protected Ice._ObjectDelM
00601 __createDelegateM()
00602 {
00603 return new _ComponentManagerDelM();
00604 }
00605
00606 protected Ice._ObjectDelD
00607 __createDelegateD()
00608 {
00609 return new _ComponentManagerDelD();
00610 }
00611
00612 public static void
00613 __write(IceInternal.BasicStream __os, ComponentManagerPrx v)
00614 {
00615 __os.writeProxy(v);
00616 }
00617
00618 public static ComponentManagerPrx
00619 __read(IceInternal.BasicStream __is)
00620 {
00621 Ice.ObjectPrx proxy = __is.readProxy();
00622 if(proxy != null)
00623 {
00624 ComponentManagerPrxHelper result = new ComponentManagerPrxHelper();
00625 result.__copyFrom(proxy);
00626 return result;
00627 }
00628 return null;
00629 }
00630
00631 public static void
00632 write(Ice.OutputStream __outS, ComponentManagerPrx v)
00633 {
00634 __outS.writeProxy(v);
00635 }
00636
00637 public static ComponentManagerPrx
00638 read(Ice.InputStream __inS)
00639 {
00640 Ice.ObjectPrx proxy = __inS.readProxy();
00641 if(proxy != null)
00642 {
00643 ComponentManagerPrxHelper result = new ComponentManagerPrxHelper();
00644 result.__copyFrom(proxy);
00645 return result;
00646 }
00647 return null;
00648 }
00649 }