KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

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

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

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

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

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

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

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

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

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