1 7 8 package org.alfresco.example.webservice.types; 9 10 public class ResultSetRowNode implements java.io.Serializable { 11 private java.lang.String id; 12 private java.lang.String type; 13 private java.lang.String [] aspects; 14 15 public ResultSetRowNode() { 16 } 17 18 public ResultSetRowNode( 19 java.lang.String id, 20 java.lang.String type, 21 java.lang.String [] aspects) { 22 this.id = id; 23 this.type = type; 24 this.aspects = aspects; 25 } 26 27 28 33 public java.lang.String getId() { 34 return id; 35 } 36 37 38 43 public void setId(java.lang.String id) { 44 this.id = id; 45 } 46 47 48 53 public java.lang.String getType() { 54 return type; 55 } 56 57 58 63 public void setType(java.lang.String type) { 64 this.type = type; 65 } 66 67 68 73 public java.lang.String [] getAspects() { 74 return aspects; 75 } 76 77 78 83 public void setAspects(java.lang.String [] aspects) { 84 this.aspects = aspects; 85 } 86 87 public java.lang.String getAspects(int i) { 88 return this.aspects[i]; 89 } 90 91 public void setAspects(int i, java.lang.String _value) { 92 this.aspects[i] = _value; 93 } 94 95 private java.lang.Object __equalsCalc = null; 96 public synchronized boolean equals(java.lang.Object obj) { 97 if (!(obj instanceof ResultSetRowNode)) return false; 98 ResultSetRowNode other = (ResultSetRowNode) 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.id==null && other.getId()==null) || 108 (this.id!=null && 109 this.id.equals(other.getId()))) && 110 ((this.type==null && other.getType()==null) || 111 (this.type!=null && 112 this.type.equals(other.getType()))) && 113 ((this.aspects==null && other.getAspects()==null) || 114 (this.aspects!=null && 115 java.util.Arrays.equals(this.aspects, other.getAspects()))); 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 (getId() != null) { 128 _hashCode += getId().hashCode(); 129 } 130 if (getType() != null) { 131 _hashCode += getType().hashCode(); 132 } 133 if (getAspects() != null) { 134 for (int i=0; 135 i<java.lang.reflect.Array.getLength(getAspects()); 136 i++) { 137 java.lang.Object obj = java.lang.reflect.Array.get(getAspects(), i); 138 if (obj != null && 139 !obj.getClass().isArray()) { 140 _hashCode += obj.hashCode(); 141 } 142 } 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(ResultSetRowNode.class, true); 151 152 static { 153 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", ">ResultSetRow>node")); 154 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 155 elemField.setFieldName("id"); 156 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "id")); 157 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "UUID")); 158 elemField.setNillable(false); 159 typeDesc.addFieldDesc(elemField); 160 elemField = new org.apache.axis.description.ElementDesc(); 161 elemField.setFieldName("type"); 162 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "type")); 163 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 164 elemField.setNillable(false); 165 typeDesc.addFieldDesc(elemField); 166 elemField = new org.apache.axis.description.ElementDesc(); 167 elemField.setFieldName("aspects"); 168 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "aspects")); 169 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 170 elemField.setMinOccurs(0); 171 elemField.setNillable(false); 172 elemField.setMaxOccursUnbounded(true); 173 typeDesc.addFieldDesc(elemField); 174 } 175 176 179 public static org.apache.axis.description.TypeDesc getTypeDesc() { 180 return typeDesc; 181 } 182 183 186 public static org.apache.axis.encoding.Serializer getSerializer( 187 java.lang.String mechType, 188 java.lang.Class _javaType, 189 javax.xml.namespace.QName _xmlType) { 190 return 191 new org.apache.axis.encoding.ser.BeanSerializer( 192 _javaType, _xmlType, typeDesc); 193 } 194 195 198 public static org.apache.axis.encoding.Deserializer getDeserializer( 199 java.lang.String mechType, 200 java.lang.Class _javaType, 201 javax.xml.namespace.QName _xmlType) { 202 return 203 new org.apache.axis.encoding.ser.BeanDeserializer( 204 _javaType, _xmlType, typeDesc); 205 } 206 207 } 208 | Popular Tags |