1   /**
2    * TZSRecurrence.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.kernel.cal;
9   
10  public class TZSRecurrence  extends com.liferay.client.soap.portal.kernel.cal.Recurrence  implements java.io.Serializable {
11      private java.lang.Object timeZone;
12  
13      public TZSRecurrence() {
14      }
15  
16      public TZSRecurrence(
17             com.liferay.client.soap.portal.kernel.cal.DayAndPosition[] byDay,
18             int[] byMonth,
19             int[] byMonthDay,
20             int[] byWeekNo,
21             int[] byYearDay,
22             java.util.Calendar dtEnd,
23             java.util.Calendar dtStart,
24             com.liferay.client.soap.portal.kernel.cal.Duration duration,
25             int frequency,
26             int interval,
27             int occurrence,
28             java.util.Calendar until,
29             int weekStart,
30             java.lang.Object timeZone) {
31          super(
32              byDay,
33              byMonth,
34              byMonthDay,
35              byWeekNo,
36              byYearDay,
37              dtEnd,
38              dtStart,
39              duration,
40              frequency,
41              interval,
42              occurrence,
43              until,
44              weekStart);
45          this.timeZone = timeZone;
46      }
47  
48  
49      /**
50       * Gets the timeZone value for this TZSRecurrence.
51       * 
52       * @return timeZone
53       */
54      public java.lang.Object getTimeZone() {
55          return timeZone;
56      }
57  
58  
59      /**
60       * Sets the timeZone value for this TZSRecurrence.
61       * 
62       * @param timeZone
63       */
64      public void setTimeZone(java.lang.Object timeZone) {
65          this.timeZone = timeZone;
66      }
67  
68      private java.lang.Object __equalsCalc = null;
69      public synchronized boolean equals(java.lang.Object obj) {
70          if (!(obj instanceof TZSRecurrence)) return false;
71          TZSRecurrence other = (TZSRecurrence) obj;
72          if (obj == null) return false;
73          if (this == obj) return true;
74          if (__equalsCalc != null) {
75              return (__equalsCalc == obj);
76          }
77          __equalsCalc = obj;
78          boolean _equals;
79          _equals = super.equals(obj) && 
80              ((this.timeZone==null && other.getTimeZone()==null) || 
81               (this.timeZone!=null &&
82                this.timeZone.equals(other.getTimeZone())));
83          __equalsCalc = null;
84          return _equals;
85      }
86  
87      private boolean __hashCodeCalc = false;
88      public synchronized int hashCode() {
89          if (__hashCodeCalc) {
90              return 0;
91          }
92          __hashCodeCalc = true;
93          int _hashCode = super.hashCode();
94          if (getTimeZone() != null) {
95              _hashCode += getTimeZone().hashCode();
96          }
97          __hashCodeCalc = false;
98          return _hashCode;
99      }
100 
101     // Type metadata
102     private static org.apache.axis.description.TypeDesc typeDesc =
103         new org.apache.axis.description.TypeDesc(TZSRecurrence.class, true);
104 
105     static {
106         typeDesc.setXmlType(new javax.xml.namespace.QName("http://cal.kernel.portal.liferay.com", "TZSRecurrence"));
107         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
108         elemField.setFieldName("timeZone");
109         elemField.setXmlName(new javax.xml.namespace.QName("", "timeZone"));
110         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "anyType"));
111         elemField.setNillable(true);
112         typeDesc.addFieldDesc(elemField);
113     }
114 
115     /**
116      * Return type metadata object
117      */
118     public static org.apache.axis.description.TypeDesc getTypeDesc() {
119         return typeDesc;
120     }
121 
122     /**
123      * Get Custom Serializer
124      */
125     public static org.apache.axis.encoding.Serializer getSerializer(
126            java.lang.String mechType, 
127            java.lang.Class _javaType,  
128            javax.xml.namespace.QName _xmlType) {
129         return 
130           new  org.apache.axis.encoding.ser.BeanSerializer(
131             _javaType, _xmlType, typeDesc);
132     }
133 
134     /**
135      * Get Custom Deserializer
136      */
137     public static org.apache.axis.encoding.Deserializer getDeserializer(
138            java.lang.String mechType, 
139            java.lang.Class _javaType,  
140            javax.xml.namespace.QName _xmlType) {
141         return 
142           new  org.apache.axis.encoding.ser.BeanDeserializer(
143             _javaType, _xmlType, typeDesc);
144     }
145 
146 }
147