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
00023 public final class ComponentDescriptionMapHelper
00024 {
00025 public static void
00026 write(IceInternal.BasicStream __os, java.util.Map<java.lang.String, cast.cdl.ComponentDescription> __v)
00027 {
00028 if(__v == null)
00029 {
00030 __os.writeSize(0);
00031 }
00032 else
00033 {
00034 __os.writeSize(__v.size());
00035 for(java.util.Map.Entry<java.lang.String, cast.cdl.ComponentDescription> __e : __v.entrySet())
00036 {
00037 __os.writeString(__e.getKey());
00038 __e.getValue().__write(__os);
00039 }
00040 }
00041 }
00042
00043 public static java.util.Map<java.lang.String, cast.cdl.ComponentDescription>
00044 read(IceInternal.BasicStream __is)
00045 {
00046 java.util.Map<java.lang.String, cast.cdl.ComponentDescription> __v;
00047 __v = new java.util.HashMap<java.lang.String, cast.cdl.ComponentDescription>();
00048 int __sz0 = __is.readSize();
00049 for(int __i0 = 0; __i0 < __sz0; __i0++)
00050 {
00051 String __key;
00052 __key = __is.readString();
00053 cast.cdl.ComponentDescription __value;
00054 __value = new cast.cdl.ComponentDescription();
00055 __value.__read(__is);
00056 __v.put(__key, __value);
00057 }
00058 return __v;
00059 }
00060
00061 public static void
00062 write(Ice.OutputStream __outS, java.util.Map<java.lang.String, cast.cdl.ComponentDescription> __v)
00063 {
00064 if(__v == null)
00065 {
00066 __outS.writeSize(0);
00067 }
00068 else
00069 {
00070 __outS.writeSize(__v.size());
00071 for(java.util.Map.Entry<java.lang.String, cast.cdl.ComponentDescription> __e : __v.entrySet())
00072 {
00073 __outS.writeString(__e.getKey());
00074 __e.getValue().ice_write(__outS);
00075 }
00076 }
00077 }
00078
00079 public static java.util.Map<java.lang.String, cast.cdl.ComponentDescription>
00080 read(Ice.InputStream __inS)
00081 {
00082 java.util.Map<java.lang.String, cast.cdl.ComponentDescription> __v;
00083 __v = new java.util.HashMap<java.lang.String, cast.cdl.ComponentDescription>();
00084 int __sz0 = __inS.readSize();
00085 for(int __i0 = 0; __i0 < __sz0; __i0++)
00086 {
00087 String __key;
00088 __key = __inS.readString();
00089 cast.cdl.ComponentDescription __value;
00090 __value = new cast.cdl.ComponentDescription();
00091 __value.ice_read(__inS);
00092 __v.put(__key, __value);
00093 }
00094 return __v;
00095 }
00096 }