1   /**
2    * LayoutSetPrototypeSoap.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 LayoutSetPrototypeSoap  implements java.io.Serializable {
11      private boolean active;
12  
13      private long companyId;
14  
15      private java.lang.String description;
16  
17      private long layoutSetPrototypeId;
18  
19      private java.lang.String name;
20  
21      private long primaryKey;
22  
23      private java.lang.String settings;
24  
25      public LayoutSetPrototypeSoap() {
26      }
27  
28      public LayoutSetPrototypeSoap(
29             boolean active,
30             long companyId,
31             java.lang.String description,
32             long layoutSetPrototypeId,
33             java.lang.String name,
34             long primaryKey,
35             java.lang.String settings) {
36             this.active = active;
37             this.companyId = companyId;
38             this.description = description;
39             this.layoutSetPrototypeId = layoutSetPrototypeId;
40             this.name = name;
41             this.primaryKey = primaryKey;
42             this.settings = settings;
43      }
44  
45  
46      /**
47       * Gets the active value for this LayoutSetPrototypeSoap.
48       * 
49       * @return active
50       */
51      public boolean isActive() {
52          return active;
53      }
54  
55  
56      /**
57       * Sets the active value for this LayoutSetPrototypeSoap.
58       * 
59       * @param active
60       */
61      public void setActive(boolean active) {
62          this.active = active;
63      }
64  
65  
66      /**
67       * Gets the companyId value for this LayoutSetPrototypeSoap.
68       * 
69       * @return companyId
70       */
71      public long getCompanyId() {
72          return companyId;
73      }
74  
75  
76      /**
77       * Sets the companyId value for this LayoutSetPrototypeSoap.
78       * 
79       * @param companyId
80       */
81      public void setCompanyId(long companyId) {
82          this.companyId = companyId;
83      }
84  
85  
86      /**
87       * Gets the description value for this LayoutSetPrototypeSoap.
88       * 
89       * @return description
90       */
91      public java.lang.String getDescription() {
92          return description;
93      }
94  
95  
96      /**
97       * Sets the description value for this LayoutSetPrototypeSoap.
98       * 
99       * @param description
100      */
101     public void setDescription(java.lang.String description) {
102         this.description = description;
103     }
104 
105 
106     /**
107      * Gets the layoutSetPrototypeId value for this LayoutSetPrototypeSoap.
108      * 
109      * @return layoutSetPrototypeId
110      */
111     public long getLayoutSetPrototypeId() {
112         return layoutSetPrototypeId;
113     }
114 
115 
116     /**
117      * Sets the layoutSetPrototypeId value for this LayoutSetPrototypeSoap.
118      * 
119      * @param layoutSetPrototypeId
120      */
121     public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
122         this.layoutSetPrototypeId = layoutSetPrototypeId;
123     }
124 
125 
126     /**
127      * Gets the name value for this LayoutSetPrototypeSoap.
128      * 
129      * @return name
130      */
131     public java.lang.String getName() {
132         return name;
133     }
134 
135 
136     /**
137      * Sets the name value for this LayoutSetPrototypeSoap.
138      * 
139      * @param name
140      */
141     public void setName(java.lang.String name) {
142         this.name = name;
143     }
144 
145 
146     /**
147      * Gets the primaryKey value for this LayoutSetPrototypeSoap.
148      * 
149      * @return primaryKey
150      */
151     public long getPrimaryKey() {
152         return primaryKey;
153     }
154 
155 
156     /**
157      * Sets the primaryKey value for this LayoutSetPrototypeSoap.
158      * 
159      * @param primaryKey
160      */
161     public void setPrimaryKey(long primaryKey) {
162         this.primaryKey = primaryKey;
163     }
164 
165 
166     /**
167      * Gets the settings value for this LayoutSetPrototypeSoap.
168      * 
169      * @return settings
170      */
171     public java.lang.String getSettings() {
172         return settings;
173     }
174 
175 
176     /**
177      * Sets the settings value for this LayoutSetPrototypeSoap.
178      * 
179      * @param settings
180      */
181     public void setSettings(java.lang.String settings) {
182         this.settings = settings;
183     }
184 
185     private java.lang.Object __equalsCalc = null;
186     public synchronized boolean equals(java.lang.Object obj) {
187         if (!(obj instanceof LayoutSetPrototypeSoap)) return false;
188         LayoutSetPrototypeSoap other = (LayoutSetPrototypeSoap) obj;
189         if (obj == null) return false;
190         if (this == obj) return true;
191         if (__equalsCalc != null) {
192             return (__equalsCalc == obj);
193         }
194         __equalsCalc = obj;
195         boolean _equals;
196         _equals = true && 
197             this.active == other.isActive() &&
198             this.companyId == other.getCompanyId() &&
199             ((this.description==null && other.getDescription()==null) || 
200              (this.description!=null &&
201               this.description.equals(other.getDescription()))) &&
202             this.layoutSetPrototypeId == other.getLayoutSetPrototypeId() &&
203             ((this.name==null && other.getName()==null) || 
204              (this.name!=null &&
205               this.name.equals(other.getName()))) &&
206             this.primaryKey == other.getPrimaryKey() &&
207             ((this.settings==null && other.getSettings()==null) || 
208              (this.settings!=null &&
209               this.settings.equals(other.getSettings())));
210         __equalsCalc = null;
211         return _equals;
212     }
213 
214     private boolean __hashCodeCalc = false;
215     public synchronized int hashCode() {
216         if (__hashCodeCalc) {
217             return 0;
218         }
219         __hashCodeCalc = true;
220         int _hashCode = 1;
221         _hashCode += (isActive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
222         _hashCode += new Long(getCompanyId()).hashCode();
223         if (getDescription() != null) {
224             _hashCode += getDescription().hashCode();
225         }
226         _hashCode += new Long(getLayoutSetPrototypeId()).hashCode();
227         if (getName() != null) {
228             _hashCode += getName().hashCode();
229         }
230         _hashCode += new Long(getPrimaryKey()).hashCode();
231         if (getSettings() != null) {
232             _hashCode += getSettings().hashCode();
233         }
234         __hashCodeCalc = false;
235         return _hashCode;
236     }
237 
238     // Type metadata
239     private static org.apache.axis.description.TypeDesc typeDesc =
240         new org.apache.axis.description.TypeDesc(LayoutSetPrototypeSoap.class, true);
241 
242     static {
243         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "LayoutSetPrototypeSoap"));
244         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
245         elemField.setFieldName("active");
246         elemField.setXmlName(new javax.xml.namespace.QName("", "active"));
247         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
248         elemField.setNillable(false);
249         typeDesc.addFieldDesc(elemField);
250         elemField = new org.apache.axis.description.ElementDesc();
251         elemField.setFieldName("companyId");
252         elemField.setXmlName(new javax.xml.namespace.QName("", "companyId"));
253         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
254         elemField.setNillable(false);
255         typeDesc.addFieldDesc(elemField);
256         elemField = new org.apache.axis.description.ElementDesc();
257         elemField.setFieldName("description");
258         elemField.setXmlName(new javax.xml.namespace.QName("", "description"));
259         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
260         elemField.setNillable(true);
261         typeDesc.addFieldDesc(elemField);
262         elemField = new org.apache.axis.description.ElementDesc();
263         elemField.setFieldName("layoutSetPrototypeId");
264         elemField.setXmlName(new javax.xml.namespace.QName("", "layoutSetPrototypeId"));
265         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
266         elemField.setNillable(false);
267         typeDesc.addFieldDesc(elemField);
268         elemField = new org.apache.axis.description.ElementDesc();
269         elemField.setFieldName("name");
270         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
271         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
272         elemField.setNillable(true);
273         typeDesc.addFieldDesc(elemField);
274         elemField = new org.apache.axis.description.ElementDesc();
275         elemField.setFieldName("primaryKey");
276         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
277         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
278         elemField.setNillable(false);
279         typeDesc.addFieldDesc(elemField);
280         elemField = new org.apache.axis.description.ElementDesc();
281         elemField.setFieldName("settings");
282         elemField.setXmlName(new javax.xml.namespace.QName("", "settings"));
283         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
284         elemField.setNillable(true);
285         typeDesc.addFieldDesc(elemField);
286     }
287 
288     /**
289      * Return type metadata object
290      */
291     public static org.apache.axis.description.TypeDesc getTypeDesc() {
292         return typeDesc;
293     }
294 
295     /**
296      * Get Custom Serializer
297      */
298     public static org.apache.axis.encoding.Serializer getSerializer(
299            java.lang.String mechType, 
300            java.lang.Class _javaType,  
301            javax.xml.namespace.QName _xmlType) {
302         return 
303           new  org.apache.axis.encoding.ser.BeanSerializer(
304             _javaType, _xmlType, typeDesc);
305     }
306 
307     /**
308      * Get Custom Deserializer
309      */
310     public static org.apache.axis.encoding.Deserializer getDeserializer(
311            java.lang.String mechType, 
312            java.lang.Class _javaType,  
313            javax.xml.namespace.QName _xmlType) {
314         return 
315           new  org.apache.axis.encoding.ser.BeanDeserializer(
316             _javaType, _xmlType, typeDesc);
317     }
318 
319 }
320