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   * AssetPlayer.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  public class AssetPlayer  implements java.io.Serializable {
44      private java.lang.String htmlEmbed;
45  
46      private java.lang.String thumbnail;
47  
48      public AssetPlayer() {
49      }
50  
51      public AssetPlayer(
52             java.lang.String htmlEmbed,
53             java.lang.String thumbnail) {
54             this.htmlEmbed = htmlEmbed;
55             this.thumbnail = thumbnail;
56      }
57  
58  
59      /**
60       * Gets the htmlEmbed value for this AssetPlayer.
61       * 
62       * @return htmlEmbed
63       */
64      public java.lang.String getHtmlEmbed() {
65          return htmlEmbed;
66      }
67  
68  
69      /**
70       * Sets the htmlEmbed value for this AssetPlayer.
71       * 
72       * @param htmlEmbed
73       */
74      public void setHtmlEmbed(java.lang.String htmlEmbed) {
75          this.htmlEmbed = htmlEmbed;
76      }
77  
78  
79      /**
80       * Gets the thumbnail value for this AssetPlayer.
81       * 
82       * @return thumbnail
83       */
84      public java.lang.String getThumbnail() {
85          return thumbnail;
86      }
87  
88  
89      /**
90       * Sets the thumbnail value for this AssetPlayer.
91       * 
92       * @param thumbnail
93       */
94      public void setThumbnail(java.lang.String thumbnail) {
95          this.thumbnail = thumbnail;
96      }
97  
98      private java.lang.Object __equalsCalc = null;
99      public synchronized boolean equals(java.lang.Object obj) {
100         if (!(obj instanceof AssetPlayer)) return false;
101         AssetPlayer other = (AssetPlayer) obj;
102         if (obj == null) return false;
103         if (this == obj) return true;
104         if (__equalsCalc != null) {
105             return (__equalsCalc == obj);
106         }
107         __equalsCalc = obj;
108         boolean _equals;
109         _equals = true && 
110             ((this.htmlEmbed==null && other.getHtmlEmbed()==null) || 
111              (this.htmlEmbed!=null &&
112               this.htmlEmbed.equals(other.getHtmlEmbed()))) &&
113             ((this.thumbnail==null && other.getThumbnail()==null) || 
114              (this.thumbnail!=null &&
115               this.thumbnail.equals(other.getThumbnail())));
116         __equalsCalc = null;
117         return _equals;
118     }
119 
120     private boolean __hashCodeCalc = false;
121     public synchronized int hashCode() {
122         if (__hashCodeCalc) {
123             return 0;
124         }
125         __hashCodeCalc = true;
126         int _hashCode = 1;
127         if (getHtmlEmbed() != null) {
128             _hashCode += getHtmlEmbed().hashCode();
129         }
130         if (getThumbnail() != null) {
131             _hashCode += getThumbnail().hashCode();
132         }
133         __hashCodeCalc = false;
134         return _hashCode;
135     }
136 
137     // Type metadata
138     private static org.apache.axis.description.TypeDesc typeDesc =
139         new org.apache.axis.description.TypeDesc(AssetPlayer.class, true);
140 
141     static {
142         typeDesc.setXmlType(new javax.xml.namespace.QName("http://common.service.searchengine.server.tvnavig.com", "AssetPlayer"));
143         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
144         elemField.setFieldName("htmlEmbed");
145         elemField.setXmlName(new javax.xml.namespace.QName("", "htmlEmbed"));
146         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
147         elemField.setNillable(true);
148         typeDesc.addFieldDesc(elemField);
149         elemField = new org.apache.axis.description.ElementDesc();
150         elemField.setFieldName("thumbnail");
151         elemField.setXmlName(new javax.xml.namespace.QName("", "thumbnail"));
152         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
153         elemField.setNillable(true);
154         typeDesc.addFieldDesc(elemField);
155     }
156 
157     /**
158      * Return type metadata object
159      */
160     public static org.apache.axis.description.TypeDesc getTypeDesc() {
161         return typeDesc;
162     }
163 
164     /**
165      * Get Custom Serializer
166      */
167     public static org.apache.axis.encoding.Serializer getSerializer(
168            java.lang.String mechType, 
169            java.lang.Class _javaType,  
170            javax.xml.namespace.QName _xmlType) {
171         return 
172           new  org.apache.axis.encoding.ser.BeanSerializer(
173             _javaType, _xmlType, typeDesc);
174     }
175 
176     /**
177      * Get Custom Deserializer
178      */
179     public static org.apache.axis.encoding.Deserializer getDeserializer(
180            java.lang.String mechType, 
181            java.lang.Class _javaType,  
182            javax.xml.namespace.QName _xmlType) {
183         return 
184           new  org.apache.axis.encoding.ser.BeanDeserializer(
185             _javaType, _xmlType, typeDesc);
186     }
187 
188 }