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