1   /**
2    * UpdateResponse.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 UpdateResponse  implements java.io.Serializable {
11      private oasis.names.tc.wsrp.v1.types.SessionContext sessionContext;
12      private oasis.names.tc.wsrp.v1.types.PortletContext portletContext;
13      private oasis.names.tc.wsrp.v1.types.MarkupContext markupContext;
14      private java.lang.String navigationalState;
15      private java.lang.String newWindowState;
16      private java.lang.String newMode;
17  
18      public UpdateResponse() {
19      }
20  
21      public UpdateResponse(
22             oasis.names.tc.wsrp.v1.types.MarkupContext markupContext,
23             java.lang.String navigationalState,
24             java.lang.String newMode,
25             java.lang.String newWindowState,
26             oasis.names.tc.wsrp.v1.types.PortletContext portletContext,
27             oasis.names.tc.wsrp.v1.types.SessionContext sessionContext) {
28             this.sessionContext = sessionContext;
29             this.portletContext = portletContext;
30             this.markupContext = markupContext;
31             this.navigationalState = navigationalState;
32             this.newWindowState = newWindowState;
33             this.newMode = newMode;
34      }
35  
36  
37      /**
38       * Gets the sessionContext value for this UpdateResponse.
39       * 
40       * @return sessionContext
41       */
42      public oasis.names.tc.wsrp.v1.types.SessionContext getSessionContext() {
43          return sessionContext;
44      }
45  
46  
47      /**
48       * Sets the sessionContext value for this UpdateResponse.
49       * 
50       * @param sessionContext
51       */
52      public void setSessionContext(oasis.names.tc.wsrp.v1.types.SessionContext sessionContext) {
53          this.sessionContext = sessionContext;
54      }
55  
56  
57      /**
58       * Gets the portletContext value for this UpdateResponse.
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 UpdateResponse.
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 markupContext value for this UpdateResponse.
79       * 
80       * @return markupContext
81       */
82      public oasis.names.tc.wsrp.v1.types.MarkupContext getMarkupContext() {
83          return markupContext;
84      }
85  
86  
87      /**
88       * Sets the markupContext value for this UpdateResponse.
89       * 
90       * @param markupContext
91       */
92      public void setMarkupContext(oasis.names.tc.wsrp.v1.types.MarkupContext markupContext) {
93          this.markupContext = markupContext;
94      }
95  
96  
97      /**
98       * Gets the navigationalState value for this UpdateResponse.
99       * 
100      * @return navigationalState
101      */
102     public java.lang.String getNavigationalState() {
103         return navigationalState;
104     }
105 
106 
107     /**
108      * Sets the navigationalState value for this UpdateResponse.
109      * 
110      * @param navigationalState
111      */
112     public void setNavigationalState(java.lang.String navigationalState) {
113         this.navigationalState = navigationalState;
114     }
115 
116 
117     /**
118      * Gets the newWindowState value for this UpdateResponse.
119      * 
120      * @return newWindowState
121      */
122     public java.lang.String getNewWindowState() {
123         return newWindowState;
124     }
125 
126 
127     /**
128      * Sets the newWindowState value for this UpdateResponse.
129      * 
130      * @param newWindowState
131      */
132     public void setNewWindowState(java.lang.String newWindowState) {
133         this.newWindowState = newWindowState;
134     }
135 
136 
137     /**
138      * Gets the newMode value for this UpdateResponse.
139      * 
140      * @return newMode
141      */
142     public java.lang.String getNewMode() {
143         return newMode;
144     }
145 
146 
147     /**
148      * Sets the newMode value for this UpdateResponse.
149      * 
150      * @param newMode
151      */
152     public void setNewMode(java.lang.String newMode) {
153         this.newMode = newMode;
154     }
155 
156     private java.lang.Object __equalsCalc = null;
157     public synchronized boolean equals(java.lang.Object obj) {
158         if (!(obj instanceof UpdateResponse)) return false;
159         UpdateResponse other = (UpdateResponse) 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.sessionContext==null && other.getSessionContext()==null) || 
169              (this.sessionContext!=null &&
170               this.sessionContext.equals(other.getSessionContext()))) &&
171             ((this.portletContext==null && other.getPortletContext()==null) || 
172              (this.portletContext!=null &&
173               this.portletContext.equals(other.getPortletContext()))) &&
174             ((this.markupContext==null && other.getMarkupContext()==null) || 
175              (this.markupContext!=null &&
176               this.markupContext.equals(other.getMarkupContext()))) &&
177             ((this.navigationalState==null && other.getNavigationalState()==null) || 
178              (this.navigationalState!=null &&
179               this.navigationalState.equals(other.getNavigationalState()))) &&
180             ((this.newWindowState==null && other.getNewWindowState()==null) || 
181              (this.newWindowState!=null &&
182               this.newWindowState.equals(other.getNewWindowState()))) &&
183             ((this.newMode==null && other.getNewMode()==null) || 
184              (this.newMode!=null &&
185               this.newMode.equals(other.getNewMode())));
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 (getSessionContext() != null) {
198             _hashCode += getSessionContext().hashCode();
199         }
200         if (getPortletContext() != null) {
201             _hashCode += getPortletContext().hashCode();
202         }
203         if (getMarkupContext() != null) {
204             _hashCode += getMarkupContext().hashCode();
205         }
206         if (getNavigationalState() != null) {
207             _hashCode += getNavigationalState().hashCode();
208         }
209         if (getNewWindowState() != null) {
210             _hashCode += getNewWindowState().hashCode();
211         }
212         if (getNewMode() != null) {
213             _hashCode += getNewMode().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(UpdateResponse.class, true);
222 
223     static {
224         typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "UpdateResponse"));
225         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
226         elemField.setFieldName("sessionContext");
227         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "sessionContext"));
228         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "SessionContext"));
229         elemField.setMinOccurs(0);
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         elemField.setMinOccurs(0);
236         typeDesc.addFieldDesc(elemField);
237         elemField = new org.apache.axis.description.ElementDesc();
238         elemField.setFieldName("markupContext");
239         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "markupContext"));
240         elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "MarkupContext"));
241         elemField.setMinOccurs(0);
242         typeDesc.addFieldDesc(elemField);
243         elemField = new org.apache.axis.description.ElementDesc();
244         elemField.setFieldName("navigationalState");
245         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "navigationalState"));
246         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
247         elemField.setNillable(true);
248         typeDesc.addFieldDesc(elemField);
249         elemField = new org.apache.axis.description.ElementDesc();
250         elemField.setFieldName("newWindowState");
251         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "newWindowState"));
252         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
253         elemField.setMinOccurs(0);
254         typeDesc.addFieldDesc(elemField);
255         elemField = new org.apache.axis.description.ElementDesc();
256         elemField.setFieldName("newMode");
257         elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "newMode"));
258         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
259         elemField.setMinOccurs(0);
260         typeDesc.addFieldDesc(elemField);
261     }
262 
263     /**
264      * Return type metadata object
265      */
266     public static org.apache.axis.description.TypeDesc getTypeDesc() {
267         return typeDesc;
268     }
269 
270     /**
271      * Get Custom Serializer
272      */
273     public static org.apache.axis.encoding.Serializer getSerializer(
274            java.lang.String mechType, 
275            java.lang.Class _javaType,  
276            javax.xml.namespace.QName _xmlType) {
277         return 
278           new  org.apache.axis.encoding.ser.BeanSerializer(
279             _javaType, _xmlType, typeDesc);
280     }
281 
282     /**
283      * Get Custom Deserializer
284      */
285     public static org.apache.axis.encoding.Deserializer getDeserializer(
286            java.lang.String mechType, 
287            java.lang.Class _javaType,  
288            javax.xml.namespace.QName _xmlType) {
289         return 
290           new  org.apache.axis.encoding.ser.BeanDeserializer(
291             _javaType, _xmlType, typeDesc);
292     }
293 
294 }
295