KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > content > ContentFault


1 /**
2  * ContentFault.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.repo.webservice.content;
9
10 public class ContentFault extends org.apache.axis.AxisFault implements java.io.Serializable JavaDoc {
11     private int errorCode;
12
13     private java.lang.String JavaDoc message1;
14
15     public ContentFault() {
16     }
17
18     public ContentFault(
19            int errorCode,
20            java.lang.String JavaDoc message1) {
21         this.errorCode = errorCode;
22         this.message1 = message1;
23     }
24
25
26     /**
27      * Gets the errorCode value for this ContentFault.
28      *
29      * @return errorCode
30      */

31     public int getErrorCode() {
32         return errorCode;
33     }
34
35
36     /**
37      * Sets the errorCode value for this ContentFault.
38      *
39      * @param errorCode
40      */

41     public void setErrorCode(int errorCode) {
42         this.errorCode = errorCode;
43     }
44
45
46     /**
47      * Gets the message1 value for this ContentFault.
48      *
49      * @return message1
50      */

51     public java.lang.String JavaDoc getMessage1() {
52         return message1;
53     }
54
55
56     /**
57      * Sets the message1 value for this ContentFault.
58      *
59      * @param message1
60      */

61     public void setMessage1(java.lang.String JavaDoc message1) {
62         this.message1 = message1;
63     }
64
65     private java.lang.Object JavaDoc __equalsCalc = null;
66     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
67         if (!(obj instanceof ContentFault)) return false;
68         ContentFault other = (ContentFault) obj;
69         if (obj == null) return false;
70         if (this == obj) return true;
71         if (__equalsCalc != null) {
72             return (__equalsCalc == obj);
73         }
74         __equalsCalc = obj;
75         boolean _equals;
76         _equals = true &&
77             this.errorCode == other.getErrorCode() &&
78             ((this.message1==null && other.getMessage1()==null) ||
79              (this.message1!=null &&
80               this.message1.equals(other.getMessage1())));
81         __equalsCalc = null;
82         return _equals;
83     }
84
85     private boolean __hashCodeCalc = false;
86     public synchronized int hashCode() {
87         if (__hashCodeCalc) {
88             return 0;
89         }
90         __hashCodeCalc = true;
91         int _hashCode = 1;
92         _hashCode += getErrorCode();
93         if (getMessage1() != null) {
94             _hashCode += getMessage1().hashCode();
95         }
96         __hashCodeCalc = false;
97         return _hashCode;
98     }
99
100     // Type metadata
101
private static org.apache.axis.description.TypeDesc typeDesc =
102         new org.apache.axis.description.TypeDesc(ContentFault.class, true);
103
104     static {
105         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"));
106         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
107         elemField.setFieldName("errorCode");
108         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "errorCode"));
109         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "int"));
110         elemField.setNillable(false);
111         typeDesc.addFieldDesc(elemField);
112         elemField = new org.apache.axis.description.ElementDesc();
113         elemField.setFieldName("message1");
114         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "message"));
115         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
116         elemField.setNillable(false);
117         typeDesc.addFieldDesc(elemField);
118     }
119
120     /**
121      * Return type metadata object
122      */

123     public static org.apache.axis.description.TypeDesc getTypeDesc() {
124         return typeDesc;
125     }
126
127     /**
128      * Get Custom Serializer
129      */

130     public static org.apache.axis.encoding.Serializer getSerializer(
131            java.lang.String JavaDoc mechType,
132            java.lang.Class JavaDoc _javaType,
133            javax.xml.namespace.QName JavaDoc _xmlType) {
134         return
135           new org.apache.axis.encoding.ser.BeanSerializer(
136             _javaType, _xmlType, typeDesc);
137     }
138
139     /**
140      * Get Custom Deserializer
141      */

142     public static org.apache.axis.encoding.Deserializer getDeserializer(
143            java.lang.String JavaDoc mechType,
144            java.lang.Class JavaDoc _javaType,
145            javax.xml.namespace.QName JavaDoc _xmlType) {
146         return
147           new org.apache.axis.encoding.ser.BeanDeserializer(
148             _javaType, _xmlType, typeDesc);
149     }
150
151
152     /**
153      * Writes the exception data to the faultDetails
154      */

155     public void writeDetails(javax.xml.namespace.QName JavaDoc qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException JavaDoc {
156         context.serialize(qname, null, this);
157     }
158 }
159
Popular Tags