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