1
7
8 package oasis.names.tc.wsrp.v1.types;
9
10 public class SetPortletProperties 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 oasis.names.tc.wsrp.v1.types.PropertyList propertyList;
15
16 public SetPortletProperties() {
17 }
18
19 public SetPortletProperties(
20 oasis.names.tc.wsrp.v1.types.PortletContext portletContext,
21 oasis.names.tc.wsrp.v1.types.PropertyList propertyList,
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.propertyList = propertyList;
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 oasis.names.tc.wsrp.v1.types.PropertyList getPropertyList() {
97 return propertyList;
98 }
99
100
101
106 public void setPropertyList(oasis.names.tc.wsrp.v1.types.PropertyList propertyList) {
107 this.propertyList = propertyList;
108 }
109
110 private java.lang.Object __equalsCalc = null;
111 public synchronized boolean equals(java.lang.Object obj) {
112 if (!(obj instanceof SetPortletProperties)) return false;
113 SetPortletProperties other = (SetPortletProperties) obj;
114 if (obj == null) return false;
115 if (this == obj) return true;
116 if (__equalsCalc != null) {
117 return (__equalsCalc == obj);
118 }
119 __equalsCalc = obj;
120 boolean _equals;
121 _equals = true &&
122 ((this.registrationContext==null && other.getRegistrationContext()==null) ||
123 (this.registrationContext!=null &&
124 this.registrationContext.equals(other.getRegistrationContext()))) &&
125 ((this.portletContext==null && other.getPortletContext()==null) ||
126 (this.portletContext!=null &&
127 this.portletContext.equals(other.getPortletContext()))) &&
128 ((this.userContext==null && other.getUserContext()==null) ||
129 (this.userContext!=null &&
130 this.userContext.equals(other.getUserContext()))) &&
131 ((this.propertyList==null && other.getPropertyList()==null) ||
132 (this.propertyList!=null &&
133 this.propertyList.equals(other.getPropertyList())));
134 __equalsCalc = null;
135 return _equals;
136 }
137
138 private boolean __hashCodeCalc = false;
139 public synchronized int hashCode() {
140 if (__hashCodeCalc) {
141 return 0;
142 }
143 __hashCodeCalc = true;
144 int _hashCode = 1;
145 if (getRegistrationContext() != null) {
146 _hashCode += getRegistrationContext().hashCode();
147 }
148 if (getPortletContext() != null) {
149 _hashCode += getPortletContext().hashCode();
150 }
151 if (getUserContext() != null) {
152 _hashCode += getUserContext().hashCode();
153 }
154 if (getPropertyList() != null) {
155 _hashCode += getPropertyList().hashCode();
156 }
157 __hashCodeCalc = false;
158 return _hashCode;
159 }
160
161 private static org.apache.axis.description.TypeDesc typeDesc =
163 new org.apache.axis.description.TypeDesc(SetPortletProperties.class, true);
164
165 static {
166 typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", ">setPortletProperties"));
167 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
168 elemField.setFieldName("registrationContext");
169 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "registrationContext"));
170 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationContext"));
171 elemField.setNillable(true);
172 typeDesc.addFieldDesc(elemField);
173 elemField = new org.apache.axis.description.ElementDesc();
174 elemField.setFieldName("portletContext");
175 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "portletContext"));
176 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "PortletContext"));
177 typeDesc.addFieldDesc(elemField);
178 elemField = new org.apache.axis.description.ElementDesc();
179 elemField.setFieldName("userContext");
180 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "userContext"));
181 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "UserContext"));
182 elemField.setNillable(true);
183 typeDesc.addFieldDesc(elemField);
184 elemField = new org.apache.axis.description.ElementDesc();
185 elemField.setFieldName("propertyList");
186 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "propertyList"));
187 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "PropertyList"));
188 typeDesc.addFieldDesc(elemField);
189 }
190
191
194 public static org.apache.axis.description.TypeDesc getTypeDesc() {
195 return typeDesc;
196 }
197
198
201 public static org.apache.axis.encoding.Serializer getSerializer(
202 java.lang.String mechType,
203 java.lang.Class _javaType,
204 javax.xml.namespace.QName _xmlType) {
205 return
206 new org.apache.axis.encoding.ser.BeanSerializer(
207 _javaType, _xmlType, typeDesc);
208 }
209
210
213 public static org.apache.axis.encoding.Deserializer getDeserializer(
214 java.lang.String mechType,
215 java.lang.Class _javaType,
216 javax.xml.namespace.QName _xmlType) {
217 return
218 new org.apache.axis.encoding.ser.BeanDeserializer(
219 _javaType, _xmlType, typeDesc);
220 }
221
222 }
223