/** * ProjectAttachmentData.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.intellij.tasks.mantis.model; public class ProjectAttachmentData implements java.io.Serializable { private java.math.BigInteger id; private java.lang.String filename; private java.lang.String title; private java.lang.String description; private java.math.BigInteger size; private java.lang.String content_type; private java.util.Calendar date_submitted; private org.apache.axis.types.URI download_url; private java.math.BigInteger user_id; public ProjectAttachmentData() { } public ProjectAttachmentData( java.math.BigInteger id, java.lang.String filename, java.lang.String title, java.lang.String description, java.math.BigInteger size, java.lang.String content_type, java.util.Calendar date_submitted, org.apache.axis.types.URI download_url, java.math.BigInteger user_id) { this.id = id; this.filename = filename; this.title = title; this.description = description; this.size = size; this.content_type = content_type; this.date_submitted = date_submitted; this.download_url = download_url; this.user_id = user_id; } /** * Gets the id value for this ProjectAttachmentData. * * @return id */ public java.math.BigInteger getId() { return id; } /** * Sets the id value for this ProjectAttachmentData. * * @param id */ public void setId(java.math.BigInteger id) { this.id = id; } /** * Gets the filename value for this ProjectAttachmentData. * * @return filename */ public java.lang.String getFilename() { return filename; } /** * Sets the filename value for this ProjectAttachmentData. * * @param filename */ public void setFilename(java.lang.String filename) { this.filename = filename; } /** * Gets the title value for this ProjectAttachmentData. * * @return title */ public java.lang.String getTitle() { return title; } /** * Sets the title value for this ProjectAttachmentData. * * @param title */ public void setTitle(java.lang.String title) { this.title = title; } /** * Gets the description value for this ProjectAttachmentData. * * @return description */ public java.lang.String getDescription() { return description; } /** * Sets the description value for this ProjectAttachmentData. * * @param description */ public void setDescription(java.lang.String description) { this.description = description; } /** * Gets the size value for this ProjectAttachmentData. * * @return size */ public java.math.BigInteger getSize() { return size; } /** * Sets the size value for this ProjectAttachmentData. * * @param size */ public void setSize(java.math.BigInteger size) { this.size = size; } /** * Gets the content_type value for this ProjectAttachmentData. * * @return content_type */ public java.lang.String getContent_type() { return content_type; } /** * Sets the content_type value for this ProjectAttachmentData. * * @param content_type */ public void setContent_type(java.lang.String content_type) { this.content_type = content_type; } /** * Gets the date_submitted value for this ProjectAttachmentData. * * @return date_submitted */ public java.util.Calendar getDate_submitted() { return date_submitted; } /** * Sets the date_submitted value for this ProjectAttachmentData. * * @param date_submitted */ public void setDate_submitted(java.util.Calendar date_submitted) { this.date_submitted = date_submitted; } /** * Gets the download_url value for this ProjectAttachmentData. * * @return download_url */ public org.apache.axis.types.URI getDownload_url() { return download_url; } /** * Sets the download_url value for this ProjectAttachmentData. * * @param download_url */ public void setDownload_url(org.apache.axis.types.URI download_url) { this.download_url = download_url; } /** * Gets the user_id value for this ProjectAttachmentData. * * @return user_id */ public java.math.BigInteger getUser_id() { return user_id; } /** * Sets the user_id value for this ProjectAttachmentData. * * @param user_id */ public void setUser_id(java.math.BigInteger user_id) { this.user_id = user_id; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof ProjectAttachmentData)) return false; ProjectAttachmentData other = (ProjectAttachmentData) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.id==null && other.getId()==null) || (this.id!=null && this.id.equals(other.getId()))) && ((this.filename==null && other.getFilename()==null) || (this.filename!=null && this.filename.equals(other.getFilename()))) && ((this.title==null && other.getTitle()==null) || (this.title!=null && this.title.equals(other.getTitle()))) && ((this.description==null && other.getDescription()==null) || (this.description!=null && this.description.equals(other.getDescription()))) && ((this.size==null && other.getSize()==null) || (this.size!=null && this.size.equals(other.getSize()))) && ((this.content_type==null && other.getContent_type()==null) || (this.content_type!=null && this.content_type.equals(other.getContent_type()))) && ((this.date_submitted==null && other.getDate_submitted()==null) || (this.date_submitted!=null && this.date_submitted.equals(other.getDate_submitted()))) && ((this.download_url==null && other.getDownload_url()==null) || (this.download_url!=null && this.download_url.equals(other.getDownload_url()))) && ((this.user_id==null && other.getUser_id()==null) || (this.user_id!=null && this.user_id.equals(other.getUser_id()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (getId() != null) { _hashCode += getId().hashCode(); } if (getFilename() != null) { _hashCode += getFilename().hashCode(); } if (getTitle() != null) { _hashCode += getTitle().hashCode(); } if (getDescription() != null) { _hashCode += getDescription().hashCode(); } if (getSize() != null) { _hashCode += getSize().hashCode(); } if (getContent_type() != null) { _hashCode += getContent_type().hashCode(); } if (getDate_submitted() != null) { _hashCode += getDate_submitted().hashCode(); } if (getDownload_url() != null) { _hashCode += getDownload_url().hashCode(); } if (getUser_id() != null) { _hashCode += getUser_id().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(ProjectAttachmentData.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("http://futureware.biz/mantisconnect", "ProjectAttachmentData")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("id"); elemField.setXmlName(new javax.xml.namespace.QName("", "id")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "integer")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("filename"); elemField.setXmlName(new javax.xml.namespace.QName("", "filename")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("title"); elemField.setXmlName(new javax.xml.namespace.QName("", "title")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("description"); elemField.setXmlName(new javax.xml.namespace.QName("", "description")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("size"); elemField.setXmlName(new javax.xml.namespace.QName("", "size")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "integer")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("content_type"); elemField.setXmlName(new javax.xml.namespace.QName("", "content_type")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("date_submitted"); elemField.setXmlName(new javax.xml.namespace.QName("", "date_submitted")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("download_url"); elemField.setXmlName(new javax.xml.namespace.QName("", "download_url")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyURI")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("user_id"); elemField.setXmlName(new javax.xml.namespace.QName("", "user_id")); elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "integer")); elemField.setMinOccurs(0); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer( _javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer( _javaType, _xmlType, typeDesc); } }