KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > webservice > types > Node


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

39     public org.alfresco.repo.webservice.types.Reference getReference() {
40         return reference;
41     }
42
43
44     /**
45      * Sets the reference value for this Node.
46      *
47      * @param reference
48      */

49     public void setReference(org.alfresco.repo.webservice.types.Reference reference) {
50         this.reference = reference;
51     }
52
53
54     /**
55      * Gets the type value for this Node.
56      *
57      * @return type
58      */

59     public java.lang.String JavaDoc getType() {
60         return type;
61     }
62
63
64     /**
65      * Sets the type value for this Node.
66      *
67      * @param type
68      */

69     public void setType(java.lang.String JavaDoc type) {
70         this.type = type;
71     }
72
73
74     /**
75      * Gets the aspects value for this Node.
76      *
77      * @return aspects
78      */

79     public java.lang.String JavaDoc[] getAspects() {
80         return aspects;
81     }
82
83
84     /**
85      * Sets the aspects value for this Node.
86      *
87      * @param aspects
88      */

89     public void setAspects(java.lang.String JavaDoc[] aspects) {
90         this.aspects = aspects;
91     }
92
93     public java.lang.String JavaDoc getAspects(int i) {
94         return this.aspects[i];
95     }
96
97     public void setAspects(int i, java.lang.String JavaDoc _value) {
98         this.aspects[i] = _value;
99     }
100
101
102     /**
103      * Gets the properties value for this Node.
104      *
105      * @return properties
106      */

107     public org.alfresco.repo.webservice.types.NamedValue[] getProperties() {
108         return properties;
109     }
110
111
112     /**
113      * Sets the properties value for this Node.
114      *
115      * @param properties
116      */

117     public void setProperties(org.alfresco.repo.webservice.types.NamedValue[] properties) {
118         this.properties = properties;
119     }
120
121     public org.alfresco.repo.webservice.types.NamedValue getProperties(int i) {
122         return this.properties[i];
123     }
124
125     public void setProperties(int i, org.alfresco.repo.webservice.types.NamedValue _value) {
126         this.properties[i] = _value;
127     }
128
129     private java.lang.Object JavaDoc __equalsCalc = null;
130     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
131         if (!(obj instanceof Node)) return false;
132         Node other = (Node) obj;
133         if (obj == null) return false;
134         if (this == obj) return true;
135         if (__equalsCalc != null) {
136             return (__equalsCalc == obj);
137         }
138         __equalsCalc = obj;
139         boolean _equals;
140         _equals = true &&
141             ((this.reference==null && other.getReference()==null) ||
142              (this.reference!=null &&
143               this.reference.equals(other.getReference()))) &&
144             ((this.type==null && other.getType()==null) ||
145              (this.type!=null &&
146               this.type.equals(other.getType()))) &&
147             ((this.aspects==null && other.getAspects()==null) ||
148              (this.aspects!=null &&
149               java.util.Arrays.equals(this.aspects, other.getAspects()))) &&
150             ((this.properties==null && other.getProperties()==null) ||
151              (this.properties!=null &&
152               java.util.Arrays.equals(this.properties, other.getProperties())));
153         __equalsCalc = null;
154         return _equals;
155     }
156
157     private boolean __hashCodeCalc = false;
158     public synchronized int hashCode() {
159         if (__hashCodeCalc) {
160             return 0;
161         }
162         __hashCodeCalc = true;
163         int _hashCode = 1;
164         if (getReference() != null) {
165             _hashCode += getReference().hashCode();
166         }
167         if (getType() != null) {
168             _hashCode += getType().hashCode();
169         }
170         if (getAspects() != null) {
171             for (int i=0;
172                  i<java.lang.reflect.Array.getLength(getAspects());
173                  i++) {
174                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getAspects(), i);
175                 if (obj != null &&
176                     !obj.getClass().isArray()) {
177                     _hashCode += obj.hashCode();
178                 }
179             }
180         }
181         if (getProperties() != null) {
182             for (int i=0;
183                  i<java.lang.reflect.Array.getLength(getProperties());
184                  i++) {
185                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getProperties(), i);
186                 if (obj != null &&
187                     !obj.getClass().isArray()) {
188                     _hashCode += obj.hashCode();
189                 }
190             }
191         }
192         __hashCodeCalc = false;
193         return _hashCode;
194     }
195
196     // Type metadata
197
private static org.apache.axis.description.TypeDesc typeDesc =
198         new org.apache.axis.description.TypeDesc(Node.class, true);
199
200     static {
201         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Node"));
202         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
203         elemField.setFieldName("reference");
204         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "reference"));
205         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
206         elemField.setNillable(false);
207         typeDesc.addFieldDesc(elemField);
208         elemField = new org.apache.axis.description.ElementDesc();
209         elemField.setFieldName("type");
210         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "type"));
211         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
212         elemField.setNillable(false);
213         typeDesc.addFieldDesc(elemField);
214         elemField = new org.apache.axis.description.ElementDesc();
215         elemField.setFieldName("aspects");
216         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "aspects"));
217         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
218         elemField.setMinOccurs(0);
219         elemField.setNillable(false);
220         elemField.setMaxOccursUnbounded(true);
221         typeDesc.addFieldDesc(elemField);
222         elemField = new org.apache.axis.description.ElementDesc();
223         elemField.setFieldName("properties");
224         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "properties"));
225         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
226         elemField.setMinOccurs(0);
227         elemField.setNillable(false);
228         elemField.setMaxOccursUnbounded(true);
229         typeDesc.addFieldDesc(elemField);
230     }
231
232     /**
233      * Return type metadata object
234      */

235     public static org.apache.axis.description.TypeDesc getTypeDesc() {
236         return typeDesc;
237     }
238
239     /**
240      * Get Custom Serializer
241      */

242     public static org.apache.axis.encoding.Serializer getSerializer(
243            java.lang.String JavaDoc mechType,
244            java.lang.Class JavaDoc _javaType,
245            javax.xml.namespace.QName JavaDoc _xmlType) {
246         return
247           new org.apache.axis.encoding.ser.BeanSerializer(
248             _javaType, _xmlType, typeDesc);
249     }
250
251     /**
252      * Get Custom Deserializer
253      */

254     public static org.apache.axis.encoding.Deserializer getDeserializer(
255            java.lang.String JavaDoc mechType,
256            java.lang.Class JavaDoc _javaType,
257            javax.xml.namespace.QName JavaDoc _xmlType) {
258         return
259           new org.apache.axis.encoding.ser.BeanDeserializer(
260             _javaType, _xmlType, typeDesc);
261     }
262
263 }
264
Popular Tags