1
7
8 package com.liferay.client.soap.portlet.softwarecatalog.model;
9
10 public class SCLicenseSoap implements java.io.Serializable {
11 private boolean active;
12
13 private long licenseId;
14
15 private java.lang.String name;
16
17 private boolean openSource;
18
19 private long primaryKey;
20
21 private boolean recommended;
22
23 private java.lang.String url;
24
25 public SCLicenseSoap() {
26 }
27
28 public SCLicenseSoap(
29 boolean active,
30 long licenseId,
31 java.lang.String name,
32 boolean openSource,
33 long primaryKey,
34 boolean recommended,
35 java.lang.String url) {
36 this.active = active;
37 this.licenseId = licenseId;
38 this.name = name;
39 this.openSource = openSource;
40 this.primaryKey = primaryKey;
41 this.recommended = recommended;
42 this.url = url;
43 }
44
45
46
51 public boolean isActive() {
52 return active;
53 }
54
55
56
61 public void setActive(boolean active) {
62 this.active = active;
63 }
64
65
66
71 public long getLicenseId() {
72 return licenseId;
73 }
74
75
76
81 public void setLicenseId(long licenseId) {
82 this.licenseId = licenseId;
83 }
84
85
86
91 public java.lang.String getName() {
92 return name;
93 }
94
95
96
101 public void setName(java.lang.String name) {
102 this.name = name;
103 }
104
105
106
111 public boolean isOpenSource() {
112 return openSource;
113 }
114
115
116
121 public void setOpenSource(boolean openSource) {
122 this.openSource = openSource;
123 }
124
125
126
131 public long getPrimaryKey() {
132 return primaryKey;
133 }
134
135
136
141 public void setPrimaryKey(long primaryKey) {
142 this.primaryKey = primaryKey;
143 }
144
145
146
151 public boolean isRecommended() {
152 return recommended;
153 }
154
155
156
161 public void setRecommended(boolean recommended) {
162 this.recommended = recommended;
163 }
164
165
166
171 public java.lang.String getUrl() {
172 return url;
173 }
174
175
176
181 public void setUrl(java.lang.String url) {
182 this.url = url;
183 }
184
185 private java.lang.Object __equalsCalc = null;
186 public synchronized boolean equals(java.lang.Object obj) {
187 if (!(obj instanceof SCLicenseSoap)) return false;
188 SCLicenseSoap other = (SCLicenseSoap) 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.licenseId == other.getLicenseId() &&
199 ((this.name==null && other.getName()==null) ||
200 (this.name!=null &&
201 this.name.equals(other.getName()))) &&
202 this.openSource == other.isOpenSource() &&
203 this.primaryKey == other.getPrimaryKey() &&
204 this.recommended == other.isRecommended() &&
205 ((this.url==null && other.getUrl()==null) ||
206 (this.url!=null &&
207 this.url.equals(other.getUrl())));
208 __equalsCalc = null;
209 return _equals;
210 }
211
212 private boolean __hashCodeCalc = false;
213 public synchronized int hashCode() {
214 if (__hashCodeCalc) {
215 return 0;
216 }
217 __hashCodeCalc = true;
218 int _hashCode = 1;
219 _hashCode += (isActive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
220 _hashCode += new Long(getLicenseId()).hashCode();
221 if (getName() != null) {
222 _hashCode += getName().hashCode();
223 }
224 _hashCode += (isOpenSource() ? Boolean.TRUE : Boolean.FALSE).hashCode();
225 _hashCode += new Long(getPrimaryKey()).hashCode();
226 _hashCode += (isRecommended() ? Boolean.TRUE : Boolean.FALSE).hashCode();
227 if (getUrl() != null) {
228 _hashCode += getUrl().hashCode();
229 }
230 __hashCodeCalc = false;
231 return _hashCode;
232 }
233
234 private static org.apache.axis.description.TypeDesc typeDesc =
236 new org.apache.axis.description.TypeDesc(SCLicenseSoap.class, true);
237
238 static {
239 typeDesc.setXmlType(new javax.xml.namespace.QName("http://model.softwarecatalog.portlet.liferay.com", "SCLicenseSoap"));
240 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
241 elemField.setFieldName("active");
242 elemField.setXmlName(new javax.xml.namespace.QName("", "active"));
243 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
244 elemField.setNillable(false);
245 typeDesc.addFieldDesc(elemField);
246 elemField = new org.apache.axis.description.ElementDesc();
247 elemField.setFieldName("licenseId");
248 elemField.setXmlName(new javax.xml.namespace.QName("", "licenseId"));
249 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
250 elemField.setNillable(false);
251 typeDesc.addFieldDesc(elemField);
252 elemField = new org.apache.axis.description.ElementDesc();
253 elemField.setFieldName("name");
254 elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
255 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
256 elemField.setNillable(true);
257 typeDesc.addFieldDesc(elemField);
258 elemField = new org.apache.axis.description.ElementDesc();
259 elemField.setFieldName("openSource");
260 elemField.setXmlName(new javax.xml.namespace.QName("", "openSource"));
261 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
262 elemField.setNillable(false);
263 typeDesc.addFieldDesc(elemField);
264 elemField = new org.apache.axis.description.ElementDesc();
265 elemField.setFieldName("primaryKey");
266 elemField.setXmlName(new javax.xml.namespace.QName("", "primaryKey"));
267 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
268 elemField.setNillable(false);
269 typeDesc.addFieldDesc(elemField);
270 elemField = new org.apache.axis.description.ElementDesc();
271 elemField.setFieldName("recommended");
272 elemField.setXmlName(new javax.xml.namespace.QName("", "recommended"));
273 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
274 elemField.setNillable(false);
275 typeDesc.addFieldDesc(elemField);
276 elemField = new org.apache.axis.description.ElementDesc();
277 elemField.setFieldName("url");
278 elemField.setXmlName(new javax.xml.namespace.QName("", "url"));
279 elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"));
280 elemField.setNillable(true);
281 typeDesc.addFieldDesc(elemField);
282 }
283
284
287 public static org.apache.axis.description.TypeDesc getTypeDesc() {
288 return typeDesc;
289 }
290
291
294 public static org.apache.axis.encoding.Serializer getSerializer(
295 java.lang.String mechType,
296 java.lang.Class _javaType,
297 javax.xml.namespace.QName _xmlType) {
298 return
299 new org.apache.axis.encoding.ser.BeanSerializer(
300 _javaType, _xmlType, typeDesc);
301 }
302
303
306 public static org.apache.axis.encoding.Deserializer getDeserializer(
307 java.lang.String mechType,
308 java.lang.Class _javaType,
309 javax.xml.namespace.QName _xmlType) {
310 return
311 new org.apache.axis.encoding.ser.BeanDeserializer(
312 _javaType, _xmlType, typeDesc);
313 }
314
315 }
316