001: /**
002: * EmployerInfo.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.
006: */package oasis.names.tc.wsrp.v1.types;
007:
008: public class EmployerInfo implements java.io.Serializable {
009: private java.lang.String employer;
010: private java.lang.String department;
011: private java.lang.String jobtitle;
012: private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
013:
014: public EmployerInfo() {
015: }
016:
017: public EmployerInfo(java.lang.String department,
018: java.lang.String employer,
019: oasis.names.tc.wsrp.v1.types.Extension[] extensions,
020: java.lang.String jobtitle) {
021: this .employer = employer;
022: this .department = department;
023: this .jobtitle = jobtitle;
024: this .extensions = extensions;
025: }
026:
027: /**
028: * Gets the employer value for this EmployerInfo.
029: *
030: * @return employer
031: */
032: public java.lang.String getEmployer() {
033: return employer;
034: }
035:
036: /**
037: * Sets the employer value for this EmployerInfo.
038: *
039: * @param employer
040: */
041: public void setEmployer(java.lang.String employer) {
042: this .employer = employer;
043: }
044:
045: /**
046: * Gets the department value for this EmployerInfo.
047: *
048: * @return department
049: */
050: public java.lang.String getDepartment() {
051: return department;
052: }
053:
054: /**
055: * Sets the department value for this EmployerInfo.
056: *
057: * @param department
058: */
059: public void setDepartment(java.lang.String department) {
060: this .department = department;
061: }
062:
063: /**
064: * Gets the jobtitle value for this EmployerInfo.
065: *
066: * @return jobtitle
067: */
068: public java.lang.String getJobtitle() {
069: return jobtitle;
070: }
071:
072: /**
073: * Sets the jobtitle value for this EmployerInfo.
074: *
075: * @param jobtitle
076: */
077: public void setJobtitle(java.lang.String jobtitle) {
078: this .jobtitle = jobtitle;
079: }
080:
081: /**
082: * Gets the extensions value for this EmployerInfo.
083: *
084: * @return extensions
085: */
086: public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
087: return extensions;
088: }
089:
090: /**
091: * Sets the extensions value for this EmployerInfo.
092: *
093: * @param extensions
094: */
095: public void setExtensions(
096: oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
097: this .extensions = extensions;
098: }
099:
100: public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
101: return this .extensions[i];
102: }
103:
104: public void setExtensions(int i,
105: oasis.names.tc.wsrp.v1.types.Extension _value) {
106: this .extensions[i] = _value;
107: }
108:
109: private java.lang.Object __equalsCalc = null;
110:
111: public synchronized boolean equals(java.lang.Object obj) {
112: if (!(obj instanceof EmployerInfo))
113: return false;
114: EmployerInfo other = (EmployerInfo) obj;
115: if (obj == null)
116: return false;
117: if (this == obj)
118: return true;
119: if (__equalsCalc != null) {
120: return (__equalsCalc == obj);
121: }
122: __equalsCalc = obj;
123: boolean _equals;
124: _equals = true
125: && ((this .employer == null && other.getEmployer() == null) || (this .employer != null && this .employer
126: .equals(other.getEmployer())))
127: && ((this .department == null && other.getDepartment() == null) || (this .department != null && this .department
128: .equals(other.getDepartment())))
129: && ((this .jobtitle == null && other.getJobtitle() == null) || (this .jobtitle != null && this .jobtitle
130: .equals(other.getJobtitle())))
131: && ((this .extensions == null && other.getExtensions() == null) || (this .extensions != null && java.util.Arrays
132: .equals(this .extensions, other.getExtensions())));
133: __equalsCalc = null;
134: return _equals;
135: }
136:
137: private boolean __hashCodeCalc = false;
138:
139: public synchronized int hashCode() {
140: if (__hashCodeCalc) {
141: return 0;
142: }
143: __hashCodeCalc = true;
144: int _hashCode = 1;
145: if (getEmployer() != null) {
146: _hashCode += getEmployer().hashCode();
147: }
148: if (getDepartment() != null) {
149: _hashCode += getDepartment().hashCode();
150: }
151: if (getJobtitle() != null) {
152: _hashCode += getJobtitle().hashCode();
153: }
154: if (getExtensions() != null) {
155: for (int i = 0; i < java.lang.reflect.Array
156: .getLength(getExtensions()); i++) {
157: java.lang.Object obj = java.lang.reflect.Array.get(
158: getExtensions(), i);
159: if (obj != null && !obj.getClass().isArray()) {
160: _hashCode += obj.hashCode();
161: }
162: }
163: }
164: __hashCodeCalc = false;
165: return _hashCode;
166: }
167:
168: // Type metadata
169: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
170: EmployerInfo.class, true);
171:
172: static {
173: typeDesc.setXmlType(new javax.xml.namespace.QName(
174: "urn:oasis:names:tc:wsrp:v1:types", "EmployerInfo"));
175: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
176: elemField.setFieldName("employer");
177: elemField.setXmlName(new javax.xml.namespace.QName(
178: "urn:oasis:names:tc:wsrp:v1:types", "employer"));
179: elemField.setXmlType(new javax.xml.namespace.QName(
180: "http://www.w3.org/2001/XMLSchema", "string"));
181: elemField.setMinOccurs(0);
182: typeDesc.addFieldDesc(elemField);
183: elemField = new org.apache.axis.description.ElementDesc();
184: elemField.setFieldName("department");
185: elemField.setXmlName(new javax.xml.namespace.QName(
186: "urn:oasis:names:tc:wsrp:v1:types", "department"));
187: elemField.setXmlType(new javax.xml.namespace.QName(
188: "http://www.w3.org/2001/XMLSchema", "string"));
189: elemField.setMinOccurs(0);
190: typeDesc.addFieldDesc(elemField);
191: elemField = new org.apache.axis.description.ElementDesc();
192: elemField.setFieldName("jobtitle");
193: elemField.setXmlName(new javax.xml.namespace.QName(
194: "urn:oasis:names:tc:wsrp:v1:types", "jobtitle"));
195: elemField.setXmlType(new javax.xml.namespace.QName(
196: "http://www.w3.org/2001/XMLSchema", "string"));
197: elemField.setMinOccurs(0);
198: typeDesc.addFieldDesc(elemField);
199: elemField = new org.apache.axis.description.ElementDesc();
200: elemField.setFieldName("extensions");
201: elemField.setXmlName(new javax.xml.namespace.QName(
202: "urn:oasis:names:tc:wsrp:v1:types", "extensions"));
203: elemField.setXmlType(new javax.xml.namespace.QName(
204: "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, java.lang.Class _javaType,
221: javax.xml.namespace.QName _xmlType) {
222: return new org.apache.axis.encoding.ser.BeanSerializer(
223: _javaType, _xmlType, typeDesc);
224: }
225:
226: /**
227: * Get Custom Deserializer
228: */
229: public static org.apache.axis.encoding.Deserializer getDeserializer(
230: java.lang.String mechType, java.lang.Class _javaType,
231: javax.xml.namespace.QName _xmlType) {
232: return new org.apache.axis.encoding.ser.BeanDeserializer(
233: _javaType, _xmlType, typeDesc);
234: }
235:
236: }
|