1   /**
2    * EmployerInfo.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
6    */
7   
8   package oasis.names.tc.wsrp.v1.types;
9   
10  public class EmployerInfo  implements java.io.Serializable {
11      private java.lang.String employer;
12      private java.lang.String department;
13      private java.lang.String jobtitle;
14      private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
15  
16      public EmployerInfo() {
17      }
18  
19      public EmployerInfo(
20             java.lang.String department,
21             java.lang.String employer,
22             oasis.names.tc.wsrp.v1.types.Extension[] extensions,
23             java.lang.String jobtitle) {
24             this.employer = employer;
25             this.department = department;
26             this.jobtitle = jobtitle;
27             this.extensions = extensions;
28      }
29  
30  
31      /**
32       * Gets the employer value for this EmployerInfo.
33       * 
34       * @return employer
35       */
36      public java.lang.String getEmployer() {
37          return employer;
38      }
39  
40  
41      /**
42       * Sets the employer value for this EmployerInfo.
43       * 
44       * @param employer
45       */
46      public void setEmployer(java.lang.String employer) {
47          this.employer = employer;
48      }
49  
50  
51      /**
52       * Gets the department value for this EmployerInfo.
53       * 
54       * @return department
55       */
56      public java.lang.String getDepartment() {
57          return department;
58      }
59  
60  
61      /**
62       * Sets the department value for this EmployerInfo.
63       * 
64       * @param department
65       */
66      public void setDepartment(java.lang.String department) {
67          this.department = department;
68      }
69  
70  
71      /**
72       * Gets the jobtitle value for this EmployerInfo.
73       * 
74       * @return jobtitle
75       */
76      public java.lang.String getJobtitle() {
77          return jobtitle;
78      }
79  
80  
81      /**
82       * Sets the jobtitle value for this EmployerInfo.
83       * 
84       * @param jobtitle
85       */
86      public void setJobtitle(java.lang.String jobtitle) {
87          this.jobtitle = jobtitle;
88      }
89  
90  
91      /**
92       * Gets the extensions value for this EmployerInfo.
93       * 
94       * @return extensions
95       */
96      public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
97          return extensions;
98      }
99  
100 
101     /**
102      * Sets the extensions value for this EmployerInfo.
103      * 
104      * @param extensions
105      */
106     public void setExtensions(oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
107         this.extensions = extensions;
108     }
109 
110     public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
111         return this.extensions[i];
112     }
113 
114     public void setExtensions(int i, oasis.names.tc.wsrp.v1.types.Extension _value) {
115         this.extensions[i] = _value;
116     }
117 
118     private java.lang.Object __equalsCalc = null;
119     public synchronized boolean equals(java.lang.Object obj) {
120         if (!(obj instanceof EmployerInfo)) return false;
121         EmployerInfo other = (EmployerInfo) obj;
122         if (obj == null) return false;
123         if (this == obj) return true;
124         if (__equalsCalc != null) {
125             return (__equalsCalc == obj);
126         }
127         __equalsCalc = obj;
128         boolean _equals;
129         _equals = true && 
130             ((this.employer==null && other.getEmployer()==null) || 
131              (this.employer!=null &&
132               this.employer.equals(other.getEmployer()))) &&
133             ((this.department==null && other.getDepartment()==null) || 
134              (this.department!=null &&
135               this.department.equals(other.getDepartment()))) &&
136             ((this.jobtitle==null && other.getJobtitle()==null) || 
137              (this.jobtitle!=null &&
138               this.jobtitle.equals(other.getJobtitle()))) &&
139             ((this.extensions==null && other.getExtensions()==null) || 
140              (this.extensions!=null &&
141               java.util.Arrays.equals(this.extensions, other.getExtensions())));
142         __equalsCalc = null;
143         return _equals;
144     }
145 
146     private boolean __hashCodeCalc = false;
147     public synchronized int hashCode() {
148         if (__hashCodeCalc) {
149             return 0;
150         }
151         __hashCodeCalc = true;
152         int _hashCode = 1;
153         if (getEmployer() != null) {
154             _hashCode += getEmployer().hashCode();
155         }
156         if (getDepartment() != null) {
157             _hashCode += getDepartment().hashCode();
158         }
159         if (getJobtitle() != null) {
160             _hashCode += getJobtitle().hashCode();
161         }
162         if (getExtensions() != null) {
163             for (int i=0;
164                  i<java.lang.reflect.Array.getLength(getExtensions());
165                  i++) {
166                 java.lang.Object obj = java.lang.reflect.Array.get(getExtensions(), i);
167                 if (obj != null &&
168                     !obj.getClass().isArray()) {
169                     _hashCode += obj.hashCode();
170                 }
171             }
172         }
173         __hashCodeCalc = false;
174         return _hashCode;
175     }
176 
177     // Type metadata
178     private static org.apache.axis.description.TypeDesc typeDesc =
179         new org.apache.axis.description.TypeDesc(EmployerInfo.class, true);
180 
181     static {
182         typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "EmployerInfo"));
183         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
184         elemField.setFieldName("employer");
185         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "employer"));
186         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
187         elemField.setMinOccurs(0);
188         typeDesc.addFieldDesc(elemField);
189         elemField = new org.apache.axis.description.ElementDesc();
190         elemField.setFieldName("department");
191         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "department"));
192         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
193         elemField.setMinOccurs(0);
194         typeDesc.addFieldDesc(elemField);
195         elemField = new org.apache.axis.description.ElementDesc();
196         elemField.setFieldName("jobtitle");
197         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "jobtitle"));
198         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
199         elemField.setMinOccurs(0);
200         typeDesc.addFieldDesc(elemField);
201         elemField = new org.apache.axis.description.ElementDesc();
202         elemField.setFieldName("extensions");
203         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "extensions"));
204         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "Extension"));
205         elemField.setMinOccurs(0);
206         typeDesc.addFieldDesc(elemField);
207     }
208 
209     /**
210      * Return type metadata object
211      */
212     public static org.apache.axis.description.TypeDesc getTypeDesc() {
213         return typeDesc;
214     }
215 
216     /**
217      * Get Custom Serializer
218      */
219     public static org.apache.axis.encoding.Serializer getSerializer(
220            java.lang.String mechType, 
221            java.lang.Class _javaType,  
222            javax.xml.namespace.QName _xmlType) {
223         return 
224           new  org.apache.axis.encoding.ser.BeanSerializer(
225             _javaType, _xmlType, typeDesc);
226     }
227 
228     /**
229      * Get Custom Deserializer
230      */
231     public static org.apache.axis.encoding.Deserializer getDeserializer(
232            java.lang.String mechType, 
233            java.lang.Class _javaType,  
234            javax.xml.namespace.QName _xmlType) {
235         return 
236           new  org.apache.axis.encoding.ser.BeanDeserializer(
237             _javaType, _xmlType, typeDesc);
238     }
239 
240 }
241