KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

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

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

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

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

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

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

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

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

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