1
7
8 package oasis.names.tc.wsrp.v1.types;
9
10 public class GetPortletDescription 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 GetPortletDescription() {
17 }
18
19 public GetPortletDescription(
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
36 public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
37 return registrationContext;
38 }
39
40
41
46 public void setRegistrationContext(oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
47 this.registrationContext = registrationContext;
48 }
49
50
51
56 public oasis.names.tc.wsrp.v1.types.PortletContext getPortletContext() {
57 return portletContext;
58 }
59
60
61
66 public void setPortletContext(oasis.names.tc.wsrp.v1.types.PortletContext portletContext) {
67 this.portletContext = portletContext;
68 }
69
70
71
76 public oasis.names.tc.wsrp.v1.types.UserContext getUserContext() {
77 return userContext;
78 }
79
80
81
86 public void setUserContext(oasis.names.tc.wsrp.v1.types.UserContext userContext) {
87 this.userContext = userContext;
88 }
89
90
91
96 public java.lang.String[] getDesiredLocales() {
97 return desiredLocales;
98 }
99
100
101
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 GetPortletDescription)) return false;
121 GetPortletDescription other = (GetPortletDescription) 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 private static org.apache.axis.description.TypeDesc typeDesc =
179 new org.apache.axis.description.TypeDesc(GetPortletDescription.class, true);
180
181 static {
182 typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", ">getPortletDescription"));
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
211 public static org.apache.axis.description.TypeDesc getTypeDesc() {
212 return typeDesc;
213 }
214
215
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
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