001: /**
002: * Telecom.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 Telecom implements java.io.Serializable {
009: private oasis.names.tc.wsrp.v1.types.TelephoneNum telephone;
010: private oasis.names.tc.wsrp.v1.types.TelephoneNum fax;
011: private oasis.names.tc.wsrp.v1.types.TelephoneNum mobile;
012: private oasis.names.tc.wsrp.v1.types.TelephoneNum pager;
013: private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
014:
015: public Telecom() {
016: }
017:
018: public Telecom(oasis.names.tc.wsrp.v1.types.Extension[] extensions,
019: oasis.names.tc.wsrp.v1.types.TelephoneNum fax,
020: oasis.names.tc.wsrp.v1.types.TelephoneNum mobile,
021: oasis.names.tc.wsrp.v1.types.TelephoneNum pager,
022: oasis.names.tc.wsrp.v1.types.TelephoneNum telephone) {
023: this .telephone = telephone;
024: this .fax = fax;
025: this .mobile = mobile;
026: this .pager = pager;
027: this .extensions = extensions;
028: }
029:
030: /**
031: * Gets the telephone value for this Telecom.
032: *
033: * @return telephone
034: */
035: public oasis.names.tc.wsrp.v1.types.TelephoneNum getTelephone() {
036: return telephone;
037: }
038:
039: /**
040: * Sets the telephone value for this Telecom.
041: *
042: * @param telephone
043: */
044: public void setTelephone(
045: oasis.names.tc.wsrp.v1.types.TelephoneNum telephone) {
046: this .telephone = telephone;
047: }
048:
049: /**
050: * Gets the fax value for this Telecom.
051: *
052: * @return fax
053: */
054: public oasis.names.tc.wsrp.v1.types.TelephoneNum getFax() {
055: return fax;
056: }
057:
058: /**
059: * Sets the fax value for this Telecom.
060: *
061: * @param fax
062: */
063: public void setFax(oasis.names.tc.wsrp.v1.types.TelephoneNum fax) {
064: this .fax = fax;
065: }
066:
067: /**
068: * Gets the mobile value for this Telecom.
069: *
070: * @return mobile
071: */
072: public oasis.names.tc.wsrp.v1.types.TelephoneNum getMobile() {
073: return mobile;
074: }
075:
076: /**
077: * Sets the mobile value for this Telecom.
078: *
079: * @param mobile
080: */
081: public void setMobile(
082: oasis.names.tc.wsrp.v1.types.TelephoneNum mobile) {
083: this .mobile = mobile;
084: }
085:
086: /**
087: * Gets the pager value for this Telecom.
088: *
089: * @return pager
090: */
091: public oasis.names.tc.wsrp.v1.types.TelephoneNum getPager() {
092: return pager;
093: }
094:
095: /**
096: * Sets the pager value for this Telecom.
097: *
098: * @param pager
099: */
100: public void setPager(oasis.names.tc.wsrp.v1.types.TelephoneNum pager) {
101: this .pager = pager;
102: }
103:
104: /**
105: * Gets the extensions value for this Telecom.
106: *
107: * @return extensions
108: */
109: public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
110: return extensions;
111: }
112:
113: /**
114: * Sets the extensions value for this Telecom.
115: *
116: * @param extensions
117: */
118: public void setExtensions(
119: oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
120: this .extensions = extensions;
121: }
122:
123: public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
124: return this .extensions[i];
125: }
126:
127: public void setExtensions(int i,
128: oasis.names.tc.wsrp.v1.types.Extension _value) {
129: this .extensions[i] = _value;
130: }
131:
132: private java.lang.Object __equalsCalc = null;
133:
134: public synchronized boolean equals(java.lang.Object obj) {
135: if (!(obj instanceof Telecom))
136: return false;
137: Telecom other = (Telecom) obj;
138: if (obj == null)
139: return false;
140: if (this == obj)
141: return true;
142: if (__equalsCalc != null) {
143: return (__equalsCalc == obj);
144: }
145: __equalsCalc = obj;
146: boolean _equals;
147: _equals = true
148: && ((this .telephone == null && other.getTelephone() == null) || (this .telephone != null && this .telephone
149: .equals(other.getTelephone())))
150: && ((this .fax == null && other.getFax() == null) || (this .fax != null && this .fax
151: .equals(other.getFax())))
152: && ((this .mobile == null && other.getMobile() == null) || (this .mobile != null && this .mobile
153: .equals(other.getMobile())))
154: && ((this .pager == null && other.getPager() == null) || (this .pager != null && this .pager
155: .equals(other.getPager())))
156: && ((this .extensions == null && other.getExtensions() == null) || (this .extensions != null && java.util.Arrays
157: .equals(this .extensions, other.getExtensions())));
158: __equalsCalc = null;
159: return _equals;
160: }
161:
162: private boolean __hashCodeCalc = false;
163:
164: public synchronized int hashCode() {
165: if (__hashCodeCalc) {
166: return 0;
167: }
168: __hashCodeCalc = true;
169: int _hashCode = 1;
170: if (getTelephone() != null) {
171: _hashCode += getTelephone().hashCode();
172: }
173: if (getFax() != null) {
174: _hashCode += getFax().hashCode();
175: }
176: if (getMobile() != null) {
177: _hashCode += getMobile().hashCode();
178: }
179: if (getPager() != null) {
180: _hashCode += getPager().hashCode();
181: }
182: if (getExtensions() != null) {
183: for (int i = 0; i < java.lang.reflect.Array
184: .getLength(getExtensions()); i++) {
185: java.lang.Object obj = java.lang.reflect.Array.get(
186: getExtensions(), i);
187: if (obj != null && !obj.getClass().isArray()) {
188: _hashCode += obj.hashCode();
189: }
190: }
191: }
192: __hashCodeCalc = false;
193: return _hashCode;
194: }
195:
196: // Type metadata
197: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
198: Telecom.class, true);
199:
200: static {
201: typeDesc.setXmlType(new javax.xml.namespace.QName(
202: "urn:oasis:names:tc:wsrp:v1:types", "Telecom"));
203: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
204: elemField.setFieldName("telephone");
205: elemField.setXmlName(new javax.xml.namespace.QName(
206: "urn:oasis:names:tc:wsrp:v1:types", "telephone"));
207: elemField.setXmlType(new javax.xml.namespace.QName(
208: "urn:oasis:names:tc:wsrp:v1:types", "TelephoneNum"));
209: elemField.setMinOccurs(0);
210: typeDesc.addFieldDesc(elemField);
211: elemField = new org.apache.axis.description.ElementDesc();
212: elemField.setFieldName("fax");
213: elemField.setXmlName(new javax.xml.namespace.QName(
214: "urn:oasis:names:tc:wsrp:v1:types", "fax"));
215: elemField.setXmlType(new javax.xml.namespace.QName(
216: "urn:oasis:names:tc:wsrp:v1:types", "TelephoneNum"));
217: elemField.setMinOccurs(0);
218: typeDesc.addFieldDesc(elemField);
219: elemField = new org.apache.axis.description.ElementDesc();
220: elemField.setFieldName("mobile");
221: elemField.setXmlName(new javax.xml.namespace.QName(
222: "urn:oasis:names:tc:wsrp:v1:types", "mobile"));
223: elemField.setXmlType(new javax.xml.namespace.QName(
224: "urn:oasis:names:tc:wsrp:v1:types", "TelephoneNum"));
225: elemField.setMinOccurs(0);
226: typeDesc.addFieldDesc(elemField);
227: elemField = new org.apache.axis.description.ElementDesc();
228: elemField.setFieldName("pager");
229: elemField.setXmlName(new javax.xml.namespace.QName(
230: "urn:oasis:names:tc:wsrp:v1:types", "pager"));
231: elemField.setXmlType(new javax.xml.namespace.QName(
232: "urn:oasis:names:tc:wsrp:v1:types", "TelephoneNum"));
233: elemField.setMinOccurs(0);
234: typeDesc.addFieldDesc(elemField);
235: elemField = new org.apache.axis.description.ElementDesc();
236: elemField.setFieldName("extensions");
237: elemField.setXmlName(new javax.xml.namespace.QName(
238: "urn:oasis:names:tc:wsrp:v1:types", "extensions"));
239: elemField.setXmlType(new javax.xml.namespace.QName(
240: "urn:oasis:names:tc:wsrp:v1:types", "Extension"));
241: elemField.setMinOccurs(0);
242: typeDesc.addFieldDesc(elemField);
243: }
244:
245: /**
246: * Return type metadata object
247: */
248: public static org.apache.axis.description.TypeDesc getTypeDesc() {
249: return typeDesc;
250: }
251:
252: /**
253: * Get Custom Serializer
254: */
255: public static org.apache.axis.encoding.Serializer getSerializer(
256: java.lang.String mechType, java.lang.Class _javaType,
257: javax.xml.namespace.QName _xmlType) {
258: return new org.apache.axis.encoding.ser.BeanSerializer(
259: _javaType, _xmlType, typeDesc);
260: }
261:
262: /**
263: * Get Custom Deserializer
264: */
265: public static org.apache.axis.encoding.Deserializer getDeserializer(
266: java.lang.String mechType, java.lang.Class _javaType,
267: javax.xml.namespace.QName _xmlType) {
268: return new org.apache.axis.encoding.ser.BeanDeserializer(
269: _javaType, _xmlType, typeDesc);
270: }
271:
272: }
|