KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

56     public org.alfresco.example.webservice.types.ParentReference getParent() {
57         return parent;
58     }
59
60
61     /**
62      * Sets the parent value for this CMLCreate.
63      *
64      * @param parent
65      */

66     public void setParent(org.alfresco.example.webservice.types.ParentReference parent) {
67         this.parent = parent;
68     }
69
70
71     /**
72      * Gets the type value for this CMLCreate.
73      *
74      * @return type
75      */

76     public java.lang.String JavaDoc getType() {
77         return type;
78     }
79
80
81     /**
82      * Sets the type value for this CMLCreate.
83      *
84      * @param type
85      */

86     public void setType(java.lang.String JavaDoc type) {
87         this.type = type;
88     }
89
90
91     /**
92      * Gets the property value for this CMLCreate.
93      *
94      * @return property
95      */

96     public org.alfresco.example.webservice.types.NamedValue[] getProperty() {
97         return property;
98     }
99
100
101     /**
102      * Sets the property value for this CMLCreate.
103      *
104      * @param property
105      */

106     public void setProperty(org.alfresco.example.webservice.types.NamedValue[] property) {
107         this.property = property;
108     }
109
110     public org.alfresco.example.webservice.types.NamedValue getProperty(int i) {
111         return this.property[i];
112     }
113
114     public void setProperty(int i, org.alfresco.example.webservice.types.NamedValue _value) {
115         this.property[i] = _value;
116     }
117
118     private java.lang.Object JavaDoc __equalsCalc = null;
119     public synchronized boolean equals(java.lang.Object JavaDoc obj) {
120         if (!(obj instanceof CMLCreate)) return false;
121         CMLCreate other = (CMLCreate) 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.id==null && other.getId()==null) ||
131              (this.id!=null &&
132               this.id.equals(other.getId()))) &&
133             ((this.parent==null && other.getParent()==null) ||
134              (this.parent!=null &&
135               this.parent.equals(other.getParent()))) &&
136             ((this.type==null && other.getType()==null) ||
137              (this.type!=null &&
138               this.type.equals(other.getType()))) &&
139             ((this.property==null && other.getProperty()==null) ||
140              (this.property!=null &&
141               java.util.Arrays.equals(this.property, other.getProperty())));
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 (getId() != null) {
154             _hashCode += getId().hashCode();
155         }
156         if (getParent() != null) {
157             _hashCode += getParent().hashCode();
158         }
159         if (getType() != null) {
160             _hashCode += getType().hashCode();
161         }
162         if (getProperty() != null) {
163             for (int i=0;
164                  i<java.lang.reflect.Array.getLength(getProperty());
165                  i++) {
166                 java.lang.Object JavaDoc obj = java.lang.reflect.Array.get(getProperty(), i);
167                 if (obj != null &&
168                     !obj.getClass().isArray()) {
169                     _hashCode += obj.hashCode();
170                 }
171             }
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(CMLCreate.class, true);
180
181     static {
182         typeDesc.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>create"));
183         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
184         elemField.setFieldName("id");
185         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "id"));
186         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"));
187         elemField.setMinOccurs(0);
188         elemField.setNillable(false);
189         typeDesc.addFieldDesc(elemField);
190         elemField = new org.apache.axis.description.ElementDesc();
191         elemField.setFieldName("parent");
192         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "parent"));
193         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ParentReference"));
194         elemField.setNillable(false);
195         typeDesc.addFieldDesc(elemField);
196         elemField = new org.apache.axis.description.ElementDesc();
197         elemField.setFieldName("type");
198         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "type"));
199         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name"));
200         elemField.setMinOccurs(0);
201         elemField.setNillable(false);
202         typeDesc.addFieldDesc(elemField);
203         elemField = new org.apache.axis.description.ElementDesc();
204         elemField.setFieldName("property");
205         elemField.setXmlName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "property"));
206         elemField.setXmlType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue"));
207         elemField.setMinOccurs(0);
208         elemField.setNillable(false);
209         elemField.setMaxOccursUnbounded(true);
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