View Javadoc

1   /**
2    * RemoteAttachment.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package org.apache.maven.plugins.patchtracker.tracking.jira.soap;
9   
10  public class RemoteAttachment  extends org.apache.maven.plugins.patchtracker.tracking.jira.soap.AbstractRemoteEntity  implements java.io.Serializable {
11      private java.lang.String author;
12  
13      private java.util.Calendar created;
14  
15      private java.lang.String filename;
16  
17      private java.lang.Long filesize;
18  
19      private java.lang.String mimetype;
20  
21      public RemoteAttachment() {
22      }
23  
24      public RemoteAttachment(
25             java.lang.String id,
26             java.lang.String author,
27             java.util.Calendar created,
28             java.lang.String filename,
29             java.lang.Long filesize,
30             java.lang.String mimetype) {
31          super(
32              id);
33          this.author = author;
34          this.created = created;
35          this.filename = filename;
36          this.filesize = filesize;
37          this.mimetype = mimetype;
38      }
39  
40  
41      /**
42       * Gets the author value for this RemoteAttachment.
43       * 
44       * @return author
45       */
46      public java.lang.String getAuthor() {
47          return author;
48      }
49  
50  
51      /**
52       * Sets the author value for this RemoteAttachment.
53       * 
54       * @param author
55       */
56      public void setAuthor(java.lang.String author) {
57          this.author = author;
58      }
59  
60  
61      /**
62       * Gets the created value for this RemoteAttachment.
63       * 
64       * @return created
65       */
66      public java.util.Calendar getCreated() {
67          return created;
68      }
69  
70  
71      /**
72       * Sets the created value for this RemoteAttachment.
73       * 
74       * @param created
75       */
76      public void setCreated(java.util.Calendar created) {
77          this.created = created;
78      }
79  
80  
81      /**
82       * Gets the filename value for this RemoteAttachment.
83       * 
84       * @return filename
85       */
86      public java.lang.String getFilename() {
87          return filename;
88      }
89  
90  
91      /**
92       * Sets the filename value for this RemoteAttachment.
93       * 
94       * @param filename
95       */
96      public void setFilename(java.lang.String filename) {
97          this.filename = filename;
98      }
99  
100 
101     /**
102      * Gets the filesize value for this RemoteAttachment.
103      * 
104      * @return filesize
105      */
106     public java.lang.Long getFilesize() {
107         return filesize;
108     }
109 
110 
111     /**
112      * Sets the filesize value for this RemoteAttachment.
113      * 
114      * @param filesize
115      */
116     public void setFilesize(java.lang.Long filesize) {
117         this.filesize = filesize;
118     }
119 
120 
121     /**
122      * Gets the mimetype value for this RemoteAttachment.
123      * 
124      * @return mimetype
125      */
126     public java.lang.String getMimetype() {
127         return mimetype;
128     }
129 
130 
131     /**
132      * Sets the mimetype value for this RemoteAttachment.
133      * 
134      * @param mimetype
135      */
136     public void setMimetype(java.lang.String mimetype) {
137         this.mimetype = mimetype;
138     }
139 
140     private java.lang.Object __equalsCalc = null;
141     public synchronized boolean equals(java.lang.Object obj) {
142         if (!(obj instanceof RemoteAttachment)) return false;
143         RemoteAttachment other = (RemoteAttachment) obj;
144         if (obj == null) return false;
145         if (this == obj) return true;
146         if (__equalsCalc != null) {
147             return (__equalsCalc == obj);
148         }
149         __equalsCalc = obj;
150         boolean _equals;
151         _equals = super.equals(obj) && 
152             ((this.author==null && other.getAuthor()==null) || 
153              (this.author!=null &&
154               this.author.equals(other.getAuthor()))) &&
155             ((this.created==null && other.getCreated()==null) || 
156              (this.created!=null &&
157               this.created.equals(other.getCreated()))) &&
158             ((this.filename==null && other.getFilename()==null) || 
159              (this.filename!=null &&
160               this.filename.equals(other.getFilename()))) &&
161             ((this.filesize==null && other.getFilesize()==null) || 
162              (this.filesize!=null &&
163               this.filesize.equals(other.getFilesize()))) &&
164             ((this.mimetype==null && other.getMimetype()==null) || 
165              (this.mimetype!=null &&
166               this.mimetype.equals(other.getMimetype())));
167         __equalsCalc = null;
168         return _equals;
169     }
170 
171     private boolean __hashCodeCalc = false;
172     public synchronized int hashCode() {
173         if (__hashCodeCalc) {
174             return 0;
175         }
176         __hashCodeCalc = true;
177         int _hashCode = super.hashCode();
178         if (getAuthor() != null) {
179             _hashCode += getAuthor().hashCode();
180         }
181         if (getCreated() != null) {
182             _hashCode += getCreated().hashCode();
183         }
184         if (getFilename() != null) {
185             _hashCode += getFilename().hashCode();
186         }
187         if (getFilesize() != null) {
188             _hashCode += getFilesize().hashCode();
189         }
190         if (getMimetype() != null) {
191             _hashCode += getMimetype().hashCode();
192         }
193         __hashCodeCalc = false;
194         return _hashCode;
195     }
196 
197     // Type metadata
198     private static org.apache.axis.description.TypeDesc typeDesc =
199         new org.apache.axis.description.TypeDesc(RemoteAttachment.class, true);
200 
201     static {
202         typeDesc.setXmlType(new javax.xml.namespace.QName("http://beans.soap.rpc.jira.atlassian.com", "RemoteAttachment"));
203         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
204         elemField.setFieldName("author");
205         elemField.setXmlName(new javax.xml.namespace.QName("", "author"));
206         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
207         elemField.setNillable(true);
208         typeDesc.addFieldDesc(elemField);
209         elemField = new org.apache.axis.description.ElementDesc();
210         elemField.setFieldName("created");
211         elemField.setXmlName(new javax.xml.namespace.QName("", "created"));
212         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
213         elemField.setNillable(true);
214         typeDesc.addFieldDesc(elemField);
215         elemField = new org.apache.axis.description.ElementDesc();
216         elemField.setFieldName("filename");
217         elemField.setXmlName(new javax.xml.namespace.QName("", "filename"));
218         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
219         elemField.setNillable(true);
220         typeDesc.addFieldDesc(elemField);
221         elemField = new org.apache.axis.description.ElementDesc();
222         elemField.setFieldName("filesize");
223         elemField.setXmlName(new javax.xml.namespace.QName("", "filesize"));
224         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
225         elemField.setNillable(true);
226         typeDesc.addFieldDesc(elemField);
227         elemField = new org.apache.axis.description.ElementDesc();
228         elemField.setFieldName("mimetype");
229         elemField.setXmlName(new javax.xml.namespace.QName("", "mimetype"));
230         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
231         elemField.setNillable(true);
232         typeDesc.addFieldDesc(elemField);
233     }
234 
235     /**
236      * Return type metadata object
237      */
238     public static org.apache.axis.description.TypeDesc getTypeDesc() {
239         return typeDesc;
240     }
241 
242     /**
243      * Get Custom Serializer
244      */
245     public static org.apache.axis.encoding.Serializer getSerializer(
246            java.lang.String mechType, 
247            java.lang.Class _javaType,  
248            javax.xml.namespace.QName _xmlType) {
249         return 
250           new  org.apache.axis.encoding.ser.BeanSerializer(
251             _javaType, _xmlType, typeDesc);
252     }
253 
254     /**
255      * Get Custom Deserializer
256      */
257     public static org.apache.axis.encoding.Deserializer getDeserializer(
258            java.lang.String mechType, 
259            java.lang.Class _javaType,  
260            javax.xml.namespace.QName _xmlType) {
261         return 
262           new  org.apache.axis.encoding.ser.BeanDeserializer(
263             _javaType, _xmlType, typeDesc);
264     }
265 
266 }