1 7 8 package org.alfresco.example.webservice.types; 9 10 public class Predicate implements java.io.Serializable { 11 private org.alfresco.example.webservice.types.Reference[] nodes; 12 private org.alfresco.example.webservice.types.Store store; 13 private org.alfresco.example.webservice.types.Query query; 14 15 public Predicate() { 16 } 17 18 public Predicate( 19 org.alfresco.example.webservice.types.Reference[] nodes, 20 org.alfresco.example.webservice.types.Store store, 21 org.alfresco.example.webservice.types.Query query) { 22 this.nodes = nodes; 23 this.store = store; 24 this.query = query; 25 } 26 27 28 33 public org.alfresco.example.webservice.types.Reference[] getNodes() { 34 return nodes; 35 } 36 37 38 43 public void setNodes(org.alfresco.example.webservice.types.Reference[] nodes) { 44 this.nodes = nodes; 45 } 46 47 public org.alfresco.example.webservice.types.Reference getNodes(int i) { 48 return this.nodes[i]; 49 } 50 51 public void setNodes(int i, org.alfresco.example.webservice.types.Reference _value) { 52 this.nodes[i] = _value; 53 } 54 55 56 61 public org.alfresco.example.webservice.types.Store getStore() { 62 return store; 63 } 64 65 66 71 public void setStore(org.alfresco.example.webservice.types.Store store) { 72 this.store = store; 73 } 74 75 76 81 public org.alfresco.example.webservice.types.Query getQuery() { 82 return query; 83 } 84 85 86 91 public void setQuery(org.alfresco.example.webservice.types.Query query) { 92 this.query = query; 93 } 94 95 private java.lang.Object __equalsCalc = null; 96 public synchronized boolean equals(java.lang.Object obj) { 97 if (!(obj instanceof Predicate)) return false; 98 Predicate other = (Predicate) 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.nodes==null && other.getNodes()==null) || 108 (this.nodes!=null && 109 java.util.Arrays.equals(this.nodes, other.getNodes()))) && 110 ((this.store==null && other.getStore()==null) || 111 (this.store!=null && 112 this.store.equals(other.getStore()))) && 113 ((this.query==null && other.getQuery()==null) || 114 (this.query!=null && 115 this.query.equals(other.getQuery()))); 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 (getNodes() != null) { 128 for (int i=0; 129 i<java.lang.reflect.Array.getLength(getNodes()); 130 i++) { 131 java.lang.Object obj = java.lang.reflect.Array.get(getNodes(), i); 132 if (obj != null && 133 !obj.getClass().isArray()) { 134 _hashCode += obj.hashCode(); 135 } 136 } 137 } 138 if (getStore() != null) { 139 _hashCode += getStore().hashCode(); 140 } 141 if (getQuery() != null) { 142 _hashCode += getQuery().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(Predicate.class, true); 151 152 static { 153 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Predicate")); 154 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 155 elemField.setFieldName("nodes"); 156 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "nodes")); 157 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 158 elemField.setMinOccurs(0); 159 elemField.setNillable(true); 160 elemField.setMaxOccursUnbounded(true); 161 typeDesc.addFieldDesc(elemField); 162 elemField = new org.apache.axis.description.ElementDesc(); 163 elemField.setFieldName("store"); 164 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "store")); 165 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Store")); 166 elemField.setMinOccurs(0); 167 elemField.setNillable(true); 168 typeDesc.addFieldDesc(elemField); 169 elemField = new org.apache.axis.description.ElementDesc(); 170 elemField.setFieldName("query"); 171 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "query")); 172 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Query")); 173 elemField.setMinOccurs(0); 174 elemField.setNillable(true); 175 typeDesc.addFieldDesc(elemField); 176 } 177 178 181 public static org.apache.axis.description.TypeDesc getTypeDesc() { 182 return typeDesc; 183 } 184 185 188 public static org.apache.axis.encoding.Serializer getSerializer( 189 java.lang.String mechType, 190 java.lang.Class _javaType, 191 javax.xml.namespace.QName _xmlType) { 192 return 193 new org.apache.axis.encoding.ser.BeanSerializer( 194 _javaType, _xmlType, typeDesc); 195 } 196 197 200 public static org.apache.axis.encoding.Deserializer getDeserializer( 201 java.lang.String mechType, 202 java.lang.Class _javaType, 203 javax.xml.namespace.QName _xmlType) { 204 return 205 new org.apache.axis.encoding.ser.BeanDeserializer( 206 _javaType, _xmlType, typeDesc); 207 } 208 209 } 210 | Popular Tags |