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