KickJava   Java API By Example, From Geeks To Geeks.

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


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

36     public java.lang.String JavaDoc getAspect() {
37         return aspect;
38     }
39
40
41     /**
42      * Sets the aspect value for this CMLAddAspect.
43      *
44      * @param aspect
45      */

46     public void setAspect(java.lang.String JavaDoc aspect) {
47         this.aspect = aspect;
48     }
49
50
51     /**
52      * Gets the property value for this CMLAddAspect.
53      *
54      * @return property
55      */

56     public org.alfresco.example.webservice.types.NamedValue[] getProperty() {
57         return property;
58     }
59
60
61     /**
62      * Sets the property value for this CMLAddAspect.
63      *
64      * @param property
65      */

66     public void setProperty(org.alfresco.example.webservice.types.NamedValue[] property) {
67         this.property = property;
68     }
69
70     public org.alfresco.example.webservice.types.NamedValue getProperty(int i) {
71         return this.property[i];
72     }
73
74     public void setProperty(int i, org.alfresco.example.webservice.types.NamedValue _value) {
75         this.property[i] = _value;
76     }
77
78
79     /**
80      * Gets the where value for this CMLAddAspect.
81      *
82      * @return where
83      */

84     public org.alfresco.example.webservice.types.Predicate getWhere() {
85         return where;
86     }
87
88
89     /**
90      * Sets the where value for this CMLAddAspect.
91      *
92      * @param where
93      */

94     public void setWhere(org.alfresco.example.webservice.types.Predicate where) {
95         this.where = where;
96     }
97
98
99     /**
100      * Gets the where_id value for this CMLAddAspect.
101      *
102      * @return where_id
103      */

104     public java.lang.String JavaDoc getWhere_id() {
105         return where_id;
106     }
107
108
109     /**
110      * Sets the where_id value for this CMLAddAspect.
111      *
112      * @param where_id
113      */

114     public void setWhere_id(java.lang.String JavaDoc where_id) {
115         this.where_id = where_id;
116     }
117
118     private java.lang.Object JavaDoc __equalsCalc = null;
119     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
120         if (!(obj instanceof CMLAddAspect)) return false;
121         CMLAddAspect other = (CMLAddAspect) obj;
122         if (obj == null) return false;
123         if (this == obj) return true;
124         if (__equalsCalc != null) {
125             return (__equalsCalc == obj);
126         }
127         __equalsCalc = obj;
128         boolean _equals;
129         _equals = true &&
130             ((this.aspect==null && other.getAspect()==null) ||
131              (this.aspect!=null &&
132               this.aspect.equals(other.getAspect()))) &&
133             ((this.property==null && other.getProperty()==null) ||
134              (this.property!=null &&
135               java.util.Arrays.equals(this.property, other.getProperty()))) &&
136             ((this.where==null && other.getWhere()==null) ||
137              (this.where!=null &&
138               this.where.equals(other.getWhere()))) &&
139             ((this.where_id==null && other.getWhere_id()==null) ||
140              (this.where_id!=null &&
141               this.where_id.equals(other.getWhere_id())));
142         __equalsCalc = null;
143         return _equals;
144     }
145
146     private boolean __hashCodeCalc = false;
147     public synchronized int hashCode() {
148         if (__hashCodeCalc) {
149             return 0;
150         }
151         __hashCodeCalc = true;
152         int _hashCode = 1;
153         if (getAspect() != null) {
154             _hashCode += getAspect().hashCode();
155         }
156         if (getProperty() != null) {
157             for (int i=0;
158                  i<java.lang.reflect.Array.getLength(getProperty());
159                  i++) {
160                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getProperty(), i);
161                 if (obj != null &&
162                     !obj.getClass().isArray()) {
163                     _hashCode += obj.hashCode();
164                 }
165             }
166         }
167         if (getWhere() != null) {
168             _hashCode += getWhere().hashCode();
169         }
170         if (getWhere_id() != null) {
171             _hashCode += getWhere_id().hashCode();
172         }
173         __hashCodeCalc = false;
174         return _hashCode;
175     }
176
177     // Type metadata
178
private static org.apache.axis.description.TypeDesc typeDesc =
179         new org.apache.axis.description.TypeDesc(CMLAddAspect.class, true);
180
181     static {
182         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>addAspect"));
183         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
184         elemField.setFieldName("aspect");
185         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "aspect"));
186         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
187         elemField.setNillable(false);
188         typeDesc.addFieldDesc(elemField);
189         elemField = new org.apache.axis.description.ElementDesc();
190         elemField.setFieldName("property");
191         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "property"));
192         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
193         elemField.setMinOccurs(0);
194         elemField.setNillable(false);
195         elemField.setMaxOccursUnbounded(true);
196         typeDesc.addFieldDesc(elemField);
197         elemField = new org.apache.axis.description.ElementDesc();
198         elemField.setFieldName("where");
199         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where"));
200         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"));
201         elemField.setMinOccurs(0);
202         elemField.setNillable(false);
203         typeDesc.addFieldDesc(elemField);
204         elemField = new org.apache.axis.description.ElementDesc();
205         elemField.setFieldName("where_id");
206         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where_id"));
207         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
208         elemField.setMinOccurs(0);
209         elemField.setNillable(false);
210         typeDesc.addFieldDesc(elemField);
211     }
212
213     /**
214      * Return type metadata object
215      */

216     public static org.apache.axis.description.TypeDesc getTypeDesc() {
217         return typeDesc;
218     }
219
220     /**
221      * Get Custom Serializer
222      */

223     public static org.apache.axis.encoding.Serializer getSerializer(
224            java.lang.String JavaDoc mechType,
225            java.lang.Class JavaDoc _javaType,
226            javax.xml.namespace.QName JavaDoc _xmlType) {
227         return
228           new org.apache.axis.encoding.ser.BeanSerializer(
229             _javaType, _xmlType, typeDesc);
230     }
231
232     /**
233      * Get Custom Deserializer
234      */

235     public static org.apache.axis.encoding.Deserializer getDeserializer(
236            java.lang.String JavaDoc mechType,
237            java.lang.Class JavaDoc _javaType,
238            javax.xml.namespace.QName JavaDoc _xmlType) {
239         return
240           new org.apache.axis.encoding.ser.BeanDeserializer(
241             _javaType, _xmlType, typeDesc);
242     }
243
244 }
245
Popular Tags