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