001: /**
002: * SetPortletProperties.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 SetPortletProperties implements java.io.Serializable {
009: private oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext;
010: private oasis.names.tc.wsrp.v1.types.PortletContext portletContext;
011: private oasis.names.tc.wsrp.v1.types.UserContext userContext;
012: private oasis.names.tc.wsrp.v1.types.PropertyList propertyList;
013:
014: public SetPortletProperties() {
015: }
016:
017: public SetPortletProperties(
018: oasis.names.tc.wsrp.v1.types.PortletContext portletContext,
019: oasis.names.tc.wsrp.v1.types.PropertyList propertyList,
020: oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext,
021: oasis.names.tc.wsrp.v1.types.UserContext userContext) {
022: this .registrationContext = registrationContext;
023: this .portletContext = portletContext;
024: this .userContext = userContext;
025: this .propertyList = propertyList;
026: }
027:
028: /**
029: * Gets the registrationContext value for this SetPortletProperties.
030: *
031: * @return registrationContext
032: */
033: public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
034: return registrationContext;
035: }
036:
037: /**
038: * Sets the registrationContext value for this SetPortletProperties.
039: *
040: * @param registrationContext
041: */
042: public void setRegistrationContext(
043: oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
044: this .registrationContext = registrationContext;
045: }
046:
047: /**
048: * Gets the portletContext value for this SetPortletProperties.
049: *
050: * @return portletContext
051: */
052: public oasis.names.tc.wsrp.v1.types.PortletContext getPortletContext() {
053: return portletContext;
054: }
055:
056: /**
057: * Sets the portletContext value for this SetPortletProperties.
058: *
059: * @param portletContext
060: */
061: public void setPortletContext(
062: oasis.names.tc.wsrp.v1.types.PortletContext portletContext) {
063: this .portletContext = portletContext;
064: }
065:
066: /**
067: * Gets the userContext value for this SetPortletProperties.
068: *
069: * @return userContext
070: */
071: public oasis.names.tc.wsrp.v1.types.UserContext getUserContext() {
072: return userContext;
073: }
074:
075: /**
076: * Sets the userContext value for this SetPortletProperties.
077: *
078: * @param userContext
079: */
080: public void setUserContext(
081: oasis.names.tc.wsrp.v1.types.UserContext userContext) {
082: this .userContext = userContext;
083: }
084:
085: /**
086: * Gets the propertyList value for this SetPortletProperties.
087: *
088: * @return propertyList
089: */
090: public oasis.names.tc.wsrp.v1.types.PropertyList getPropertyList() {
091: return propertyList;
092: }
093:
094: /**
095: * Sets the propertyList value for this SetPortletProperties.
096: *
097: * @param propertyList
098: */
099: public void setPropertyList(
100: oasis.names.tc.wsrp.v1.types.PropertyList propertyList) {
101: this .propertyList = propertyList;
102: }
103:
104: private java.lang.Object __equalsCalc = null;
105:
106: public synchronized boolean equals(java.lang.Object obj) {
107: if (!(obj instanceof SetPortletProperties))
108: return false;
109: SetPortletProperties other = (SetPortletProperties) obj;
110: if (obj == null)
111: return false;
112: if (this == obj)
113: return true;
114: if (__equalsCalc != null) {
115: return (__equalsCalc == obj);
116: }
117: __equalsCalc = obj;
118: boolean _equals;
119: _equals = true
120: && ((this .registrationContext == null && other
121: .getRegistrationContext() == null) || (this .registrationContext != null && this .registrationContext
122: .equals(other.getRegistrationContext())))
123: && ((this .portletContext == null && other
124: .getPortletContext() == null) || (this .portletContext != null && this .portletContext
125: .equals(other.getPortletContext())))
126: && ((this .userContext == null && other.getUserContext() == null) || (this .userContext != null && this .userContext
127: .equals(other.getUserContext())))
128: && ((this .propertyList == null && other
129: .getPropertyList() == null) || (this .propertyList != null && this .propertyList
130: .equals(other.getPropertyList())));
131: __equalsCalc = null;
132: return _equals;
133: }
134:
135: private boolean __hashCodeCalc = false;
136:
137: public synchronized int hashCode() {
138: if (__hashCodeCalc) {
139: return 0;
140: }
141: __hashCodeCalc = true;
142: int _hashCode = 1;
143: if (getRegistrationContext() != null) {
144: _hashCode += getRegistrationContext().hashCode();
145: }
146: if (getPortletContext() != null) {
147: _hashCode += getPortletContext().hashCode();
148: }
149: if (getUserContext() != null) {
150: _hashCode += getUserContext().hashCode();
151: }
152: if (getPropertyList() != null) {
153: _hashCode += getPropertyList().hashCode();
154: }
155: __hashCodeCalc = false;
156: return _hashCode;
157: }
158:
159: // Type metadata
160: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
161: SetPortletProperties.class, true);
162:
163: static {
164: typeDesc.setXmlType(new javax.xml.namespace.QName(
165: "urn:oasis:names:tc:wsrp:v1:types",
166: ">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(
170: "urn:oasis:names:tc:wsrp:v1:types",
171: "registrationContext"));
172: elemField.setXmlType(new javax.xml.namespace.QName(
173: "urn:oasis:names:tc:wsrp:v1:types",
174: "RegistrationContext"));
175: elemField.setNillable(true);
176: typeDesc.addFieldDesc(elemField);
177: elemField = new org.apache.axis.description.ElementDesc();
178: elemField.setFieldName("portletContext");
179: elemField.setXmlName(new javax.xml.namespace.QName(
180: "urn:oasis:names:tc:wsrp:v1:types", "portletContext"));
181: elemField.setXmlType(new javax.xml.namespace.QName(
182: "urn:oasis:names:tc:wsrp:v1:types", "PortletContext"));
183: typeDesc.addFieldDesc(elemField);
184: elemField = new org.apache.axis.description.ElementDesc();
185: elemField.setFieldName("userContext");
186: elemField.setXmlName(new javax.xml.namespace.QName(
187: "urn:oasis:names:tc:wsrp:v1:types", "userContext"));
188: elemField.setXmlType(new javax.xml.namespace.QName(
189: "urn:oasis:names:tc:wsrp:v1:types", "UserContext"));
190: elemField.setNillable(true);
191: typeDesc.addFieldDesc(elemField);
192: elemField = new org.apache.axis.description.ElementDesc();
193: elemField.setFieldName("propertyList");
194: elemField.setXmlName(new javax.xml.namespace.QName(
195: "urn:oasis:names:tc:wsrp:v1:types", "propertyList"));
196: elemField.setXmlType(new javax.xml.namespace.QName(
197: "urn:oasis:names:tc:wsrp:v1:types", "PropertyList"));
198: typeDesc.addFieldDesc(elemField);
199: }
200:
201: /**
202: * Return type metadata object
203: */
204: public static org.apache.axis.description.TypeDesc getTypeDesc() {
205: return typeDesc;
206: }
207:
208: /**
209: * Get Custom Serializer
210: */
211: public static org.apache.axis.encoding.Serializer getSerializer(
212: java.lang.String mechType, java.lang.Class _javaType,
213: javax.xml.namespace.QName _xmlType) {
214: return new org.apache.axis.encoding.ser.BeanSerializer(
215: _javaType, _xmlType, typeDesc);
216: }
217:
218: /**
219: * Get Custom Deserializer
220: */
221: public static org.apache.axis.encoding.Deserializer getDeserializer(
222: java.lang.String mechType, java.lang.Class _javaType,
223: javax.xml.namespace.QName _xmlType) {
224: return new org.apache.axis.encoding.ser.BeanDeserializer(
225: _javaType, _xmlType, typeDesc);
226: }
227:
228: }
|