00001 // ********************************************************************** 00002 // 00003 // Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved. 00004 // 00005 // This copy of Ice is licensed to you under the terms described in the 00006 // ICE_LICENSE file included in this distribution. 00007 // 00008 // ********************************************************************** 00009 00010 // Ice version 3.4.1 00011 00012 package cast.cdl; 00013 00014 // <auto-generated> 00015 // 00016 // Generated from file `CDL.ice' 00017 // 00018 // Warning: do not edit this file. 00019 // 00020 // </auto-generated> 00021 00022 00027 public class WorkingMemoryChangeFilter implements java.lang.Cloneable, java.io.Serializable 00028 { 00029 public WorkingMemoryOperation operation; 00030 00034 public String src; 00035 00040 public WorkingMemoryAddress address; 00041 00042 public String type; 00043 00048 public FilterRestriction restriction; 00049 00054 public String origin; 00055 00056 public WorkingMemoryChangeFilter() 00057 { 00058 } 00059 00060 public WorkingMemoryChangeFilter(WorkingMemoryOperation operation, String src, WorkingMemoryAddress address, String type, FilterRestriction restriction, String origin) 00061 { 00062 this.operation = operation; 00063 this.src = src; 00064 this.address = address; 00065 this.type = type; 00066 this.restriction = restriction; 00067 this.origin = origin; 00068 } 00069 00070 public boolean 00071 equals(java.lang.Object rhs) 00072 { 00073 if(this == rhs) 00074 { 00075 return true; 00076 } 00077 WorkingMemoryChangeFilter _r = null; 00078 try 00079 { 00080 _r = (WorkingMemoryChangeFilter)rhs; 00081 } 00082 catch(ClassCastException ex) 00083 { 00084 } 00085 00086 if(_r != null) 00087 { 00088 if(operation != _r.operation) 00089 { 00090 if(operation == null || _r.operation == null || !operation.equals(_r.operation)) 00091 { 00092 return false; 00093 } 00094 } 00095 if(src != _r.src) 00096 { 00097 if(src == null || _r.src == null || !src.equals(_r.src)) 00098 { 00099 return false; 00100 } 00101 } 00102 if(address != _r.address) 00103 { 00104 if(address == null || _r.address == null || !address.equals(_r.address)) 00105 { 00106 return false; 00107 } 00108 } 00109 if(type != _r.type) 00110 { 00111 if(type == null || _r.type == null || !type.equals(_r.type)) 00112 { 00113 return false; 00114 } 00115 } 00116 if(restriction != _r.restriction) 00117 { 00118 if(restriction == null || _r.restriction == null || !restriction.equals(_r.restriction)) 00119 { 00120 return false; 00121 } 00122 } 00123 if(origin != _r.origin) 00124 { 00125 if(origin == null || _r.origin == null || !origin.equals(_r.origin)) 00126 { 00127 return false; 00128 } 00129 } 00130 00131 return true; 00132 } 00133 00134 return false; 00135 } 00136 00137 public int 00138 hashCode() 00139 { 00140 int __h = 0; 00141 if(operation != null) 00142 { 00143 __h = 5 * __h + operation.hashCode(); 00144 } 00145 if(src != null) 00146 { 00147 __h = 5 * __h + src.hashCode(); 00148 } 00149 if(address != null) 00150 { 00151 __h = 5 * __h + address.hashCode(); 00152 } 00153 if(type != null) 00154 { 00155 __h = 5 * __h + type.hashCode(); 00156 } 00157 if(restriction != null) 00158 { 00159 __h = 5 * __h + restriction.hashCode(); 00160 } 00161 if(origin != null) 00162 { 00163 __h = 5 * __h + origin.hashCode(); 00164 } 00165 return __h; 00166 } 00167 00168 public java.lang.Object 00169 clone() 00170 { 00171 java.lang.Object o = null; 00172 try 00173 { 00174 o = super.clone(); 00175 } 00176 catch(CloneNotSupportedException ex) 00177 { 00178 assert false; // impossible 00179 } 00180 return o; 00181 } 00182 00183 public void 00184 __write(IceInternal.BasicStream __os) 00185 { 00186 operation.__write(__os); 00187 __os.writeString(src); 00188 address.__write(__os); 00189 __os.writeString(type); 00190 restriction.__write(__os); 00191 __os.writeString(origin); 00192 } 00193 00194 public void 00195 __read(IceInternal.BasicStream __is) 00196 { 00197 operation = WorkingMemoryOperation.__read(__is); 00198 src = __is.readString(); 00199 address = new WorkingMemoryAddress(); 00200 address.__read(__is); 00201 type = __is.readString(); 00202 restriction = FilterRestriction.__read(__is); 00203 origin = __is.readString(); 00204 } 00205 00206 public void 00207 ice_write(Ice.OutputStream __outS) 00208 { 00209 operation.ice_write(__outS); 00210 __outS.writeString(src); 00211 address.ice_write(__outS); 00212 __outS.writeString(type); 00213 restriction.ice_write(__outS); 00214 __outS.writeString(origin); 00215 } 00216 00217 public void 00218 ice_read(Ice.InputStream __inS) 00219 { 00220 operation = WorkingMemoryOperation.ice_read(__inS); 00221 src = __inS.readString(); 00222 address = new WorkingMemoryAddress(); 00223 address.ice_read(__inS); 00224 type = __inS.readString(); 00225 restriction = FilterRestriction.ice_read(__inS); 00226 origin = __inS.readString(); 00227 } 00228 }
1.5.8