KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jass > examples > travelagency > ws > NotEnoughSeatsException


1 /**
2  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3  -
4  - JASS: Java Advanced tranSaction Support
5  -
6  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
7  -
8  - This module was originally developed by
9  -
10  - LSD (Distributed Systems Lab, http://lsd.ls.fi.upm.es/lsd/lsd.htm)
11  - at Universidad Politecnica de Madrid (UPM) as an ObjectWeb Consortium
12  - (http://www.objectweb.org) project.
13  -
14  - This project has been partially funded by the European Commission under
15  - the IST programme of V FP grant IST-2001-37126 and by the Spanish
16  - Ministry of Science & Technology (MCyT) grants TIC2002-10376-E and
17  - TIC2001-1586-C03-02
18  -
19  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
20  - The original code and portions created by LSD are
21  - Copyright (c) 2004 LSD (UPM)
22  - All rights reserved.
23  -
24  - Redistribution and use in source and binary forms, with or without
25  - modification, are permitted provided that the following conditions are met:
26  -
27  - -Redistributions of source code must retain the above copyright notice, this
28  - list of conditions and the following disclaimer.
29  -
30  - -Redistributions in binary form must reproduce the above copyright notice,
31  - this list of conditions and the following disclaimer in the documentation
32  - and/or other materials provided with the distribution.
33  -
34  - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
35  - AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
36  - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
37  - ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
38  - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
39  - CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
40  - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
41  - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
42  - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
43  - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
44  - POSSIBILITY OF SUCH DAMAGE.
45  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
46  -
47  - Author: Francisco Perez Sorrosal (frperezs)
48  -
49  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
50 */

51
52 package org.objectweb.jass.examples.travelagency.ws;
53
54 public class NotEnoughSeatsException extends org.apache.axis.AxisFault implements java.io.Serializable JavaDoc {
55
56     public NotEnoughSeatsException() {
57     }
58
59     private java.lang.Object JavaDoc __equalsCalc = null;
60     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
61         if (!(obj instanceof NotEnoughSeatsException)) return false;
62         NotEnoughSeatsException other = (NotEnoughSeatsException) obj;
63         if (obj == null) return false;
64         if (this == obj) return true;
65         if (__equalsCalc != null) {
66             return (__equalsCalc == obj);
67         }
68         __equalsCalc = obj;
69         boolean _equals;
70         _equals = true;
71         __equalsCalc = null;
72         return _equals;
73     }
74
75     private boolean __hashCodeCalc = false;
76     public synchronized int hashCode() {
77         if (__hashCodeCalc) {
78             return 0;
79         }
80         __hashCodeCalc = true;
81         int _hashCode = 1;
82         __hashCodeCalc = false;
83         return _hashCode;
84     }
85
86     // Type metadata
87
private static org.apache.axis.description.TypeDesc typeDesc =
88         new org.apache.axis.description.TypeDesc(NotEnoughSeatsException.class);
89
90     static {
91         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://exceptions.travelagency.examples.jass.objectweb.org", "NotEnoughSeatsException"));
92     }
93
94     /**
95      * Return type metadata object
96      */

97     public static org.apache.axis.description.TypeDesc getTypeDesc() {
98         return typeDesc;
99     }
100
101     /**
102      * Get Custom Serializer
103      */

104     public static org.apache.axis.encoding.Serializer getSerializer(
105            java.lang.String JavaDoc mechType,
106            java.lang.Class JavaDoc _javaType,
107            javax.xml.namespace.QName JavaDoc _xmlType) {
108         return
109           new org.apache.axis.encoding.ser.BeanSerializer(
110             _javaType, _xmlType, typeDesc);
111     }
112
113     /**
114      * Get Custom Deserializer
115      */

116     public static org.apache.axis.encoding.Deserializer getDeserializer(
117            java.lang.String JavaDoc mechType,
118            java.lang.Class JavaDoc _javaType,
119            javax.xml.namespace.QName JavaDoc _xmlType) {
120         return
121           new org.apache.axis.encoding.ser.BeanDeserializer(
122             _javaType, _xmlType, typeDesc);
123     }
124
125
126     /**
127      * Writes the exception data to the faultDetails
128      */

129     public void writeDetails(javax.xml.namespace.QName JavaDoc qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException JavaDoc {
130         context.serialize(qname, null, this);
131     }
132 }
133
Popular Tags