View Javadoc

1   /**
2    * Fault.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package org.xmlsoap.schemas.soap.envelope;
9   
10  
11  /**
12   * Fault reporting structure
13   */
14  public class Fault  implements java.io.Serializable {
15      private javax.xml.namespace.QName faultcode;
16  
17      private java.lang.String faultstring;
18  
19      private org.apache.axis.types.URI faultactor;
20  
21      private org.xmlsoap.schemas.soap.envelope.Detail detail;
22  
23      public Fault() {
24      }
25  
26      public Fault(
27             javax.xml.namespace.QName faultcode,
28             java.lang.String faultstring,
29             org.apache.axis.types.URI faultactor,
30             org.xmlsoap.schemas.soap.envelope.Detail detail) {
31             this.faultcode = faultcode;
32             this.faultstring = faultstring;
33             this.faultactor = faultactor;
34             this.detail = detail;
35      }
36  
37  
38      /**
39       * Gets the faultcode value for this Fault.
40       * 
41       * @return faultcode
42       */
43      public javax.xml.namespace.QName getFaultcode() {
44          return faultcode;
45      }
46  
47  
48      /**
49       * Sets the faultcode value for this Fault.
50       * 
51       * @param faultcode
52       */
53      public void setFaultcode(javax.xml.namespace.QName faultcode) {
54          this.faultcode = faultcode;
55      }
56  
57  
58      /**
59       * Gets the faultstring value for this Fault.
60       * 
61       * @return faultstring
62       */
63      public java.lang.String getFaultstring() {
64          return faultstring;
65      }
66  
67  
68      /**
69       * Sets the faultstring value for this Fault.
70       * 
71       * @param faultstring
72       */
73      public void setFaultstring(java.lang.String faultstring) {
74          this.faultstring = faultstring;
75      }
76  
77  
78      /**
79       * Gets the faultactor value for this Fault.
80       * 
81       * @return faultactor
82       */
83      public org.apache.axis.types.URI getFaultactor() {
84          return faultactor;
85      }
86  
87  
88      /**
89       * Sets the faultactor value for this Fault.
90       * 
91       * @param faultactor
92       */
93      public void setFaultactor(org.apache.axis.types.URI faultactor) {
94          this.faultactor = faultactor;
95      }
96  
97  
98      /**
99       * Gets the detail value for this Fault.
100      * 
101      * @return detail
102      */
103     public org.xmlsoap.schemas.soap.envelope.Detail getDetail() {
104         return detail;
105     }
106 
107 
108     /**
109      * Sets the detail value for this Fault.
110      * 
111      * @param detail
112      */
113     public void setDetail(org.xmlsoap.schemas.soap.envelope.Detail detail) {
114         this.detail = detail;
115     }
116 
117     private java.lang.Object __equalsCalc = null;
118     public synchronized boolean equals(java.lang.Object obj) {
119         if (!(obj instanceof Fault)) return false;
120         Fault other = (Fault) obj;
121         if (obj == null) return false;
122         if (this == obj) return true;
123         if (__equalsCalc != null) {
124             return (__equalsCalc == obj);
125         }
126         __equalsCalc = obj;
127         boolean _equals;
128         _equals = true && 
129             ((this.faultcode==null && other.getFaultcode()==null) || 
130              (this.faultcode!=null &&
131               this.faultcode.equals(other.getFaultcode()))) &&
132             ((this.faultstring==null && other.getFaultstring()==null) || 
133              (this.faultstring!=null &&
134               this.faultstring.equals(other.getFaultstring()))) &&
135             ((this.faultactor==null && other.getFaultactor()==null) || 
136              (this.faultactor!=null &&
137               this.faultactor.equals(other.getFaultactor()))) &&
138             ((this.detail==null && other.getDetail()==null) || 
139              (this.detail!=null &&
140               this.detail.equals(other.getDetail())));
141         __equalsCalc = null;
142         return _equals;
143     }
144 
145     private boolean __hashCodeCalc = false;
146     public synchronized int hashCode() {
147         if (__hashCodeCalc) {
148             return 0;
149         }
150         __hashCodeCalc = true;
151         int _hashCode = 1;
152         if (getFaultcode() != null) {
153             _hashCode += getFaultcode().hashCode();
154         }
155         if (getFaultstring() != null) {
156             _hashCode += getFaultstring().hashCode();
157         }
158         if (getFaultactor() != null) {
159             _hashCode += getFaultactor().hashCode();
160         }
161         if (getDetail() != null) {
162             _hashCode += getDetail().hashCode();
163         }
164         __hashCodeCalc = false;
165         return _hashCode;
166     }
167 
168     // Type metadata
169     private static org.apache.axis.description.TypeDesc typeDesc =
170         new org.apache.axis.description.TypeDesc(Fault.class, true);
171 
172     static {
173         typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/envelope/", "Fault"));
174         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
175         elemField.setFieldName("faultcode");
176         elemField.setXmlName(new javax.xml.namespace.QName("", "faultcode"));
177         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "QName"));
178         elemField.setNillable(false);
179         typeDesc.addFieldDesc(elemField);
180         elemField = new org.apache.axis.description.ElementDesc();
181         elemField.setFieldName("faultstring");
182         elemField.setXmlName(new javax.xml.namespace.QName("", "faultstring"));
183         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
184         elemField.setNillable(false);
185         typeDesc.addFieldDesc(elemField);
186         elemField = new org.apache.axis.description.ElementDesc();
187         elemField.setFieldName("faultactor");
188         elemField.setXmlName(new javax.xml.namespace.QName("", "faultactor"));
189         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyURI"));
190         elemField.setMinOccurs(0);
191         elemField.setNillable(false);
192         typeDesc.addFieldDesc(elemField);
193         elemField = new org.apache.axis.description.ElementDesc();
194         elemField.setFieldName("detail");
195         elemField.setXmlName(new javax.xml.namespace.QName("", "detail"));
196         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/envelope/", "detail"));
197         elemField.setMinOccurs(0);
198         elemField.setNillable(false);
199         typeDesc.addFieldDesc(elemField);
200     }
201 
202     /**
203      * Return type metadata object
204      */
205     public static org.apache.axis.description.TypeDesc getTypeDesc() {
206         return typeDesc;
207     }
208 
209     /**
210      * Get Custom Serializer
211      */
212     public static org.apache.axis.encoding.Serializer getSerializer(
213            java.lang.String mechType, 
214            java.lang.Class _javaType,  
215            javax.xml.namespace.QName _xmlType) {
216         return 
217           new  org.apache.axis.encoding.ser.BeanSerializer(
218             _javaType, _xmlType, typeDesc);
219     }
220 
221     /**
222      * Get Custom Deserializer
223      */
224     public static org.apache.axis.encoding.Deserializer getDeserializer(
225            java.lang.String mechType, 
226            java.lang.Class _javaType,  
227            javax.xml.namespace.QName _xmlType) {
228         return 
229           new  org.apache.axis.encoding.ser.BeanDeserializer(
230             _javaType, _xmlType, typeDesc);
231     }
232 
233 }