KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > types > Category


1 /**
2  * Category.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.example.webservice.types;
9
10 public class Category implements java.io.Serializable JavaDoc {
11     private org.alfresco.example.webservice.types.Reference id;
12     private java.lang.String JavaDoc title;
13     private java.lang.String JavaDoc description;
14
15     public Category() {
16     }
17
18     public Category(
19            org.alfresco.example.webservice.types.Reference id,
20            java.lang.String JavaDoc title,
21            java.lang.String JavaDoc description) {
22            this.id = id;
23            this.title = title;
24            this.description = description;
25     }
26
27
28     /**
29      * Gets the id value for this Category.
30      *
31      * @return id
32      */

33     public org.alfresco.example.webservice.types.Reference getId() {
34         return id;
35     }
36
37
38     /**
39      * Sets the id value for this Category.
40      *
41      * @param id
42      */

43     public void setId(org.alfresco.example.webservice.types.Reference id) {
44         this.id = id;
45     }
46
47
48     /**
49      * Gets the title value for this Category.
50      *
51      * @return title
52      */

53     public java.lang.String JavaDoc getTitle() {
54         return title;
55     }
56
57
58     /**
59      * Sets the title value for this Category.
60      *
61      * @param title
62      */

63     public void setTitle(java.lang.String JavaDoc title) {
64         this.title = title;
65     }
66
67
68     /**
69      * Gets the description value for this Category.
70      *
71      * @return description
72      */

73     public java.lang.String JavaDoc getDescription() {
74         return description;
75     }
76
77
78     /**
79      * Sets the description value for this Category.
80      *
81      * @param description
82      */

83     public void setDescription(java.lang.String JavaDoc description) {
84         this.description = description;
85     }
86
87     private java.lang.Object JavaDoc __equalsCalc = null;
88     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
89         if (!(obj instanceof Category)) return false;
90         Category other = (Category) obj;
91         if (obj == null) return false;
92         if (this == obj) return true;
93         if (__equalsCalc != null) {
94             return (__equalsCalc == obj);
95         }
96         __equalsCalc = obj;
97         boolean _equals;
98         _equals = true &&
99             ((this.id==null && other.getId()==null) ||
100              (this.id!=null &&
101               this.id.equals(other.getId()))) &&
102             ((this.title==null && other.getTitle()==null) ||
103              (this.title!=null &&
104               this.title.equals(other.getTitle()))) &&
105             ((this.description==null && other.getDescription()==null) ||
106              (this.description!=null &&
107               this.description.equals(other.getDescription())));
108         __equalsCalc = null;
109         return _equals;
110     }
111
112     private boolean __hashCodeCalc = false;
113     public synchronized int hashCode() {
114         if (__hashCodeCalc) {
115             return 0;
116         }
117         __hashCodeCalc = true;
118         int _hashCode = 1;
119         if (getId() != null) {
120             _hashCode += getId().hashCode();
121         }
122         if (getTitle() != null) {
123             _hashCode += getTitle().hashCode();
124         }
125         if (getDescription() != null) {
126             _hashCode += getDescription().hashCode();
127         }
128         __hashCodeCalc = false;
129         return _hashCode;
130     }
131
132     // Type metadata
133
private static org.apache.axis.description.TypeDesc typeDesc =
134         new org.apache.axis.description.TypeDesc(Category.class, true);
135
136     static {
137         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Category"));
138         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
139         elemField.setFieldName("id");
140         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "id"));
141         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
142         elemField.setNillable(false);
143         typeDesc.addFieldDesc(elemField);
144         elemField = new org.apache.axis.description.ElementDesc();
145         elemField.setFieldName("title");
146         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "title"));
147         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
148         elemField.setMinOccurs(0);
149         elemField.setNillable(false);
150         typeDesc.addFieldDesc(elemField);
151         elemField = new org.apache.axis.description.ElementDesc();
152         elemField.setFieldName("description");
153         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "description"));
154         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
155         elemField.setMinOccurs(0);
156         elemField.setNillable(false);
157         typeDesc.addFieldDesc(elemField);
158     }
159
160     /**
161      * Return type metadata object
162      */

163     public static org.apache.axis.description.TypeDesc getTypeDesc() {
164         return typeDesc;
165     }
166
167     /**
168      * Get Custom Serializer
169      */

170     public static org.apache.axis.encoding.Serializer getSerializer(
171            java.lang.String JavaDoc mechType,
172            java.lang.Class JavaDoc _javaType,
173            javax.xml.namespace.QName JavaDoc _xmlType) {
174         return
175           new org.apache.axis.encoding.ser.BeanSerializer(
176             _javaType, _xmlType, typeDesc);
177     }
178
179     /**
180      * Get Custom Deserializer
181      */

182     public static org.apache.axis.encoding.Deserializer getDeserializer(
183            java.lang.String JavaDoc mechType,
184            java.lang.Class JavaDoc _javaType,
185            javax.xml.namespace.QName JavaDoc _xmlType) {
186         return
187           new org.apache.axis.encoding.ser.BeanDeserializer(
188             _javaType, _xmlType, typeDesc);
189     }
190
191 }
192
Popular Tags