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