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