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   * ServiceException.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.util;
42  
43  public class ServiceException  extends org.apache.axis.AxisFault  implements java.io.Serializable {
44      private java.lang.String[] error;
45  
46      public ServiceException() {
47      }
48  
49      public ServiceException(
50             java.lang.String[] error) {
51          this.error = error;
52      }
53  
54  
55      /**
56       * Gets the error value for this ServiceException.
57       * 
58       * @return error
59       */
60      public java.lang.String[] getError() {
61          return error;
62      }
63  
64  
65      /**
66       * Sets the error value for this ServiceException.
67       * 
68       * @param error
69       */
70      public void setError(java.lang.String[] error) {
71          this.error = error;
72      }
73  
74      private java.lang.Object __equalsCalc = null;
75      public synchronized boolean equals(java.lang.Object obj) {
76          if (!(obj instanceof ServiceException)) return false;
77          ServiceException other = (ServiceException) obj;
78          if (obj == null) return false;
79          if (this == obj) return true;
80          if (__equalsCalc != null) {
81              return (__equalsCalc == obj);
82          }
83          __equalsCalc = obj;
84          boolean _equals;
85          _equals = true && 
86              ((this.error==null && other.getError()==null) || 
87               (this.error!=null &&
88                java.util.Arrays.equals(this.error, other.getError())));
89          __equalsCalc = null;
90          return _equals;
91      }
92  
93      private boolean __hashCodeCalc = false;
94      public synchronized int hashCode() {
95          if (__hashCodeCalc) {
96              return 0;
97          }
98          __hashCodeCalc = true;
99          int _hashCode = 1;
100         if (getError() != null) {
101             for (int i=0;
102                  i<java.lang.reflect.Array.getLength(getError());
103                  i++) {
104                 java.lang.Object obj = java.lang.reflect.Array.get(getError(), i);
105                 if (obj != null &&
106                     !obj.getClass().isArray()) {
107                     _hashCode += obj.hashCode();
108                 }
109             }
110         }
111         __hashCodeCalc = false;
112         return _hashCode;
113     }
114 
115     // Type metadata
116     private static org.apache.axis.description.TypeDesc typeDesc =
117         new org.apache.axis.description.TypeDesc(ServiceException.class, true);
118 
119     static {
120         typeDesc.setXmlType(new javax.xml.namespace.QName("http://util.server.tvnavig.com", "ServiceException"));
121         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
122         elemField.setFieldName("error");
123         elemField.setXmlName(new javax.xml.namespace.QName("", "error"));
124         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
125         elemField.setNillable(true);
126         typeDesc.addFieldDesc(elemField);
127     }
128 
129     /**
130      * Return type metadata object
131      */
132     public static org.apache.axis.description.TypeDesc getTypeDesc() {
133         return typeDesc;
134     }
135 
136     /**
137      * Get Custom Serializer
138      */
139     public static org.apache.axis.encoding.Serializer getSerializer(
140            java.lang.String mechType, 
141            java.lang.Class _javaType,  
142            javax.xml.namespace.QName _xmlType) {
143         return 
144           new  org.apache.axis.encoding.ser.BeanSerializer(
145             _javaType, _xmlType, typeDesc);
146     }
147 
148     /**
149      * Get Custom Deserializer
150      */
151     public static org.apache.axis.encoding.Deserializer getDeserializer(
152            java.lang.String mechType, 
153            java.lang.Class _javaType,  
154            javax.xml.namespace.QName _xmlType) {
155         return 
156           new  org.apache.axis.encoding.ser.BeanDeserializer(
157             _javaType, _xmlType, typeDesc);
158     }
159 
160 
161     /**
162      * Writes the exception data to the faultDetails
163      */
164     public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException {
165         context.serialize(qname, null, this);
166     }
167 }