1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class CMLUpdate implements java.io.Serializable { 11 private org.alfresco.repo.webservice.types.NamedValue[] property; 12 13 private org.alfresco.repo.webservice.types.Predicate where; 14 15 private java.lang.String where_id; 16 17 public CMLUpdate() { 18 } 19 20 public CMLUpdate( 21 org.alfresco.repo.webservice.types.NamedValue[] property, 22 org.alfresco.repo.webservice.types.Predicate where, 23 java.lang.String where_id) { 24 this.property = property; 25 this.where = where; 26 this.where_id = where_id; 27 } 28 29 30 35 public org.alfresco.repo.webservice.types.NamedValue[] getProperty() { 36 return property; 37 } 38 39 40 45 public void setProperty(org.alfresco.repo.webservice.types.NamedValue[] property) { 46 this.property = property; 47 } 48 49 public org.alfresco.repo.webservice.types.NamedValue getProperty(int i) { 50 return this.property[i]; 51 } 52 53 public void setProperty(int i, org.alfresco.repo.webservice.types.NamedValue _value) { 54 this.property[i] = _value; 55 } 56 57 58 63 public org.alfresco.repo.webservice.types.Predicate getWhere() { 64 return where; 65 } 66 67 68 73 public void setWhere(org.alfresco.repo.webservice.types.Predicate where) { 74 this.where = where; 75 } 76 77 78 83 public java.lang.String getWhere_id() { 84 return where_id; 85 } 86 87 88 93 public void setWhere_id(java.lang.String where_id) { 94 this.where_id = where_id; 95 } 96 97 private java.lang.Object __equalsCalc = null; 98 public synchronized boolean equals(java.lang.Object obj) { 99 if (!(obj instanceof CMLUpdate)) return false; 100 CMLUpdate other = (CMLUpdate) obj; 101 if (obj == null) return false; 102 if (this == obj) return true; 103 if (__equalsCalc != null) { 104 return (__equalsCalc == obj); 105 } 106 __equalsCalc = obj; 107 boolean _equals; 108 _equals = true && 109 ((this.property==null && other.getProperty()==null) || 110 (this.property!=null && 111 java.util.Arrays.equals(this.property, other.getProperty()))) && 112 ((this.where==null && other.getWhere()==null) || 113 (this.where!=null && 114 this.where.equals(other.getWhere()))) && 115 ((this.where_id==null && other.getWhere_id()==null) || 116 (this.where_id!=null && 117 this.where_id.equals(other.getWhere_id()))); 118 __equalsCalc = null; 119 return _equals; 120 } 121 122 private boolean __hashCodeCalc = false; 123 public synchronized int hashCode() { 124 if (__hashCodeCalc) { 125 return 0; 126 } 127 __hashCodeCalc = true; 128 int _hashCode = 1; 129 if (getProperty() != null) { 130 for (int i=0; 131 i<java.lang.reflect.Array.getLength(getProperty()); 132 i++) { 133 java.lang.Object obj = java.lang.reflect.Array.get(getProperty(), i); 134 if (obj != null && 135 !obj.getClass().isArray()) { 136 _hashCode += obj.hashCode(); 137 } 138 } 139 } 140 if (getWhere() != null) { 141 _hashCode += getWhere().hashCode(); 142 } 143 if (getWhere_id() != null) { 144 _hashCode += getWhere_id().hashCode(); 145 } 146 __hashCodeCalc = false; 147 return _hashCode; 148 } 149 150 private static org.apache.axis.description.TypeDesc typeDesc = 152 new org.apache.axis.description.TypeDesc(CMLUpdate.class, true); 153 154 static { 155 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", ">CML>update")); 156 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 157 elemField.setFieldName("property"); 158 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "property")); 159 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "NamedValue")); 160 elemField.setNillable(false); 161 elemField.setMaxOccursUnbounded(true); 162 typeDesc.addFieldDesc(elemField); 163 elemField = new org.apache.axis.description.ElementDesc(); 164 elemField.setFieldName("where"); 165 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "where")); 166 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); 167 elemField.setMinOccurs(0); 168 elemField.setNillable(false); 169 typeDesc.addFieldDesc(elemField); 170 elemField = new org.apache.axis.description.ElementDesc(); 171 elemField.setFieldName("where_id"); 172 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/cml/1.0", "where_id")); 173 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 174 elemField.setMinOccurs(0); 175 elemField.setNillable(false); 176 typeDesc.addFieldDesc(elemField); 177 } 178 179 182 public static org.apache.axis.description.TypeDesc getTypeDesc() { 183 return typeDesc; 184 } 185 186 189 public static org.apache.axis.encoding.Serializer getSerializer( 190 java.lang.String mechType, 191 java.lang.Class _javaType, 192 javax.xml.namespace.QName _xmlType) { 193 return 194 new org.apache.axis.encoding.ser.BeanSerializer( 195 _javaType, _xmlType, typeDesc); 196 } 197 198 201 public static org.apache.axis.encoding.Deserializer getDeserializer( 202 java.lang.String mechType, 203 java.lang.Class _javaType, 204 javax.xml.namespace.QName _xmlType) { 205 return 206 new org.apache.axis.encoding.ser.BeanDeserializer( 207 _javaType, _xmlType, typeDesc); 208 } 209 210 } 211 | Popular Tags |