01: /**
02: * Fault.java
03: *
04: * This file was auto-generated from WSDL
05: * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
06: */package oasis.names.tc.wsrp.v1.types;
07:
08: public class Fault extends org.apache.axis.AxisFault implements
09: java.io.Serializable {
10:
11: public Fault() {
12: }
13:
14: private java.lang.Object __equalsCalc = null;
15:
16: public synchronized boolean equals(java.lang.Object obj) {
17: if (!(obj instanceof Fault))
18: return false;
19: Fault other = (Fault) obj;
20: if (obj == null)
21: return false;
22: if (this == obj)
23: return true;
24: if (__equalsCalc != null) {
25: return (__equalsCalc == obj);
26: }
27: __equalsCalc = obj;
28: boolean _equals;
29: _equals = true;
30: __equalsCalc = null;
31: return _equals;
32: }
33:
34: private boolean __hashCodeCalc = false;
35:
36: public synchronized int hashCode() {
37: if (__hashCodeCalc) {
38: return 0;
39: }
40: __hashCodeCalc = true;
41: int _hashCode = 1;
42: __hashCodeCalc = false;
43: return _hashCode;
44: }
45:
46: // Type metadata
47: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
48: Fault.class, true);
49:
50: static {
51: typeDesc.setXmlType(new javax.xml.namespace.QName(
52: "urn:oasis:names:tc:wsrp:v1:types", "Fault"));
53: }
54:
55: /**
56: * Return type metadata object
57: */
58: public static org.apache.axis.description.TypeDesc getTypeDesc() {
59: return typeDesc;
60: }
61:
62: /**
63: * Get Custom Serializer
64: */
65: public static org.apache.axis.encoding.Serializer getSerializer(
66: java.lang.String mechType, java.lang.Class _javaType,
67: javax.xml.namespace.QName _xmlType) {
68: return new org.apache.axis.encoding.ser.BeanSerializer(
69: _javaType, _xmlType, typeDesc);
70: }
71:
72: /**
73: * Get Custom Deserializer
74: */
75: public static org.apache.axis.encoding.Deserializer getDeserializer(
76: java.lang.String mechType, java.lang.Class _javaType,
77: javax.xml.namespace.QName _xmlType) {
78: return new org.apache.axis.encoding.ser.BeanDeserializer(
79: _javaType, _xmlType, typeDesc);
80: }
81:
82: /**
83: * Writes the exception data to the faultDetails
84: */
85: public void writeDetails(javax.xml.namespace.QName qname,
86: org.apache.axis.encoding.SerializationContext context)
87: throws java.io.IOException {
88: context.serialize(qname, null, this);
89: }
90: }
|