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