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