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