KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > webservice > classification > CategoriesResult


1 /**
2  * CategoriesResult.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.classification;
9
10 public class CategoriesResult implements java.io.Serializable JavaDoc {
11     private org.alfresco.webservice.types.Reference node;
12
13     private org.alfresco.webservice.classification.AppliedCategory[] categories;
14
15     public CategoriesResult() {
16     }
17
18     public CategoriesResult(
19            org.alfresco.webservice.types.Reference node,
20            org.alfresco.webservice.classification.AppliedCategory[] categories) {
21            this.node = node;
22            this.categories = categories;
23     }
24
25
26     /**
27      * Gets the node value for this CategoriesResult.
28      *
29      * @return node
30      */

31     public org.alfresco.webservice.types.Reference getNode() {
32         return node;
33     }
34
35
36     /**
37      * Sets the node value for this CategoriesResult.
38      *
39      * @param node
40      */

41     public void setNode(org.alfresco.webservice.types.Reference node) {
42         this.node = node;
43     }
44
45
46     /**
47      * Gets the categories value for this CategoriesResult.
48      *
49      * @return categories
50      */

51     public org.alfresco.webservice.classification.AppliedCategory[] getCategories() {
52         return categories;
53     }
54
55
56     /**
57      * Sets the categories value for this CategoriesResult.
58      *
59      * @param categories
60      */

61     public void setCategories(org.alfresco.webservice.classification.AppliedCategory[] categories) {
62         this.categories = categories;
63     }
64
65     public org.alfresco.webservice.classification.AppliedCategory getCategories(int i) {
66         return this.categories[i];
67     }
68
69     public void setCategories(int i, org.alfresco.webservice.classification.AppliedCategory _value) {
70         this.categories[i] = _value;
71     }
72
73     private java.lang.Object JavaDoc __equalsCalc = null;
74     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
75         if (!(obj instanceof CategoriesResult)) return false;
76         CategoriesResult other = (CategoriesResult) obj;
77         if (obj == null) return false;
78         if (this == obj) return true;
79         if (__equalsCalc != null) {
80             return (__equalsCalc == obj);
81         }
82         __equalsCalc = obj;
83         boolean _equals;
84         _equals = true &&
85             ((this.node==null && other.getNode()==null) ||
86              (this.node!=null &&
87               this.node.equals(other.getNode()))) &&
88             ((this.categories==null && other.getCategories()==null) ||
89              (this.categories!=null &&
90               java.util.Arrays.equals(this.categories, other.getCategories())));
91         __equalsCalc = null;
92         return _equals;
93     }
94
95     private boolean __hashCodeCalc = false;
96     public synchronized int hashCode() {
97         if (__hashCodeCalc) {
98             return 0;
99         }
100         __hashCodeCalc = true;
101         int _hashCode = 1;
102         if (getNode() != null) {
103             _hashCode += getNode().hashCode();
104         }
105         if (getCategories() != null) {
106             for (int i=0;
107                  i<java.lang.reflect.Array.getLength(getCategories());
108                  i++) {
109                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getCategories(), i);
110                 if (obj != null &&
111                     !obj.getClass().isArray()) {
112                     _hashCode += obj.hashCode();
113                 }
114             }
115         }
116         __hashCodeCalc = false;
117         return _hashCode;
118     }
119
120     // Type metadata
121
private static org.apache.axis.description.TypeDesc typeDesc =
122         new org.apache.axis.description.TypeDesc(CategoriesResult.class, true);
123
124     static {
125         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/classification/1.0", "CategoriesResult"));
126         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
127         elemField.setFieldName("node");
128         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/classification/1.0", "node"));
129         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
130         elemField.setNillable(false);
131         typeDesc.addFieldDesc(elemField);
132         elemField = new org.apache.axis.description.ElementDesc();
133         elemField.setFieldName("categories");
134         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/classification/1.0", "categories"));
135         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/classification/1.0", "AppliedCategory"));
136         elemField.setMinOccurs(0);
137         elemField.setNillable(false);
138         elemField.setMaxOccursUnbounded(true);
139         typeDesc.addFieldDesc(elemField);
140     }
141
142     /**
143      * Return type metadata object
144      */

145     public static org.apache.axis.description.TypeDesc getTypeDesc() {
146         return typeDesc;
147     }
148
149     /**
150      * Get Custom Serializer
151      */

152     public static org.apache.axis.encoding.Serializer getSerializer(
153            java.lang.String JavaDoc mechType,
154            java.lang.Class JavaDoc _javaType,
155            javax.xml.namespace.QName JavaDoc _xmlType) {
156         return
157           new org.apache.axis.encoding.ser.BeanSerializer(
158             _javaType, _xmlType, typeDesc);
159     }
160
161     /**
162      * Get Custom Deserializer
163      */

164     public static org.apache.axis.encoding.Deserializer getDeserializer(
165            java.lang.String JavaDoc mechType,
166            java.lang.Class JavaDoc _javaType,
167            javax.xml.namespace.QName JavaDoc _xmlType) {
168         return
169           new org.apache.axis.encoding.ser.BeanDeserializer(
170             _javaType, _xmlType, typeDesc);
171     }
172
173 }
174
Popular Tags