KickJava   Java API By Example, From Geeks To Geeks.

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


1 /**
2  * Classification.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 Classification extends org.alfresco.example.webservice.types.Category implements java.io.Serializable JavaDoc {
11     private org.alfresco.example.webservice.types.Category rootCategory;
12
13     public Classification() {
14     }
15
16     public Classification(
17            org.alfresco.example.webservice.types.Category rootCategory) {
18            this.rootCategory = rootCategory;
19     }
20
21
22     /**
23      * Gets the rootCategory value for this Classification.
24      *
25      * @return rootCategory
26      */

27     public org.alfresco.example.webservice.types.Category getRootCategory() {
28         return rootCategory;
29     }
30
31
32     /**
33      * Sets the rootCategory value for this Classification.
34      *
35      * @param rootCategory
36      */

37     public void setRootCategory(org.alfresco.example.webservice.types.Category rootCategory) {
38         this.rootCategory = rootCategory;
39     }
40
41     private java.lang.Object JavaDoc __equalsCalc = null;
42     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
43         if (!(obj instanceof Classification)) return false;
44         Classification other = (Classification) obj;
45         if (obj == null) return false;
46         if (this == obj) return true;
47         if (__equalsCalc != null) {
48             return (__equalsCalc == obj);
49         }
50         __equalsCalc = obj;
51         boolean _equals;
52         _equals = super.equals(obj) &&
53             ((this.rootCategory==null && other.getRootCategory()==null) ||
54              (this.rootCategory!=null &&
55               this.rootCategory.equals(other.getRootCategory())));
56         __equalsCalc = null;
57         return _equals;
58     }
59
60     private boolean __hashCodeCalc = false;
61     public synchronized int hashCode() {
62         if (__hashCodeCalc) {
63             return 0;
64         }
65         __hashCodeCalc = true;
66         int _hashCode = super.hashCode();
67         if (getRootCategory() != null) {
68             _hashCode += getRootCategory().hashCode();
69         }
70         __hashCodeCalc = false;
71         return _hashCode;
72     }
73
74     // Type metadata
75
private static org.apache.axis.description.TypeDesc typeDesc =
76         new org.apache.axis.description.TypeDesc(Classification.class, true);
77
78     static {
79         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Classification"));
80         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
81         elemField.setFieldName("rootCategory");
82         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "rootCategory"));
83         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Category"));
84         elemField.setNillable(false);
85         typeDesc.addFieldDesc(elemField);
86     }
87
88     /**
89      * Return type metadata object
90      */

91     public static org.apache.axis.description.TypeDesc getTypeDesc() {
92         return typeDesc;
93     }
94
95     /**
96      * Get Custom Serializer
97      */

98     public static org.apache.axis.encoding.Serializer getSerializer(
99            java.lang.String JavaDoc mechType,
100            java.lang.Class JavaDoc _javaType,
101            javax.xml.namespace.QName JavaDoc _xmlType) {
102         return
103           new org.apache.axis.encoding.ser.BeanSerializer(
104             _javaType, _xmlType, typeDesc);
105     }
106
107     /**
108      * Get Custom Deserializer
109      */

110     public static org.apache.axis.encoding.Deserializer getDeserializer(
111            java.lang.String JavaDoc mechType,
112            java.lang.Class JavaDoc _javaType,
113            javax.xml.namespace.QName JavaDoc _xmlType) {
114         return
115           new org.apache.axis.encoding.ser.BeanDeserializer(
116             _javaType, _xmlType, typeDesc);
117     }
118
119 }
120
Popular Tags