1   /**
2    * PerformBlockingInteraction.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 PerformBlockingInteraction  implements java.io.Serializable {
11      private oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext;
12      private oasis.names.tc.wsrp.v1.types.PortletContext portletContext;
13      private oasis.names.tc.wsrp.v1.types.RuntimeContext runtimeContext;
14      private oasis.names.tc.wsrp.v1.types.UserContext userContext;
15      private oasis.names.tc.wsrp.v1.types.MarkupParams markupParams;
16      private oasis.names.tc.wsrp.v1.types.InteractionParams interactionParams;
17  
18      public PerformBlockingInteraction() {
19      }
20  
21      public PerformBlockingInteraction(
22             oasis.names.tc.wsrp.v1.types.InteractionParams interactionParams,
23             oasis.names.tc.wsrp.v1.types.MarkupParams markupParams,
24             oasis.names.tc.wsrp.v1.types.PortletContext portletContext,
25             oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext,
26             oasis.names.tc.wsrp.v1.types.RuntimeContext runtimeContext,
27             oasis.names.tc.wsrp.v1.types.UserContext userContext) {
28             this.registrationContext = registrationContext;
29             this.portletContext = portletContext;
30             this.runtimeContext = runtimeContext;
31             this.userContext = userContext;
32             this.markupParams = markupParams;
33             this.interactionParams = interactionParams;
34      }
35  
36  
37      /**
38       * Gets the registrationContext value for this PerformBlockingInteraction.
39       * 
40       * @return registrationContext
41       */
42      public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
43          return registrationContext;
44      }
45  
46  
47      /**
48       * Sets the registrationContext value for this PerformBlockingInteraction.
49       * 
50       * @param registrationContext
51       */
52      public void setRegistrationContext(oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
53          this.registrationContext = registrationContext;
54      }
55  
56  
57      /**
58       * Gets the portletContext value for this PerformBlockingInteraction.
59       * 
60       * @return portletContext
61       */
62      public oasis.names.tc.wsrp.v1.types.PortletContext getPortletContext() {
63          return portletContext;
64      }
65  
66  
67      /**
68       * Sets the portletContext value for this PerformBlockingInteraction.
69       * 
70       * @param portletContext
71       */
72      public void setPortletContext(oasis.names.tc.wsrp.v1.types.PortletContext portletContext) {
73          this.portletContext = portletContext;
74      }
75  
76  
77      /**
78       * Gets the runtimeContext value for this PerformBlockingInteraction.
79       * 
80       * @return runtimeContext
81       */
82      public oasis.names.tc.wsrp.v1.types.RuntimeContext getRuntimeContext() {
83          return runtimeContext;
84      }
85  
86  
87      /**
88       * Sets the runtimeContext value for this PerformBlockingInteraction.
89       * 
90       * @param runtimeContext
91       */
92      public void setRuntimeContext(oasis.names.tc.wsrp.v1.types.RuntimeContext runtimeContext) {
93          this.runtimeContext = runtimeContext;
94      }
95  
96  
97      /**
98       * Gets the userContext value for this PerformBlockingInteraction.
99       * 
100      * @return userContext
101      */
102     public oasis.names.tc.wsrp.v1.types.UserContext getUserContext() {
103         return userContext;
104     }
105 
106 
107     /**
108      * Sets the userContext value for this PerformBlockingInteraction.
109      * 
110      * @param userContext
111      */
112     public void setUserContext(oasis.names.tc.wsrp.v1.types.UserContext userContext) {
113         this.userContext = userContext;
114     }
115 
116 
117     /**
118      * Gets the markupParams value for this PerformBlockingInteraction.
119      * 
120      * @return markupParams
121      */
122     public oasis.names.tc.wsrp.v1.types.MarkupParams getMarkupParams() {
123         return markupParams;
124     }
125 
126 
127     /**
128      * Sets the markupParams value for this PerformBlockingInteraction.
129      * 
130      * @param markupParams
131      */
132     public void setMarkupParams(oasis.names.tc.wsrp.v1.types.MarkupParams markupParams) {
133         this.markupParams = markupParams;
134     }
135 
136 
137     /**
138      * Gets the interactionParams value for this PerformBlockingInteraction.
139      * 
140      * @return interactionParams
141      */
142     public oasis.names.tc.wsrp.v1.types.InteractionParams getInteractionParams() {
143         return interactionParams;
144     }
145 
146 
147     /**
148      * Sets the interactionParams value for this PerformBlockingInteraction.
149      * 
150      * @param interactionParams
151      */
152     public void setInteractionParams(oasis.names.tc.wsrp.v1.types.InteractionParams interactionParams) {
153         this.interactionParams = interactionParams;
154     }
155 
156     private java.lang.Object __equalsCalc = null;
157     public synchronized boolean equals(java.lang.Object obj) {
158         if (!(obj instanceof PerformBlockingInteraction)) return false;
159         PerformBlockingInteraction other = (PerformBlockingInteraction) obj;
160         if (obj == null) return false;
161         if (this == obj) return true;
162         if (__equalsCalc != null) {
163             return (__equalsCalc == obj);
164         }
165         __equalsCalc = obj;
166         boolean _equals;
167         _equals = true && 
168             ((this.registrationContext==null && other.getRegistrationContext()==null) || 
169              (this.registrationContext!=null &&
170               this.registrationContext.equals(other.getRegistrationContext()))) &&
171             ((this.portletContext==null && other.getPortletContext()==null) || 
172              (this.portletContext!=null &&
173               this.portletContext.equals(other.getPortletContext()))) &&
174             ((this.runtimeContext==null && other.getRuntimeContext()==null) || 
175              (this.runtimeContext!=null &&
176               this.runtimeContext.equals(other.getRuntimeContext()))) &&
177             ((this.userContext==null && other.getUserContext()==null) || 
178              (this.userContext!=null &&
179               this.userContext.equals(other.getUserContext()))) &&
180             ((this.markupParams==null && other.getMarkupParams()==null) || 
181              (this.markupParams!=null &&
182               this.markupParams.equals(other.getMarkupParams()))) &&
183             ((this.interactionParams==null && other.getInteractionParams()==null) || 
184              (this.interactionParams!=null &&
185               this.interactionParams.equals(other.getInteractionParams())));
186         __equalsCalc = null;
187         return _equals;
188     }
189 
190     private boolean __hashCodeCalc = false;
191     public synchronized int hashCode() {
192         if (__hashCodeCalc) {
193             return 0;
194         }
195         __hashCodeCalc = true;
196         int _hashCode = 1;
197         if (getRegistrationContext() != null) {
198             _hashCode += getRegistrationContext().hashCode();
199         }
200         if (getPortletContext() != null) {
201             _hashCode += getPortletContext().hashCode();
202         }
203         if (getRuntimeContext() != null) {
204             _hashCode += getRuntimeContext().hashCode();
205         }
206         if (getUserContext() != null) {
207             _hashCode += getUserContext().hashCode();
208         }
209         if (getMarkupParams() != null) {
210             _hashCode += getMarkupParams().hashCode();
211         }
212         if (getInteractionParams() != null) {
213             _hashCode += getInteractionParams().hashCode();
214         }
215         __hashCodeCalc = false;
216         return _hashCode;
217     }
218 
219     // Type metadata
220     private static org.apache.axis.description.TypeDesc typeDesc =
221         new org.apache.axis.description.TypeDesc(PerformBlockingInteraction.class, true);
222 
223     static {
224         typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", ">performBlockingInteraction"));
225         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
226         elemField.setFieldName("registrationContext");
227         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "registrationContext"));
228         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationContext"));
229         elemField.setNillable(true);
230         typeDesc.addFieldDesc(elemField);
231         elemField = new org.apache.axis.description.ElementDesc();
232         elemField.setFieldName("portletContext");
233         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "portletContext"));
234         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "PortletContext"));
235         typeDesc.addFieldDesc(elemField);
236         elemField = new org.apache.axis.description.ElementDesc();
237         elemField.setFieldName("runtimeContext");
238         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "runtimeContext"));
239         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "RuntimeContext"));
240         typeDesc.addFieldDesc(elemField);
241         elemField = new org.apache.axis.description.ElementDesc();
242         elemField.setFieldName("userContext");
243         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "userContext"));
244         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "UserContext"));
245         elemField.setNillable(true);
246         typeDesc.addFieldDesc(elemField);
247         elemField = new org.apache.axis.description.ElementDesc();
248         elemField.setFieldName("markupParams");
249         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "markupParams"));
250         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "MarkupParams"));
251         typeDesc.addFieldDesc(elemField);
252         elemField = new org.apache.axis.description.ElementDesc();
253         elemField.setFieldName("interactionParams");
254         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "interactionParams"));
255         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "InteractionParams"));
256         typeDesc.addFieldDesc(elemField);
257     }
258 
259     /**
260      * Return type metadata object
261      */
262     public static org.apache.axis.description.TypeDesc getTypeDesc() {
263         return typeDesc;
264     }
265 
266     /**
267      * Get Custom Serializer
268      */
269     public static org.apache.axis.encoding.Serializer getSerializer(
270            java.lang.String mechType, 
271            java.lang.Class _javaType,  
272            javax.xml.namespace.QName _xmlType) {
273         return 
274           new  org.apache.axis.encoding.ser.BeanSerializer(
275             _javaType, _xmlType, typeDesc);
276     }
277 
278     /**
279      * Get Custom Deserializer
280      */
281     public static org.apache.axis.encoding.Deserializer getDeserializer(
282            java.lang.String mechType, 
283            java.lang.Class _javaType,  
284            javax.xml.namespace.QName _xmlType) {
285         return 
286           new  org.apache.axis.encoding.ser.BeanDeserializer(
287             _javaType, _xmlType, typeDesc);
288     }
289 
290 }
291