public static HeatmapInfoPrx checkedCast(Ice.ObjectPrx __obj, String __facet) {
   HeatmapInfoPrx __d = null;
   if (__obj != null) {
     Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
     try {
       if (__bb.ice_isA(ice_staticId())) {
         HeatmapInfoPrxHelper __h = new HeatmapInfoPrxHelper();
         __h.__copyFrom(__bb);
         __d = __h;
       }
     } catch (Ice.FacetNotExistException ex) {
     }
   }
   return __d;
 }
 public static HeatmapInfoPrx checkedCast(Ice.ObjectPrx __obj) {
   HeatmapInfoPrx __d = null;
   if (__obj != null) {
     if (__obj instanceof HeatmapInfoPrx) {
       __d = (HeatmapInfoPrx) __obj;
     } else {
       if (__obj.ice_isA(ice_staticId())) {
         HeatmapInfoPrxHelper __h = new HeatmapInfoPrxHelper();
         __h.__copyFrom(__obj);
         __d = __h;
       }
     }
   }
   return __d;
 }
 public static LaboratoryFactoryPrx checkedCast(Ice.ObjectPrx __obj) {
   LaboratoryFactoryPrx __d = null;
   if (__obj != null) {
     try {
       __d = (LaboratoryFactoryPrx) __obj;
     } catch (ClassCastException ex) {
       if (__obj.ice_isA(ice_staticId())) {
         LaboratoryFactoryPrxHelper __h = new LaboratoryFactoryPrxHelper();
         __h.__copyFrom(__obj);
         __d = __h;
       }
     }
   }
   return __d;
 }
Example #4
0
 public static SourcePrx checkedCast(Ice.ObjectPrx __obj, java.util.Map<String, String> __ctx) {
   SourcePrx __d = null;
   if (__obj != null) {
     if (__obj instanceof SourcePrx) {
       __d = (SourcePrx) __obj;
     } else {
       if (__obj.ice_isA(ice_staticId(), __ctx)) {
         SourcePrxHelper __h = new SourcePrxHelper();
         __h.__copyFrom(__obj);
         __d = __h;
       }
     }
   }
   return __d;
 }
 public static LaboratoryFactoryPrx checkedCast(
     Ice.ObjectPrx __obj, String __facet, java.util.Map<String, String> __ctx) {
   LaboratoryFactoryPrx __d = null;
   if (__obj != null) {
     Ice.ObjectPrx __bb = __obj.ice_facet(__facet);
     try {
       if (__bb.ice_isA(ice_staticId(), __ctx)) {
         LaboratoryFactoryPrxHelper __h = new LaboratoryFactoryPrxHelper();
         __h.__copyFrom(__bb);
         __d = __h;
       }
     } catch (Ice.FacetNotExistException ex) {
     }
   }
   return __d;
 }