1 7 8 package org.alfresco.repo.webservice.types; 9 10 public class ResultSetRowNode implements java.io.Serializable { 11 private java.lang.String id; 12 13 private java.lang.String type; 14 15 private java.lang.String [] aspects; 16 17 public ResultSetRowNode() { 18 } 19 20 public ResultSetRowNode( 21 java.lang.String id, 22 java.lang.String type, 23 java.lang.String [] aspects) { 24 this.id = id; 25 this.type = type; 26 this.aspects = aspects; 27 } 28 29 30 35 public java.lang.String getId() { 36 return id; 37 } 38 39 40 45 public void setId(java.lang.String id) { 46 this.id = id; 47 } 48 49 50 55 public java.lang.String getType() { 56 return type; 57 } 58 59 60 65 public void setType(java.lang.String type) { 66 this.type = type; 67 } 68 69 70 75 public java.lang.String [] getAspects() { 76 return aspects; 77 } 78 79 80 85 public void setAspects(java.lang.String [] aspects) { 86 this.aspects = aspects; 87 } 88 89 public java.lang.String getAspects(int i) { 90 return this.aspects[i]; 91 } 92 93 public void setAspects(int i, java.lang.String _value) { 94 this.aspects[i] = _value; 95 } 96 97 private java.lang.Object __equalsCalc = null; 98 public synchronized boolean equals(java.lang.Object obj) { 99 if (!(obj instanceof ResultSetRowNode)) return false; 100 ResultSetRowNode other = (ResultSetRowNode) obj; 101 if (obj == null) return false; 102 if (this == obj) return true; 103 if (__equalsCalc != null) { 104 return (__equalsCalc == obj); 105 } 106 __equalsCalc = obj; 107 boolean _equals; 108 _equals = true && 109 ((this.id==null && other.getId()==null) || 110 (this.id!=null && 111 this.id.equals(other.getId()))) && 112 ((this.type==null && other.getType()==null) || 113 (this.type!=null && 114 this.type.equals(other.getType()))) && 115 ((this.aspects==null && other.getAspects()==null) || 116 (this.aspects!=null && 117 java.util.Arrays.equals(this.aspects, other.getAspects()))); 118 __equalsCalc = null; 119 return _equals; 120 } 121 122 private boolean __hashCodeCalc = false; 123 public synchronized int hashCode() { 124 if (__hashCodeCalc) { 125 return 0; 126 } 127 __hashCodeCalc = true; 128 int _hashCode = 1; 129 if (getId() != null) { 130 _hashCode += getId().hashCode(); 131 } 132 if (getType() != null) { 133 _hashCode += getType().hashCode(); 134 } 135 if (getAspects() != null) { 136 for (int i=0; 137 i<java.lang.reflect.Array.getLength(getAspects()); 138 i++) { 139 java.lang.Object obj = java.lang.reflect.Array.get(getAspects(), i); 140 if (obj != null && 141 !obj.getClass().isArray()) { 142 _hashCode += obj.hashCode(); 143 } 144 } 145 } 146 __hashCodeCalc = false; 147 return _hashCode; 148 } 149 150 private static org.apache.axis.description.TypeDesc typeDesc = 152 new org.apache.axis.description.TypeDesc(ResultSetRowNode.class, true); 153 154 static { 155 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", ">ResultSetRow>node")); 156 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 157 elemField.setFieldName("id"); 158 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "id")); 159 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 160 elemField.setNillable(false); 161 typeDesc.addFieldDesc(elemField); 162 elemField = new org.apache.axis.description.ElementDesc(); 163 elemField.setFieldName("type"); 164 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "type")); 165 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 166 elemField.setNillable(false); 167 typeDesc.addFieldDesc(elemField); 168 elemField = new org.apache.axis.description.ElementDesc(); 169 elemField.setFieldName("aspects"); 170 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "aspects")); 171 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Name")); 172 elemField.setMinOccurs(0); 173 elemField.setNillable(false); 174 elemField.setMaxOccursUnbounded(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 |