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