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