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