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