1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class CMLAddAspect implements java.io.Serializable { 11 private java.lang.String aspect; 12 13 private org.alfresco.repo.webservice.types.NamedValue[] property; 14 15 private org.alfresco.repo.webservice.types.Predicate where; 16 17 private java.lang.String where_id; 18 19 public CMLAddAspect() { 20 } 21 22 public CMLAddAspect( 23 java.lang.String aspect, 24 org.alfresco.repo.webservice.types.NamedValue[] property, 25 org.alfresco.repo.webservice.types.Predicate where, 26 java.lang.String where_id) { 27 this.aspect = aspect; 28 this.property = property; 29 this.where = where; 30 this.where_id = where_id; 31 } 32 33 34 39 public java.lang.String getAspect() { 40 return aspect; 41 } 42 43 44 49 public void setAspect(java.lang.String aspect) { 50 this.aspect = aspect; 51 } 52 53 54 59 public org.alfresco.repo.webservice.types.NamedValue[] getProperty() { 60 return property; 61 } 62 63 64 69 public void setProperty(org.alfresco.repo.webservice.types.NamedValue[] property) { 70 this.property = property; 71 } 72 73 public org.alfresco.repo.webservice.types.NamedValue getProperty(int i) { 74 return this.property[i]; 75 } 76 77 public void setProperty(int i, org.alfresco.repo.webservice.types.NamedValue _value) { 78 this.property[i] = _value; 79 } 80 81 82 87 public org.alfresco.repo.webservice.types.Predicate getWhere() { 88 return where; 89 } 90 91 92 97 public void setWhere(org.alfresco.repo.webservice.types.Predicate where) { 98 this.where = where; 99 } 100 101 102 107 public java.lang.String getWhere_id() { 108 return where_id; 109 } 110 111 112 117 public void setWhere_id(java.lang.String where_id) { 118 this.where_id = where_id; 119 } 120 121 private java.lang.Object __equalsCalc = null; 122 public synchronized boolean equals(java.lang.Object obj) { 123 if (!(obj instanceof CMLAddAspect)) return false; 124 CMLAddAspect other = (CMLAddAspect) obj; 125 if (obj == null) return false; 126 if (this == obj) return true; 127 if (__equalsCalc != null) { 128 return (__equalsCalc == obj); 129 } 130 __equalsCalc = obj; 131 boolean _equals; 132 _equals = true && 133 ((this.aspect==null && other.getAspect()==null) || 134 (this.aspect!=null && 135 this.aspect.equals(other.getAspect()))) && 136 ((this.property==null && other.getProperty()==null) || 137 (this.property!=null && 138 java.util.Arrays.equals(this.property, other.getProperty()))) && 139 ((this.where==null && other.getWhere()==null) || 140 (this.where!=null && 141 this.where.equals(other.getWhere()))) && 142 ((this.where_id==null && other.getWhere_id()==null) || 143 (this.where_id!=null && 144 this.where_id.equals(other.getWhere_id()))); 145 __equalsCalc = null; 146 return _equals; 147 } 148 149 private boolean __hashCodeCalc = false; 150 public synchronized int hashCode() { 151 if (__hashCodeCalc) { 152 return 0; 153 } 154 __hashCodeCalc = true; 155 int _hashCode = 1; 156 if (getAspect() != null) { 157 _hashCode += getAspect().hashCode(); 158 } 159 if (getProperty() != null) { 160 for (int i=0; 161 i<java.lang.reflect.Array.getLength(getProperty()); 162 i++) { 163 java.lang.Object obj = java.lang.reflect.Array.get(getProperty(), i); 164 if (obj != null && 165 !obj.getClass().isArray()) { 166 _hashCode += obj.hashCode(); 167 } 168 } 169 } 170 if (getWhere() != null) { 171 _hashCode += getWhere().hashCode(); 172 } 173 if (getWhere_id() != null) { 174 _hashCode += getWhere_id().hashCode(); 175 } 176 __hashCodeCalc = false; 177 return _hashCode; 178 } 179 180 private static org.apache.axis.description.TypeDesc typeDesc = 182 new org.apache.axis.description.TypeDesc(CMLAddAspect.class, true); 183 184 static { 185 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>addAspect")); 186 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 187 elemField.setFieldName("aspect"); 188 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "aspect")); 189 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 190 elemField.setNillable(false); 191 typeDesc.addFieldDesc(elemField); 192 elemField = new org.apache.axis.description.ElementDesc(); 193 elemField.setFieldName("property"); 194 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "property")); 195 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); 196 elemField.setMinOccurs(0); 197 elemField.setNillable(false); 198 elemField.setMaxOccursUnbounded(true); 199 typeDesc.addFieldDesc(elemField); 200 elemField = new org.apache.axis.description.ElementDesc(); 201 elemField.setFieldName("where"); 202 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "where")); 203 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); 204 elemField.setMinOccurs(0); 205 elemField.setNillable(false); 206 typeDesc.addFieldDesc(elemField); 207 elemField = new org.apache.axis.description.ElementDesc(); 208 elemField.setFieldName("where_id"); 209 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "where_id")); 210 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 211 elemField.setMinOccurs(0); 212 elemField.setNillable(false); 213 typeDesc.addFieldDesc(elemField); 214 } 215 216 219 public static org.apache.axis.description.TypeDesc getTypeDesc() { 220 return typeDesc; 221 } 222 223 226 public static org.apache.axis.encoding.Serializer getSerializer( 227 java.lang.String mechType, 228 java.lang.Class _javaType, 229 javax.xml.namespace.QName _xmlType) { 230 return 231 new org.apache.axis.encoding.ser.BeanSerializer( 232 _javaType, _xmlType, typeDesc); 233 } 234 235 238 public static org.apache.axis.encoding.Deserializer getDeserializer( 239 java.lang.String mechType, 240 java.lang.Class _javaType, 241 javax.xml.namespace.QName _xmlType) { 242 return 243 new org.apache.axis.encoding.ser.BeanDeserializer( 244 _javaType, _xmlType, typeDesc); 245 } 246 247 } 248 | Popular Tags |