1   /**
2    * ListTypeSoap.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 ListTypeSoap  implements java.io.Serializable {
11      private int listTypeId;
12  
13      private java.lang.String name;
14  
15      private int primaryKey;
16  
17      private java.lang.String type;
18  
19      public ListTypeSoap() {
20      }
21  
22      public ListTypeSoap(
23             int listTypeId,
24             java.lang.String name,
25             int primaryKey,
26             java.lang.String type) {
27             this.listTypeId = listTypeId;
28             this.name = name;
29             this.primaryKey = primaryKey;
30             this.type = type;
31      }
32  
33  
34      /**
35       * Gets the listTypeId value for this ListTypeSoap.
36       * 
37       * @return listTypeId
38       */
39      public int getListTypeId() {
40          return listTypeId;
41      }
42  
43  
44      /**
45       * Sets the listTypeId value for this ListTypeSoap.
46       * 
47       * @param listTypeId
48       */
49      public void setListTypeId(int listTypeId) {
50          this.listTypeId = listTypeId;
51      }
52  
53  
54      /**
55       * Gets the name value for this ListTypeSoap.
56       * 
57       * @return name
58       */
59      public java.lang.String getName() {
60          return name;
61      }
62  
63  
64      /**
65       * Sets the name value for this ListTypeSoap.
66       * 
67       * @param name
68       */
69      public void setName(java.lang.String name) {
70          this.name = name;
71      }
72  
73  
74      /**
75       * Gets the primaryKey value for this ListTypeSoap.
76       * 
77       * @return primaryKey
78       */
79      public int getPrimaryKey() {
80          return primaryKey;
81      }
82  
83  
84      /**
85       * Sets the primaryKey value for this ListTypeSoap.
86       * 
87       * @param primaryKey
88       */
89      public void setPrimaryKey(int primaryKey) {
90          this.primaryKey = primaryKey;
91      }
92  
93  
94      /**
95       * Gets the type value for this ListTypeSoap.
96       * 
97       * @return type
98       */
99      public java.lang.String getType() {
100         return type;
101     }
102 
103 
104     /**
105      * Sets the type value for this ListTypeSoap.
106      * 
107      * @param type
108      */
109     public void setType(java.lang.String type) {
110         this.type = type;
111     }
112 
113     private java.lang.Object __equalsCalc = null;
114     public synchronized boolean equals(java.lang.Object obj) {
115         if (!(obj instanceof ListTypeSoap)) return false;
116         ListTypeSoap other = (ListTypeSoap) obj;
117         if (obj == null) return false;
118         if (this == obj) return true;
119         if (__equalsCalc != null) {
120             return (__equalsCalc == obj);
121         }
122         __equalsCalc = obj;
123         boolean _equals;
124         _equals = true && 
125             this.listTypeId == other.getListTypeId() &&
126             ((this.name==null && other.getName()==null) || 
127              (this.name!=null &&
128               this.name.equals(other.getName()))) &&
129             this.primaryKey == other.getPrimaryKey() &&
130             ((this.type==null && other.getType()==null) || 
131              (this.type!=null &&
132               this.type.equals(other.getType())));
133         __equalsCalc = null;
134         return _equals;
135     }
136 
137     private boolean __hashCodeCalc = false;
138     public synchronized int hashCode() {
139         if (__hashCodeCalc) {
140             return 0;
141         }
142         __hashCodeCalc = true;
143         int _hashCode = 1;
144         _hashCode += getListTypeId();
145         if (getName() != null) {
146             _hashCode += getName().hashCode();
147         }
148         _hashCode += getPrimaryKey();
149         if (getType() != null) {
150             _hashCode += getType().hashCode();
151         }
152         __hashCodeCalc = false;
153         return _hashCode;
154     }
155 
156     // Type metadata
157     private static org.apache.axis.description.TypeDesc typeDesc =
158         new org.apache.axis.description.TypeDesc(ListTypeSoap.class, true);
159 
160     static {
161         typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.portal.liferay.com", "ListTypeSoap"));
162         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
163         elemField.setFieldName("listTypeId");
164         elemField.setXmlName(new javax.xml.namespace.QName("", "listTypeId"));
165         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
166         elemField.setNillable(false);
167         typeDesc.addFieldDesc(elemField);
168         elemField = new org.apache.axis.description.ElementDesc();
169         elemField.setFieldName("name");
170         elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
171         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
172         elemField.setNillable(true);
173         typeDesc.addFieldDesc(elemField);
174         elemField = new org.apache.axis.description.ElementDesc();
175         elemField.setFieldName("primaryKey");
176         elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
177         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
178         elemField.setNillable(false);
179         typeDesc.addFieldDesc(elemField);
180         elemField = new org.apache.axis.description.ElementDesc();
181         elemField.setFieldName("type");
182         elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
183         elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
184         elemField.setNillable(true);
185         typeDesc.addFieldDesc(elemField);
186     }
187 
188     /**
189      * Return type metadata object
190      */
191     public static org.apache.axis.description.TypeDesc getTypeDesc() {
192         return typeDesc;
193     }
194 
195     /**
196      * Get Custom Serializer
197      */
198     public static org.apache.axis.encoding.Serializer getSerializer(
199            java.lang.String mechType, 
200            java.lang.Class _javaType,  
201            javax.xml.namespace.QName _xmlType) {
202         return 
203           new  org.apache.axis.encoding.ser.BeanSerializer(
204             _javaType, _xmlType, typeDesc);
205     }
206 
207     /**
208      * Get Custom Deserializer
209      */
210     public static org.apache.axis.encoding.Deserializer getDeserializer(
211            java.lang.String mechType, 
212            java.lang.Class _javaType,  
213            javax.xml.namespace.QName _xmlType) {
214         return 
215           new  org.apache.axis.encoding.ser.BeanDeserializer(
216             _javaType, _xmlType, typeDesc);
217     }
218 
219 }
220