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 abstract class _ComponentManagerDisp extends Ice.ObjectImpl implements ComponentManager
00027 {
00028 protected void
00029 ice_copyStateFrom(Ice.Object __obj)
00030 throws java.lang.CloneNotSupportedException
00031 {
00032 throw new java.lang.CloneNotSupportedException();
00033 }
00034
00035 public static final String[] __ids =
00036 {
00037 "::Ice::Object",
00038 "::cast::interfaces::ComponentManager"
00039 };
00040
00041 public boolean
00042 ice_isA(String s)
00043 {
00044 return java.util.Arrays.binarySearch(__ids, s) >= 0;
00045 }
00046
00047 public boolean
00048 ice_isA(String s, Ice.Current __current)
00049 {
00050 return java.util.Arrays.binarySearch(__ids, s) >= 0;
00051 }
00052
00053 public String[]
00054 ice_ids()
00055 {
00056 return __ids;
00057 }
00058
00059 public String[]
00060 ice_ids(Ice.Current __current)
00061 {
00062 return __ids;
00063 }
00064
00065 public String
00066 ice_id()
00067 {
00068 return __ids[1];
00069 }
00070
00071 public String
00072 ice_id(Ice.Current __current)
00073 {
00074 return __ids[1];
00075 }
00076
00077 public static String
00078 ice_staticId()
00079 {
00080 return __ids[1];
00081 }
00082
00086 public final void
00087 addComponentDescription(cast.cdl.ComponentDescription description)
00088 {
00089 addComponentDescription(description, null);
00090 }
00091
00095 public final cast.cdl.ComponentDescription
00096 getComponentDescription(String componentID)
00097 throws cast.CASTException
00098 {
00099 return getComponentDescription(componentID, null);
00100 }
00101
00105 public final java.util.Map<java.lang.String, cast.cdl.ComponentDescription>
00106 getComponentDescriptions()
00107 {
00108 return getComponentDescriptions(null);
00109 }
00110
00111 public static Ice.DispatchStatus
00112 ___addComponentDescription(ComponentManager __obj, IceInternal.Incoming __inS, Ice.Current __current)
00113 {
00114 __checkMode(Ice.OperationMode.Idempotent, __current.mode);
00115 IceInternal.BasicStream __is = __inS.is();
00116 __is.startReadEncaps();
00117 cast.cdl.ComponentDescription description;
00118 description = new cast.cdl.ComponentDescription();
00119 description.__read(__is);
00120 __is.endReadEncaps();
00121 __obj.addComponentDescription(description, __current);
00122 return Ice.DispatchStatus.DispatchOK;
00123 }
00124
00125 public static Ice.DispatchStatus
00126 ___getComponentDescription(ComponentManager __obj, IceInternal.Incoming __inS, Ice.Current __current)
00127 {
00128 __checkMode(Ice.OperationMode.Idempotent, __current.mode);
00129 IceInternal.BasicStream __is = __inS.is();
00130 __is.startReadEncaps();
00131 String componentID;
00132 componentID = __is.readString();
00133 __is.endReadEncaps();
00134 IceInternal.BasicStream __os = __inS.os();
00135 try
00136 {
00137 cast.cdl.ComponentDescription __ret = __obj.getComponentDescription(componentID, __current);
00138 __ret.__write(__os);
00139 return Ice.DispatchStatus.DispatchOK;
00140 }
00141 catch(cast.CASTException ex)
00142 {
00143 __os.writeUserException(ex);
00144 return Ice.DispatchStatus.DispatchUserException;
00145 }
00146 }
00147
00148 public static Ice.DispatchStatus
00149 ___getComponentDescriptions(ComponentManager __obj, IceInternal.Incoming __inS, Ice.Current __current)
00150 {
00151 __checkMode(Ice.OperationMode.Idempotent, __current.mode);
00152 __inS.is().skipEmptyEncaps();
00153 IceInternal.BasicStream __os = __inS.os();
00154 java.util.Map<java.lang.String, cast.cdl.ComponentDescription> __ret = __obj.getComponentDescriptions(__current);
00155 ComponentDescriptionMapHelper.write(__os, __ret);
00156 return Ice.DispatchStatus.DispatchOK;
00157 }
00158
00159 private final static String[] __all =
00160 {
00161 "addComponentDescription",
00162 "getComponentDescription",
00163 "getComponentDescriptions",
00164 "ice_id",
00165 "ice_ids",
00166 "ice_isA",
00167 "ice_ping"
00168 };
00169
00170 public Ice.DispatchStatus
00171 __dispatch(IceInternal.Incoming in, Ice.Current __current)
00172 {
00173 int pos = java.util.Arrays.binarySearch(__all, __current.operation);
00174 if(pos < 0)
00175 {
00176 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00177 }
00178
00179 switch(pos)
00180 {
00181 case 0:
00182 {
00183 return ___addComponentDescription(this, in, __current);
00184 }
00185 case 1:
00186 {
00187 return ___getComponentDescription(this, in, __current);
00188 }
00189 case 2:
00190 {
00191 return ___getComponentDescriptions(this, in, __current);
00192 }
00193 case 3:
00194 {
00195 return ___ice_id(this, in, __current);
00196 }
00197 case 4:
00198 {
00199 return ___ice_ids(this, in, __current);
00200 }
00201 case 5:
00202 {
00203 return ___ice_isA(this, in, __current);
00204 }
00205 case 6:
00206 {
00207 return ___ice_ping(this, in, __current);
00208 }
00209 }
00210
00211 assert(false);
00212 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00213 }
00214
00215 public void
00216 __write(IceInternal.BasicStream __os)
00217 {
00218 __os.writeTypeId(ice_staticId());
00219 __os.startWriteSlice();
00220 __os.endWriteSlice();
00221 super.__write(__os);
00222 }
00223
00224 public void
00225 __read(IceInternal.BasicStream __is, boolean __rid)
00226 {
00227 if(__rid)
00228 {
00229 __is.readTypeId();
00230 }
00231 __is.startReadSlice();
00232 __is.endReadSlice();
00233 super.__read(__is, true);
00234 }
00235
00236 public void
00237 __write(Ice.OutputStream __outS)
00238 {
00239 __outS.writeTypeId(ice_staticId());
00240 __outS.startSlice();
00241 __outS.endSlice();
00242 super.__write(__outS);
00243 }
00244
00245 public void
00246 __read(Ice.InputStream __inS, boolean __rid)
00247 {
00248 if(__rid)
00249 {
00250 __inS.readTypeId();
00251 }
00252 __inS.startSlice();
00253 __inS.endSlice();
00254 super.__read(__inS, true);
00255 }
00256 }