KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

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

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

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

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

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

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

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