1   /**
2    * ImageSoap.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package com.liferay.client.soap.portal.model;
9   
10  public class ImageSoap  implements java.io.Serializable {
11      private int height;
12  
13      private long imageId;
14  
15      private java.util.Calendar modifiedDate;
16  
17      private long primaryKey;
18  
19      private int size;
20  
21      private java.lang.String text;
22  
23      private java.lang.String type;
24  
25      private int width;
26  
27      public ImageSoap() {
28      }
29  
30      public ImageSoap(
31             int height,
32             long imageId,
33             java.util.Calendar modifiedDate,
34             long primaryKey,
35             int size,
36             java.lang.String text,
37             java.lang.String type,
38             int width) {
39             this.height = height;
40             this.imageId = imageId;
41             this.modifiedDate = modifiedDate;
42             this.primaryKey = primaryKey;
43             this.size = size;
44             this.text = text;
45             this.type = type;
46             this.width = width;
47      }
48  
49  
50      /**
51       * Gets the height value for this ImageSoap.
52       * 
53       * @return height
54       */
55      public int getHeight() {
56          return height;
57      }
58  
59  
60      /**
61       * Sets the height value for this ImageSoap.
62       * 
63       * @param height
64       */
65      public void setHeight(int height) {
66          this.height = height;
67      }
68  
69  
70      /**
71       * Gets the imageId value for this ImageSoap.
72       * 
73       * @return imageId
74       */
75      public long getImageId() {
76          return imageId;
77      }
78  
79  
80      /**
81       * Sets the imageId value for this ImageSoap.
82       * 
83       * @param imageId
84       */
85      public void setImageId(long imageId) {
86          this.imageId = imageId;
87      }
88  
89  
90      /**
91       * Gets the modifiedDate value for this ImageSoap.
92       * 
93       * @return modifiedDate
94       */
95      public java.util.Calendar getModifiedDate() {
96          return modifiedDate;
97      }
98  
99  
100     /**
101      * Sets the modifiedDate value for this ImageSoap.
102      * 
103      * @param modifiedDate
104      */
105     public void setModifiedDate(java.util.Calendar modifiedDate) {
106         this.modifiedDate = modifiedDate;
107     }
108 
109 
110     /**
111      * Gets the primaryKey value for this ImageSoap.
112      * 
113      * @return primaryKey
114      */
115     public long getPrimaryKey() {
116         return primaryKey;
117     }
118 
119 
120     /**
121      * Sets the primaryKey value for this ImageSoap.
122      * 
123      * @param primaryKey
124      */
125     public void setPrimaryKey(long primaryKey) {
126         this.primaryKey = primaryKey;
127     }
128 
129 
130     /**
131      * Gets the size value for this ImageSoap.
132      * 
133      * @return size
134      */
135     public int getSize() {
136         return size;
137     }
138 
139 
140     /**
141      * Sets the size value for this ImageSoap.
142      * 
143      * @param size
144      */
145     public void setSize(int size) {
146         this.size = size;
147     }
148 
149 
150     /**
151      * Gets the text value for this ImageSoap.
152      * 
153      * @return text
154      */
155     public java.lang.String getText() {
156         return text;
157     }
158 
159 
160     /**
161      * Sets the text value for this ImageSoap.
162      * 
163      * @param text
164      */
165     public void setText(java.lang.String text) {
166         this.text = text;
167     }
168 
169 
170     /**
171      * Gets the type value for this ImageSoap.
172      * 
173      * @return type
174      */
175     public java.lang.String getType() {
176         return type;
177     }
178 
179 
180     /**
181      * Sets the type value for this ImageSoap.
182      * 
183      * @param type
184      */
185     public void setType(java.lang.String type) {
186         this.type = type;
187     }
188 
189 
190     /**
191      * Gets the width value for this ImageSoap.
192      * 
193      * @return width
194      */
195     public int getWidth() {
196         return width;
197     }
198 
199 
200     /**
201      * Sets the width value for this ImageSoap.
202      * 
203      * @param width
204      */
205     public void setWidth(int width) {
206         this.width = width;
207     }
208 
209     private java.lang.Object __equalsCalc = null;
210     public synchronized boolean equals(java.lang.Object obj) {
211         if (!(obj instanceof ImageSoap)) return false;
212         ImageSoap other = (ImageSoap) obj;
213         if (obj == null) return false;
214         if (this == obj) return true;
215         if (__equalsCalc != null) {
216             return (__equalsCalc == obj);
217         }
218         __equalsCalc = obj;
219         boolean _equals;
220         _equals = true && 
221             this.height == other.getHeight() &&
222             this.imageId == other.getImageId() &&
223             ((this.modifiedDate==null && other.getModifiedDate()==null) || 
224              (this.modifiedDate!=null &&
225               this.modifiedDate.equals(other.getModifiedDate()))) &&
226             this.primaryKey == other.getPrimaryKey() &&
227             this.size == other.getSize() &&
228             ((this.text==null && other.getText()==null) || 
229              (this.text!=null &&
230               this.text.equals(other.getText()))) &&
231             ((this.type==null && other.getType()==null) || 
232              (this.type!=null &&
233               this.type.equals(other.getType()))) &&
234             this.width == other.getWidth();
235         __equalsCalc = null;
236         return _equals;
237     }
238 
239     private boolean __hashCodeCalc = false;
240     public synchronized int hashCode() {
241         if (__hashCodeCalc) {
242             return 0;
243         }
244         __hashCodeCalc = true;
245         int _hashCode = 1;
246         _hashCode += getHeight();
247         _hashCode += new Long(getImageId()).hashCode();
248         if (getModifiedDate() != null) {
249             _hashCode += getModifiedDate().hashCode();
250         }
251         _hashCode += new Long(getPrimaryKey()).hashCode();
252         _hashCode += getSize();
253         if (getText() != null) {
254             _hashCode += getText().hashCode();
255         }
256         if (getType() != null) {
257             _hashCode += getType().hashCode();
258         }
259         _hashCode += getWidth();
260         __hashCodeCalc = false;
261         return _hashCode;
262     }
263 
264     // Type metadata
265     private static org.apache.axis.description.TypeDesc typeDesc =
266         new org.apache.axis.description.TypeDesc(ImageSoap.class, true);
267 
268     static {
269         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "ImageSoap"));
270         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
271         elemField.setFieldName("height");
272         elemField.setXmlName(new javax.xml.namespace.QName("", "height"));
273         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
274         elemField.setNillable(false);
275         typeDesc.addFieldDesc(elemField);
276         elemField = new org.apache.axis.description.ElementDesc();
277         elemField.setFieldName("imageId");
278         elemField.setXmlName(new javax.xml.namespace.QName("", "imageId"));
279         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
280         elemField.setNillable(false);
281         typeDesc.addFieldDesc(elemField);
282         elemField = new org.apache.axis.description.ElementDesc();
283         elemField.setFieldName("modifiedDate");
284         elemField.setXmlName(new javax.xml.namespace.QName("", "modifiedDate"));
285         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
286         elemField.setNillable(true);
287         typeDesc.addFieldDesc(elemField);
288         elemField = new org.apache.axis.description.ElementDesc();
289         elemField.setFieldName("primaryKey");
290         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
291         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
292         elemField.setNillable(false);
293         typeDesc.addFieldDesc(elemField);
294         elemField = new org.apache.axis.description.ElementDesc();
295         elemField.setFieldName("size");
296         elemField.setXmlName(new javax.xml.namespace.QName("", "size"));
297         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
298         elemField.setNillable(false);
299         typeDesc.addFieldDesc(elemField);
300         elemField = new org.apache.axis.description.ElementDesc();
301         elemField.setFieldName("text");
302         elemField.setXmlName(new javax.xml.namespace.QName("", "text"));
303         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
304         elemField.setNillable(true);
305         typeDesc.addFieldDesc(elemField);
306         elemField = new org.apache.axis.description.ElementDesc();
307         elemField.setFieldName("type");
308         elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
309         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
310         elemField.setNillable(true);
311         typeDesc.addFieldDesc(elemField);
312         elemField = new org.apache.axis.description.ElementDesc();
313         elemField.setFieldName("width");
314         elemField.setXmlName(new javax.xml.namespace.QName("", "width"));
315         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
316         elemField.setNillable(false);
317         typeDesc.addFieldDesc(elemField);
318     }
319 
320     /**
321      * Return type metadata object
322      */
323     public static org.apache.axis.description.TypeDesc getTypeDesc() {
324         return typeDesc;
325     }
326 
327     /**
328      * Get Custom Serializer
329      */
330     public static org.apache.axis.encoding.Serializer getSerializer(
331            java.lang.String mechType, 
332            java.lang.Class _javaType,  
333            javax.xml.namespace.QName _xmlType) {
334         return 
335           new  org.apache.axis.encoding.ser.BeanSerializer(
336             _javaType, _xmlType, typeDesc);
337     }
338 
339     /**
340      * Get Custom Deserializer
341      */
342     public static org.apache.axis.encoding.Deserializer getDeserializer(
343            java.lang.String mechType, 
344            java.lang.Class _javaType,  
345            javax.xml.namespace.QName _xmlType) {
346         return 
347           new  org.apache.axis.encoding.ser.BeanDeserializer(
348             _javaType, _xmlType, typeDesc);
349     }
350 
351 }
352