1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41 package com.tvnavig.server.searchengine.service.common;
42
43 import java.io.Serializable;
44
45 public class AssetOGC implements Serializable, Comparable<AssetOGC> {
46
47 private static final long serialVersionUID = 1L;
48
49 private int assetId;
50
51 private java.util.Calendar creationDate;
52
53 private java.lang.String description;
54
55 private java.lang.String[] formats;
56
57 private com.tvnavig.server.asset.service.common.MetaValueResult[] metaValues;
58
59 private java.lang.String previewURL;
60
61 private java.lang.String thumbnail;
62
63 private java.lang.String title;
64
65 private java.lang.String videoURL;
66
67 public AssetOGC() {
68 }
69
70 public AssetOGC(
71 int assetId,
72 java.util.Calendar creationDate,
73 java.lang.String description,
74 java.lang.String[] formats,
75 com.tvnavig.server.asset.service.common.MetaValueResult[] metaValues,
76 java.lang.String previewURL,
77 java.lang.String thumbnail,
78 java.lang.String title,
79 java.lang.String videoURL) {
80 this.assetId = assetId;
81 this.creationDate = creationDate;
82 this.description = description;
83 this.formats = formats;
84 this.metaValues = metaValues;
85 this.previewURL = previewURL;
86 this.thumbnail = thumbnail;
87 this.title = title;
88 this.videoURL = videoURL;
89 }
90
91
92
93
94
95
96 public int getAssetId() {
97 return assetId;
98 }
99
100
101
102
103
104
105
106 public void setAssetId(int assetId) {
107 this.assetId = assetId;
108 }
109
110
111
112
113
114
115
116 public java.util.Calendar getCreationDate() {
117 return creationDate;
118 }
119
120
121
122
123
124
125
126 public void setCreationDate(java.util.Calendar creationDate) {
127 this.creationDate = creationDate;
128 }
129
130
131
132
133
134
135
136 public java.lang.String getDescription() {
137 return description;
138 }
139
140
141
142
143
144
145
146 public void setDescription(java.lang.String description) {
147 this.description = description;
148 }
149
150
151
152
153
154
155
156 public java.lang.String[] getFormats() {
157 return formats;
158 }
159
160
161
162
163
164
165
166 public void setFormats(java.lang.String[] formats) {
167 this.formats = formats;
168 }
169
170
171
172
173
174
175
176 public com.tvnavig.server.asset.service.common.MetaValueResult[] getMetaValues() {
177 return metaValues;
178 }
179
180
181
182
183
184
185
186 public void setMetaValues(com.tvnavig.server.asset.service.common.MetaValueResult[] metaValues) {
187 this.metaValues = metaValues;
188 }
189
190
191
192
193
194
195
196 public java.lang.String getPreviewURL() {
197 return previewURL;
198 }
199
200
201
202
203
204
205
206 public void setPreviewURL(java.lang.String previewURL) {
207 this.previewURL = previewURL;
208 }
209
210
211
212
213
214
215
216 public java.lang.String getThumbnail() {
217 return thumbnail;
218 }
219
220
221
222
223
224
225
226 public void setThumbnail(java.lang.String thumbnail) {
227 this.thumbnail = thumbnail;
228 }
229
230
231
232
233
234
235
236 public java.lang.String getTitle() {
237 return title;
238 }
239
240
241
242
243
244
245
246 public void setTitle(java.lang.String title) {
247 this.title = title;
248 }
249
250
251
252
253
254
255
256 public java.lang.String getVideoURL() {
257 return videoURL;
258 }
259
260
261
262
263
264
265
266 public void setVideoURL(java.lang.String videoURL) {
267 this.videoURL = videoURL;
268 }
269
270 private java.lang.Object __equalsCalc = null;
271 public synchronized boolean equals(java.lang.Object obj) {
272 if (!(obj instanceof AssetOGC)) return false;
273 AssetOGC other = (AssetOGC) obj;
274 if (obj == null) return false;
275 if (this == obj) return true;
276 if (__equalsCalc != null) {
277 return (__equalsCalc == obj);
278 }
279 __equalsCalc = obj;
280 boolean _equals;
281 _equals = true &&
282 this.assetId == other.getAssetId() &&
283 ((this.creationDate==null && other.getCreationDate()==null) ||
284 (this.creationDate!=null &&
285 this.creationDate.equals(other.getCreationDate()))) &&
286 ((this.description==null && other.getDescription()==null) ||
287 (this.description!=null &&
288 this.description.equals(other.getDescription()))) &&
289 ((this.formats==null && other.getFormats()==null) ||
290 (this.formats!=null &&
291 java.util.Arrays.equals(this.formats, other.getFormats()))) &&
292 ((this.metaValues==null && other.getMetaValues()==null) ||
293 (this.metaValues!=null &&
294 java.util.Arrays.equals(this.metaValues, other.getMetaValues()))) &&
295 ((this.previewURL==null && other.getPreviewURL()==null) ||
296 (this.previewURL!=null &&
297 this.previewURL.equals(other.getPreviewURL()))) &&
298 ((this.thumbnail==null && other.getThumbnail()==null) ||
299 (this.thumbnail!=null &&
300 this.thumbnail.equals(other.getThumbnail()))) &&
301 ((this.title==null && other.getTitle()==null) ||
302 (this.title!=null &&
303 this.title.equals(other.getTitle()))) &&
304 ((this.videoURL==null && other.getVideoURL()==null) ||
305 (this.videoURL!=null &&
306 this.videoURL.equals(other.getVideoURL())));
307 __equalsCalc = null;
308 return _equals;
309 }
310
311 private boolean __hashCodeCalc = false;
312 public synchronized int hashCode() {
313 if (__hashCodeCalc) {
314 return 0;
315 }
316 __hashCodeCalc = true;
317 int _hashCode = 1;
318 _hashCode += getAssetId();
319 if (getCreationDate() != null) {
320 _hashCode += getCreationDate().hashCode();
321 }
322 if (getDescription() != null) {
323 _hashCode += getDescription().hashCode();
324 }
325 if (getFormats() != null) {
326 for (int i=0;
327 i<java.lang.reflect.Array.getLength(getFormats());
328 i++) {
329 java.lang.Object obj = java.lang.reflect.Array.get(getFormats(), i);
330 if (obj != null &&
331 !obj.getClass().isArray()) {
332 _hashCode += obj.hashCode();
333 }
334 }
335 }
336 if (getMetaValues() != null) {
337 for (int i=0;
338 i<java.lang.reflect.Array.getLength(getMetaValues());
339 i++) {
340 java.lang.Object obj = java.lang.reflect.Array.get(getMetaValues(), i);
341 if (obj != null &&
342 !obj.getClass().isArray()) {
343 _hashCode += obj.hashCode();
344 }
345 }
346 }
347 if (getPreviewURL() != null) {
348 _hashCode += getPreviewURL().hashCode();
349 }
350 if (getThumbnail() != null) {
351 _hashCode += getThumbnail().hashCode();
352 }
353 if (getTitle() != null) {
354 _hashCode += getTitle().hashCode();
355 }
356 if (getVideoURL() != null) {
357 _hashCode += getVideoURL().hashCode();
358 }
359 __hashCodeCalc = false;
360 return _hashCode;
361 }
362
363
364 private static org.apache.axis.description.TypeDesc typeDesc =
365 new org.apache.axis.description.TypeDesc(AssetOGC.class, true);
366
367 static {
368 typeDesc.setXmlType(new javax.xml.namespace.QName("http://common.service.searchengine.server.tvnavig.com", "AssetOGC"));
369 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
370 elemField.setFieldName("assetId");
371 elemField.setXmlName(new javax.xml.namespace.QName("", "assetId"));
372 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
373 elemField.setNillable(false);
374 typeDesc.addFieldDesc(elemField);
375 elemField = new org.apache.axis.description.ElementDesc();
376 elemField.setFieldName("creationDate");
377 elemField.setXmlName(new javax.xml.namespace.QName("", "creationDate"));
378 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
379 elemField.setNillable(true);
380 typeDesc.addFieldDesc(elemField);
381 elemField = new org.apache.axis.description.ElementDesc();
382 elemField.setFieldName("description");
383 elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
384 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
385 elemField.setNillable(true);
386 typeDesc.addFieldDesc(elemField);
387 elemField = new org.apache.axis.description.ElementDesc();
388 elemField.setFieldName("formats");
389 elemField.setXmlName(new javax.xml.namespace.QName("", "formats"));
390 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
391 elemField.setNillable(true);
392 typeDesc.addFieldDesc(elemField);
393 elemField = new org.apache.axis.description.ElementDesc();
394 elemField.setFieldName("metaValues");
395 elemField.setXmlName(new javax.xml.namespace.QName("", "metaValues"));
396 elemField.setXmlType(new javax.xml.namespace.QName("http://common.service.asset.server.tvnavig.com", "MetaValueResult"));
397 elemField.setNillable(true);
398 typeDesc.addFieldDesc(elemField);
399 elemField = new org.apache.axis.description.ElementDesc();
400 elemField.setFieldName("previewURL");
401 elemField.setXmlName(new javax.xml.namespace.QName("", "previewURL"));
402 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
403 elemField.setNillable(true);
404 typeDesc.addFieldDesc(elemField);
405 elemField = new org.apache.axis.description.ElementDesc();
406 elemField.setFieldName("thumbnail");
407 elemField.setXmlName(new javax.xml.namespace.QName("", "thumbnail"));
408 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
409 elemField.setNillable(true);
410 typeDesc.addFieldDesc(elemField);
411 elemField = new org.apache.axis.description.ElementDesc();
412 elemField.setFieldName("title");
413 elemField.setXmlName(new javax.xml.namespace.QName("", "title"));
414 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
415 elemField.setNillable(true);
416 typeDesc.addFieldDesc(elemField);
417 elemField = new org.apache.axis.description.ElementDesc();
418 elemField.setFieldName("videoURL");
419 elemField.setXmlName(new javax.xml.namespace.QName("", "videoURL"));
420 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
421 elemField.setNillable(true);
422 typeDesc.addFieldDesc(elemField);
423 }
424
425
426
427
428 public static org.apache.axis.description.TypeDesc getTypeDesc() {
429 return typeDesc;
430 }
431
432
433
434
435 public static org.apache.axis.encoding.Serializer getSerializer(
436 java.lang.String mechType,
437 java.lang.Class _javaType,
438 javax.xml.namespace.QName _xmlType) {
439 return
440 new org.apache.axis.encoding.ser.BeanSerializer(
441 _javaType, _xmlType, typeDesc);
442 }
443
444
445
446
447 public static org.apache.axis.encoding.Deserializer getDeserializer(
448 java.lang.String mechType,
449 java.lang.Class _javaType,
450 javax.xml.namespace.QName _xmlType) {
451 return
452 new org.apache.axis.encoding.ser.BeanDeserializer(
453 _javaType, _xmlType, typeDesc);
454 }
455
456 public int compareTo(AssetOGC assetOgc)
457 {
458 return assetOgc.getAssetId() - this.getAssetId();
459 }
460
461 }