1 7 8 package org.alfresco.repo.webservice.content; 9 10 public class Content implements java.io.Serializable { 11 private org.alfresco.repo.webservice.types.Reference node; 12 13 private java.lang.String property; 14 15 private long length; 16 17 private org.alfresco.repo.webservice.types.ContentFormat format; 18 19 private java.lang.String url; 20 21 public Content() { 22 } 23 24 public Content( 25 org.alfresco.repo.webservice.types.Reference node, 26 java.lang.String property, 27 long length, 28 org.alfresco.repo.webservice.types.ContentFormat format, 29 java.lang.String url) { 30 this.node = node; 31 this.property = property; 32 this.length = length; 33 this.format = format; 34 this.url = url; 35 } 36 37 38 43 public org.alfresco.repo.webservice.types.Reference getNode() { 44 return node; 45 } 46 47 48 53 public void setNode(org.alfresco.repo.webservice.types.Reference node) { 54 this.node = node; 55 } 56 57 58 63 public java.lang.String getProperty() { 64 return property; 65 } 66 67 68 73 public void setProperty(java.lang.String property) { 74 this.property = property; 75 } 76 77 78 83 public long getLength() { 84 return length; 85 } 86 87 88 93 public void setLength(long length) { 94 this.length = length; 95 } 96 97 98 103 public org.alfresco.repo.webservice.types.ContentFormat getFormat() { 104 return format; 105 } 106 107 108 113 public void setFormat(org.alfresco.repo.webservice.types.ContentFormat format) { 114 this.format = format; 115 } 116 117 118 123 public java.lang.String getUrl() { 124 return url; 125 } 126 127 128 133 public void setUrl(java.lang.String url) { 134 this.url = url; 135 } 136 137 private java.lang.Object __equalsCalc = null; 138 public synchronized boolean equals(java.lang.Object obj) { 139 if (!(obj instanceof Content)) return false; 140 Content other = (Content) obj; 141 if (obj == null) return false; 142 if (this == obj) return true; 143 if (__equalsCalc != null) { 144 return (__equalsCalc == obj); 145 } 146 __equalsCalc = obj; 147 boolean _equals; 148 _equals = true && 149 ((this.node==null && other.getNode()==null) || 150 (this.node!=null && 151 this.node.equals(other.getNode()))) && 152 ((this.property==null && other.getProperty()==null) || 153 (this.property!=null && 154 this.property.equals(other.getProperty()))) && 155 this.length == other.getLength() && 156 ((this.format==null && other.getFormat()==null) || 157 (this.format!=null && 158 this.format.equals(other.getFormat()))) && 159 ((this.url==null && other.getUrl()==null) || 160 (this.url!=null && 161 this.url.equals(other.getUrl()))); 162 __equalsCalc = null; 163 return _equals; 164 } 165 166 private boolean __hashCodeCalc = false; 167 public synchronized int hashCode() { 168 if (__hashCodeCalc) { 169 return 0; 170 } 171 __hashCodeCalc = true; 172 int _hashCode = 1; 173 if (getNode() != null) { 174 _hashCode += getNode().hashCode(); 175 } 176 if (getProperty() != null) { 177 _hashCode += getProperty().hashCode(); 178 } 179 _hashCode += new Long (getLength()).hashCode(); 180 if (getFormat() != null) { 181 _hashCode += getFormat().hashCode(); 182 } 183 if (getUrl() != null) { 184 _hashCode += getUrl().hashCode(); 185 } 186 __hashCodeCalc = false; 187 return _hashCode; 188 } 189 190 private static org.apache.axis.description.TypeDesc typeDesc = 192 new org.apache.axis.description.TypeDesc(Content.class, true); 193 194 static { 195 typeDesc.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/content/1.0", "Content")); 196 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); 197 elemField.setFieldName("node"); 198 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/content/1.0", "node")); 199 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "Reference")); 200 elemField.setNillable(false); 201 typeDesc.addFieldDesc(elemField); 202 elemField = new org.apache.axis.description.ElementDesc(); 203 elemField.setFieldName("property"); 204 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/content/1.0", "property")); 205 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 206 elemField.setNillable(false); 207 typeDesc.addFieldDesc(elemField); 208 elemField = new org.apache.axis.description.ElementDesc(); 209 elemField.setFieldName("length"); 210 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/content/1.0", "length")); 211 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "long")); 212 elemField.setNillable(false); 213 typeDesc.addFieldDesc(elemField); 214 elemField = new org.apache.axis.description.ElementDesc(); 215 elemField.setFieldName("format"); 216 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/content/1.0", "format")); 217 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat")); 218 elemField.setNillable(true); 219 typeDesc.addFieldDesc(elemField); 220 elemField = new org.apache.axis.description.ElementDesc(); 221 elemField.setFieldName("url"); 222 elemField.setXmlName(new javax.xml.namespace.QName ("http://www.alfresco.org/ws/service/content/1.0", "url")); 223 elemField.setXmlType(new javax.xml.namespace.QName ("http://www.w3.org/2001/XMLSchema", "string")); 224 elemField.setNillable(true); 225 typeDesc.addFieldDesc(elemField); 226 } 227 228 231 public static org.apache.axis.description.TypeDesc getTypeDesc() { 232 return typeDesc; 233 } 234 235 238 public static org.apache.axis.encoding.Serializer getSerializer( 239 java.lang.String mechType, 240 java.lang.Class _javaType, 241 javax.xml.namespace.QName _xmlType) { 242 return 243 new org.apache.axis.encoding.ser.BeanSerializer( 244 _javaType, _xmlType, typeDesc); 245 } 246 247 250 public static org.apache.axis.encoding.Deserializer getDeserializer( 251 java.lang.String mechType, 252 java.lang.Class _javaType, 253 javax.xml.namespace.QName _xmlType) { 254 return 255 new org.apache.axis.encoding.ser.BeanDeserializer( 256 _javaType, _xmlType, typeDesc); 257 } 258 259 } 260 | Popular Tags |