1 7 8 package org.alfresco.example.webservice.content; 9 10 public class ExistsResult implements java.io.Serializable { 11 private org.alfresco.example.webservice.types.Reference content; 12 private boolean exists; 13 private long length; 14 15 public ExistsResult() { 16 } 17 18 public ExistsResult( 19 org.alfresco.example.webservice.types.Reference content, 20 boolean exists, 21 long length) { 22 this.content = content; 23 this.exists = exists; 24 this.length = length; 25 } 26 27 28 33 public org.alfresco.example.webservice.types.Reference getContent() { 34 return content; 35 } 36 37 38 43 public void setContent(org.alfresco.example.webservice.types.Reference content) { 44 this.content = content; 45 } 46 47 48 53 public boolean isExists() { 54 return exists; 55 } 56 57 58 63 public void setExists(boolean exists) { 64 this.exists = exists; 65 } 66 67 68 73 public long getLength() { 74 return length; 75 } 76 77 78 83 public void setLength(long length) { 84 this.length = length; 85 } 86 87 private java.lang.Object __equalsCalc = null; 88 public synchronized boolean equals(java.lang.Object obj) { 89 if (!(obj instanceof ExistsResult)) return false; 90 ExistsResult other = (ExistsResult) obj; 91 if (obj == null) return false; 92 if (this == obj) return true; 93 if (__equalsCalc != null) { 94 return (__equalsCalc == obj); 95 } 96 __equalsCalc = obj; 97 boolean _equals; 98 _equals = true && 99 ((this.content==null && other.getContent()==null) || 100 (this.content!=null && 101 this.content.equals(other.getContent()))) && 102 this.exists == other.isExists() && 103 this.length == other.getLength(); 104 __equalsCalc = null; 105 return _equals; 106 } 107 108 private boolean __hashCodeCalc = false; 109 public synchronized int hashCode() { 110 if (__hashCodeCalc) { 111 return 0; 112 } 113 __hashCodeCalc = true; 114 int _hashCode = 1; 115 if (getContent() != null) { 116 _hashCode += getContent().hashCode(); 117 } 118 _hashCode += (isExists() ? Boolean.TRUE : Boolean.FALSE).hashCode(); 119 _hashCode += new Long (getLength()).hashCode(); 120 __hashCodeCalc = false; 121 return _hashCode; 122 } 123 124 private static org.apache.axis.description.TypeDesc typeDesc = 126 new org.apache.axis.description.TypeDesc(ExistsResult.class, true); 127 128 static { 129 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/content/1.0", "ExistsResult")); 130 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 131 elemField.setFieldName("content"); 132 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/content/1.0", "content")); 133 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 134 elemField.setNillable(false); 135 typeDesc.addFieldDesc(elemField); 136 elemField = new org.apache.axis.description.ElementDesc(); 137 elemField.setFieldName("exists"); 138 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/content/1.0", "exists")); 139 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "boolean")); 140 elemField.setNillable(false); 141 typeDesc.addFieldDesc(elemField); 142 elemField = new org.apache.axis.description.ElementDesc(); 143 elemField.setFieldName("length"); 144 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/content/1.0", "length")); 145 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "long")); 146 elemField.setNillable(false); 147 typeDesc.addFieldDesc(elemField); 148 } 149 150 153 public static org.apache.axis.description.TypeDesc getTypeDesc() { 154 return typeDesc; 155 } 156 157 160 public static org.apache.axis.encoding.Serializer getSerializer( 161 java.lang.String mechType, 162 java.lang.Class _javaType, 163 javax.xml.namespace.QName _xmlType) { 164 return 165 new org.apache.axis.encoding.ser.BeanSerializer( 166 _javaType, _xmlType, typeDesc); 167 } 168 169 172 public static org.apache.axis.encoding.Deserializer getDeserializer( 173 java.lang.String mechType, 174 java.lang.Class _javaType, 175 javax.xml.namespace.QName _xmlType) { 176 return 177 new org.apache.axis.encoding.ser.BeanDeserializer( 178 _javaType, _xmlType, typeDesc); 179 } 180 181 } 182 | Popular Tags |