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