KickJava   Java API By Example, From Geeks To Geeks.

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


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

35     public org.alfresco.repo.webservice.types.NamedValue[] getProperty() {
36         return property;
37     }
38
39
40     /**
41      * Sets the property value for this CMLUpdate.
42      *
43      * @param property
44      */

45     public void setProperty(org.alfresco.repo.webservice.types.NamedValue[] property) {
46         this.property = property;
47     }
48
49     public org.alfresco.repo.webservice.types.NamedValue getProperty(int i) {
50         return this.property[i];
51     }
52
53     public void setProperty(int i, org.alfresco.repo.webservice.types.NamedValue _value) {
54         this.property[i] = _value;
55     }
56
57
58     /**
59      * Gets the where value for this CMLUpdate.
60      *
61      * @return where
62      */

63     public org.alfresco.repo.webservice.types.Predicate getWhere() {
64         return where;
65     }
66
67
68     /**
69      * Sets the where value for this CMLUpdate.
70      *
71      * @param where
72      */

73     public void setWhere(org.alfresco.repo.webservice.types.Predicate where) {
74         this.where = where;
75     }
76
77
78     /**
79      * Gets the where_id value for this CMLUpdate.
80      *
81      * @return where_id
82      */

83     public java.lang.String JavaDoc getWhere_id() {
84         return where_id;
85     }
86
87
88     /**
89      * Sets the where_id value for this CMLUpdate.
90      *
91      * @param where_id
92      */

93     public void setWhere_id(java.lang.String JavaDoc where_id) {
94         this.where_id = where_id;
95     }
96
97     private java.lang.Object JavaDoc __equalsCalc = null;
98     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
99         if (!(obj instanceof CMLUpdate)) return false;
100         CMLUpdate other = (CMLUpdate) obj;
101         if (obj == null) return false;
102         if (this == obj) return true;
103         if (__equalsCalc != null) {
104             return (__equalsCalc == obj);
105         }
106         __equalsCalc = obj;
107         boolean _equals;
108         _equals = true &&
109             ((this.property==null && other.getProperty()==null) ||
110              (this.property!=null &&
111               java.util.Arrays.equals(this.property, other.getProperty()))) &&
112             ((this.where==null && other.getWhere()==null) ||
113              (this.where!=null &&
114               this.where.equals(other.getWhere()))) &&
115             ((this.where_id==null && other.getWhere_id()==null) ||
116              (this.where_id!=null &&
117               this.where_id.equals(other.getWhere_id())));
118         __equalsCalc = null;
119         return _equals;
120     }
121
122     private boolean __hashCodeCalc = false;
123     public synchronized int hashCode() {
124         if (__hashCodeCalc) {
125             return 0;
126         }
127         __hashCodeCalc = true;
128         int _hashCode = 1;
129         if (getProperty() != null) {
130             for (int i=0;
131                  i<java.lang.reflect.Array.getLength(getProperty());
132                  i++) {
133                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getProperty(), i);
134                 if (obj != null &&
135                     !obj.getClass().isArray()) {
136                     _hashCode += obj.hashCode();
137                 }
138             }
139         }
140         if (getWhere() != null) {
141             _hashCode += getWhere().hashCode();
142         }
143         if (getWhere_id() != null) {
144             _hashCode += getWhere_id().hashCode();
145         }
146         __hashCodeCalc = false;
147         return _hashCode;
148     }
149
150     // Type metadata
151
private static org.apache.axis.description.TypeDesc typeDesc =
152         new org.apache.axis.description.TypeDesc(CMLUpdate.class, true);
153
154     static {
155         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>update"));
156         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
157         elemField.setFieldName("property");
158         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "property"));
159         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
160         elemField.setNillable(false);
161         elemField.setMaxOccursUnbounded(true);
162         typeDesc.addFieldDesc(elemField);
163         elemField = new org.apache.axis.description.ElementDesc();
164         elemField.setFieldName("where");
165         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where"));
166         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"));
167         elemField.setMinOccurs(0);
168         elemField.setNillable(false);
169         typeDesc.addFieldDesc(elemField);
170         elemField = new org.apache.axis.description.ElementDesc();
171         elemField.setFieldName("where_id");
172         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "where_id"));
173         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
174         elemField.setMinOccurs(0);
175         elemField.setNillable(false);
176         typeDesc.addFieldDesc(elemField);
177     }
178
179     /**
180      * Return type metadata object
181      */

182     public static org.apache.axis.description.TypeDesc getTypeDesc() {
183         return typeDesc;
184     }
185
186     /**
187      * Get Custom Serializer
188      */

189     public static org.apache.axis.encoding.Serializer getSerializer(
190            java.lang.String JavaDoc mechType,
191            java.lang.Class JavaDoc _javaType,
192            javax.xml.namespace.QName JavaDoc _xmlType) {
193         return
194           new org.apache.axis.encoding.ser.BeanSerializer(
195             _javaType, _xmlType, typeDesc);
196     }
197
198     /**
199      * Get Custom Deserializer
200      */

201     public static org.apache.axis.encoding.Deserializer getDeserializer(
202            java.lang.String JavaDoc mechType,
203            java.lang.Class JavaDoc _javaType,
204            javax.xml.namespace.QName JavaDoc _xmlType) {
205         return
206           new org.apache.axis.encoding.ser.BeanDeserializer(
207             _javaType, _xmlType, typeDesc);
208     }
209
210 }
211
Popular Tags