View Javadoc
1   /*
2    * Copyright (c) 2002-2017, Mairie de Paris
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions
7    * are met:
8    *
9    *  1. Redistributions of source code must retain the above copyright notice
10   *     and the following disclaimer.
11   *
12   *  2. Redistributions in binary form must reproduce the above copyright notice
13   *     and the following disclaimer in the documentation and/or other materials
14   *     provided with the distribution.
15   *
16   *  3. Neither the name of 'Mairie de Paris' nor 'Lutece' nor the names of its
17   *     contributors may be used to endorse or promote products derived from
18   *     this software without specific prior written permission.
19   *
20   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23   * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
24   * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25   * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26   * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27   * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28   * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30   * POSSIBILITY OF SUCH DAMAGE.
31   *
32   * License 1.0
33   */
34  /**
35   * AssetOGC.java
36   *
37   * This file was auto-generated from WSDL
38   * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
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       * Gets the assetId value for this AssetOGC.
93       * 
94       * @return assetId
95       */
96      public int getAssetId() {
97          return assetId;
98      }
99  
100 
101     /**
102      * Sets the assetId value for this AssetOGC.
103      * 
104      * @param assetId
105      */
106     public void setAssetId(int assetId) {
107         this.assetId = assetId;
108     }
109 
110 
111     /**
112      * Gets the creationDate value for this AssetOGC.
113      * 
114      * @return creationDate
115      */
116     public java.util.Calendar getCreationDate() {
117         return creationDate;
118     }
119 
120 
121     /**
122      * Sets the creationDate value for this AssetOGC.
123      * 
124      * @param creationDate
125      */
126     public void setCreationDate(java.util.Calendar creationDate) {
127         this.creationDate = creationDate;
128     }
129 
130 
131     /**
132      * Gets the description value for this AssetOGC.
133      * 
134      * @return description
135      */
136     public java.lang.String getDescription() {
137         return description;
138     }
139 
140 
141     /**
142      * Sets the description value for this AssetOGC.
143      * 
144      * @param description
145      */
146     public void setDescription(java.lang.String description) {
147         this.description = description;
148     }
149 
150 
151     /**
152      * Gets the formats value for this AssetOGC.
153      * 
154      * @return formats
155      */
156     public java.lang.String[] getFormats() {
157         return formats;
158     }
159 
160 
161     /**
162      * Sets the formats value for this AssetOGC.
163      * 
164      * @param formats
165      */
166     public void setFormats(java.lang.String[] formats) {
167         this.formats = formats;
168     }
169 
170 
171     /**
172      * Gets the metaValues value for this AssetOGC.
173      * 
174      * @return metaValues
175      */
176     public com.tvnavig.server.asset.service.common.MetaValueResult[] getMetaValues() {
177         return metaValues;
178     }
179 
180 
181     /**
182      * Sets the metaValues value for this AssetOGC.
183      * 
184      * @param metaValues
185      */
186     public void setMetaValues(com.tvnavig.server.asset.service.common.MetaValueResult[] metaValues) {
187         this.metaValues = metaValues;
188     }
189 
190 
191     /**
192      * Gets the previewURL value for this AssetOGC.
193      * 
194      * @return previewURL
195      */
196     public java.lang.String getPreviewURL() {
197         return previewURL;
198     }
199 
200 
201     /**
202      * Sets the previewURL value for this AssetOGC.
203      * 
204      * @param previewURL
205      */
206     public void setPreviewURL(java.lang.String previewURL) {
207         this.previewURL = previewURL;
208     }
209 
210 
211     /**
212      * Gets the thumbnail value for this AssetOGC.
213      * 
214      * @return thumbnail
215      */
216     public java.lang.String getThumbnail() {
217         return thumbnail;
218     }
219 
220 
221     /**
222      * Sets the thumbnail value for this AssetOGC.
223      * 
224      * @param thumbnail
225      */
226     public void setThumbnail(java.lang.String thumbnail) {
227         this.thumbnail = thumbnail;
228     }
229 
230 
231     /**
232      * Gets the title value for this AssetOGC.
233      * 
234      * @return title
235      */
236     public java.lang.String getTitle() {
237         return title;
238     }
239 
240 
241     /**
242      * Sets the title value for this AssetOGC.
243      * 
244      * @param title
245      */
246     public void setTitle(java.lang.String title) {
247         this.title = title;
248     }
249 
250 
251     /**
252      * Gets the videoURL value for this AssetOGC.
253      * 
254      * @return videoURL
255      */
256     public java.lang.String getVideoURL() {
257         return videoURL;
258     }
259 
260 
261     /**
262      * Sets the videoURL value for this AssetOGC.
263      * 
264      * @param videoURL
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     // Type metadata
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      * Return type metadata object
427      */
428     public static org.apache.axis.description.TypeDesc getTypeDesc() {
429         return typeDesc;
430     }
431 
432     /**
433      * Get Custom Serializer
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      * Get Custom Deserializer
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 }