KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > wssample > gen > google > DirectoryCategory


1 /**
2  * DirectoryCategory.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2RC2 Dec 15, 2004 (10:53:17 CET) WSDL2Java emitter.
6  */

7
8 package org.objectweb.wssample.gen.google;
9
10 public class DirectoryCategory implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc fullViewableName;
12     private java.lang.String JavaDoc specialEncoding;
13
14     public DirectoryCategory() {
15     }
16
17     public DirectoryCategory(
18            java.lang.String JavaDoc fullViewableName,
19            java.lang.String JavaDoc specialEncoding) {
20            this.fullViewableName = fullViewableName;
21            this.specialEncoding = specialEncoding;
22     }
23
24
25     /**
26      * Gets the fullViewableName value for this DirectoryCategory.
27      *
28      * @return fullViewableName
29      */

30     public java.lang.String JavaDoc getFullViewableName() {
31         return fullViewableName;
32     }
33
34
35     /**
36      * Sets the fullViewableName value for this DirectoryCategory.
37      *
38      * @param fullViewableName
39      */

40     public void setFullViewableName(java.lang.String JavaDoc fullViewableName) {
41         this.fullViewableName = fullViewableName;
42     }
43
44
45     /**
46      * Gets the specialEncoding value for this DirectoryCategory.
47      *
48      * @return specialEncoding
49      */

50     public java.lang.String JavaDoc getSpecialEncoding() {
51         return specialEncoding;
52     }
53
54
55     /**
56      * Sets the specialEncoding value for this DirectoryCategory.
57      *
58      * @param specialEncoding
59      */

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

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

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

143     public static org.apache.axis.encoding.Deserializer getDeserializer(
144            java.lang.String JavaDoc mechType,
145            java.lang.Class JavaDoc _javaType,
146            javax.xml.namespace.QName JavaDoc _xmlType) {
147         return
148           new org.apache.axis.encoding.ser.BeanDeserializer(
149             _javaType, _xmlType, typeDesc);
150     }
151
152 }
153
Popular Tags