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