KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > webservice > types > Classification


1 /**
2  * Classification.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.webservice.types;
9
10 public class Classification implements java.io.Serializable JavaDoc {
11     private java.lang.String JavaDoc classification;
12
13     private org.alfresco.webservice.types.Category rootCategory;
14
15     private java.lang.String JavaDoc title;
16
17     private java.lang.String JavaDoc description;
18
19     public Classification() {
20     }
21
22     public Classification(
23            java.lang.String JavaDoc classification,
24            org.alfresco.webservice.types.Category rootCategory,
25            java.lang.String JavaDoc title,
26            java.lang.String JavaDoc description) {
27            this.classification = classification;
28            this.rootCategory = rootCategory;
29            this.title = title;
30            this.description = description;
31     }
32
33
34     /**
35      * Gets the classification value for this Classification.
36      *
37      * @return classification
38      */

39     public java.lang.String JavaDoc getClassification() {
40         return classification;
41     }
42
43
44     /**
45      * Sets the classification value for this Classification.
46      *
47      * @param classification
48      */

49     public void setClassification(java.lang.String JavaDoc classification) {
50         this.classification = classification;
51     }
52
53
54     /**
55      * Gets the rootCategory value for this Classification.
56      *
57      * @return rootCategory
58      */

59     public org.alfresco.webservice.types.Category getRootCategory() {
60         return rootCategory;
61     }
62
63
64     /**
65      * Sets the rootCategory value for this Classification.
66      *
67      * @param rootCategory
68      */

69     public void setRootCategory(org.alfresco.webservice.types.Category rootCategory) {
70         this.rootCategory = rootCategory;
71     }
72
73
74     /**
75      * Gets the title value for this Classification.
76      *
77      * @return title
78      */

79     public java.lang.String JavaDoc getTitle() {
80         return title;
81     }
82
83
84     /**
85      * Sets the title value for this Classification.
86      *
87      * @param title
88      */

89     public void setTitle(java.lang.String JavaDoc title) {
90         this.title = title;
91     }
92
93
94     /**
95      * Gets the description value for this Classification.
96      *
97      * @return description
98      */

99     public java.lang.String JavaDoc getDescription() {
100         return description;
101     }
102
103
104     /**
105      * Sets the description value for this Classification.
106      *
107      * @param description
108      */

109     public void setDescription(java.lang.String JavaDoc description) {
110         this.description = description;
111     }
112
113     private java.lang.Object JavaDoc __equalsCalc = null;
114     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
115         if (!(obj instanceof Classification)) return false;
116         Classification other = (Classification) obj;
117         if (obj == null) return false;
118         if (this == obj) return true;
119         if (__equalsCalc != null) {
120             return (__equalsCalc == obj);
121         }
122         __equalsCalc = obj;
123         boolean _equals;
124         _equals = true &&
125             ((this.classification==null && other.getClassification()==null) ||
126              (this.classification!=null &&
127               this.classification.equals(other.getClassification()))) &&
128             ((this.rootCategory==null && other.getRootCategory()==null) ||
129              (this.rootCategory!=null &&
130               this.rootCategory.equals(other.getRootCategory()))) &&
131             ((this.title==null && other.getTitle()==null) ||
132              (this.title!=null &&
133               this.title.equals(other.getTitle()))) &&
134             ((this.description==null && other.getDescription()==null) ||
135              (this.description!=null &&
136               this.description.equals(other.getDescription())));
137         __equalsCalc = null;
138         return _equals;
139     }
140
141     private boolean __hashCodeCalc = false;
142     public synchronized int hashCode() {
143         if (__hashCodeCalc) {
144             return 0;
145         }
146         __hashCodeCalc = true;
147         int _hashCode = 1;
148         if (getClassification() != null) {
149             _hashCode += getClassification().hashCode();
150         }
151         if (getRootCategory() != null) {
152             _hashCode += getRootCategory().hashCode();
153         }
154         if (getTitle() != null) {
155             _hashCode += getTitle().hashCode();
156         }
157         if (getDescription() != null) {
158             _hashCode += getDescription().hashCode();
159         }
160         __hashCodeCalc = false;
161         return _hashCode;
162     }
163
164     // Type metadata
165
private static org.apache.axis.description.TypeDesc typeDesc =
166         new org.apache.axis.description.TypeDesc(Classification.class, true);
167
168     static {
169         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Classification"));
170         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
171         elemField.setFieldName("classification");
172         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "classification"));
173         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
174         elemField.setNillable(false);
175         typeDesc.addFieldDesc(elemField);
176         elemField = new org.apache.axis.description.ElementDesc();
177         elemField.setFieldName("rootCategory");
178         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "rootCategory"));
179         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Category"));
180         elemField.setNillable(false);
181         typeDesc.addFieldDesc(elemField);
182         elemField = new org.apache.axis.description.ElementDesc();
183         elemField.setFieldName("title");
184         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "title"));
185         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
186         elemField.setMinOccurs(0);
187         elemField.setNillable(false);
188         typeDesc.addFieldDesc(elemField);
189         elemField = new org.apache.axis.description.ElementDesc();
190         elemField.setFieldName("description");
191         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "description"));
192         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
193         elemField.setMinOccurs(0);
194         elemField.setNillable(false);
195         typeDesc.addFieldDesc(elemField);
196     }
197
198     /**
199      * Return type metadata object
200      */

201     public static org.apache.axis.description.TypeDesc getTypeDesc() {
202         return typeDesc;
203     }
204
205     /**
206      * Get Custom Serializer
207      */

208     public static org.apache.axis.encoding.Serializer getSerializer(
209            java.lang.String JavaDoc mechType,
210            java.lang.Class JavaDoc _javaType,
211            javax.xml.namespace.QName JavaDoc _xmlType) {
212         return
213           new org.apache.axis.encoding.ser.BeanSerializer(
214             _javaType, _xmlType, typeDesc);
215     }
216
217     /**
218      * Get Custom Deserializer
219      */

220     public static org.apache.axis.encoding.Deserializer getDeserializer(
221            java.lang.String JavaDoc mechType,
222            java.lang.Class JavaDoc _javaType,
223            javax.xml.namespace.QName JavaDoc _xmlType) {
224         return
225           new org.apache.axis.encoding.ser.BeanDeserializer(
226             _javaType, _xmlType, typeDesc);
227     }
228
229 }
230
Popular Tags