KickJava   Java API By Example, From Geeks To Geeks.

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


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

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

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

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

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

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

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

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

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