001: /**
002: * GetPortletProperties.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 GetPortletProperties 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 java.lang.String[] names;
013:
014: public GetPortletProperties() {
015: }
016:
017: public GetPortletProperties(
018: java.lang.String[] names,
019: oasis.names.tc.wsrp.v1.types.PortletContext portletContext,
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 .names = names;
026: }
027:
028: /**
029: * Gets the registrationContext value for this GetPortletProperties.
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 GetPortletProperties.
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 GetPortletProperties.
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 GetPortletProperties.
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 GetPortletProperties.
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 GetPortletProperties.
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 names value for this GetPortletProperties.
087: *
088: * @return names
089: */
090: public java.lang.String[] getNames() {
091: return names;
092: }
093:
094: /**
095: * Sets the names value for this GetPortletProperties.
096: *
097: * @param names
098: */
099: public void setNames(java.lang.String[] names) {
100: this .names = names;
101: }
102:
103: public java.lang.String getNames(int i) {
104: return this .names[i];
105: }
106:
107: public void setNames(int i, java.lang.String _value) {
108: this .names[i] = _value;
109: }
110:
111: private java.lang.Object __equalsCalc = null;
112:
113: public synchronized boolean equals(java.lang.Object obj) {
114: if (!(obj instanceof GetPortletProperties))
115: return false;
116: GetPortletProperties other = (GetPortletProperties) obj;
117: if (obj == null)
118: return false;
119: if (this == obj)
120: return true;
121: if (__equalsCalc != null) {
122: return (__equalsCalc == obj);
123: }
124: __equalsCalc = obj;
125: boolean _equals;
126: _equals = true
127: && ((this .registrationContext == null && other
128: .getRegistrationContext() == null) || (this .registrationContext != null && this .registrationContext
129: .equals(other.getRegistrationContext())))
130: && ((this .portletContext == null && other
131: .getPortletContext() == null) || (this .portletContext != null && this .portletContext
132: .equals(other.getPortletContext())))
133: && ((this .userContext == null && other.getUserContext() == null) || (this .userContext != null && this .userContext
134: .equals(other.getUserContext())))
135: && ((this .names == null && other.getNames() == null) || (this .names != null && java.util.Arrays
136: .equals(this .names, other.getNames())));
137: __equalsCalc = null;
138: return _equals;
139: }
140:
141: private boolean __hashCodeCalc = false;
142:
143: public synchronized int hashCode() {
144: if (__hashCodeCalc) {
145: return 0;
146: }
147: __hashCodeCalc = true;
148: int _hashCode = 1;
149: if (getRegistrationContext() != null) {
150: _hashCode += getRegistrationContext().hashCode();
151: }
152: if (getPortletContext() != null) {
153: _hashCode += getPortletContext().hashCode();
154: }
155: if (getUserContext() != null) {
156: _hashCode += getUserContext().hashCode();
157: }
158: if (getNames() != null) {
159: for (int i = 0; i < java.lang.reflect.Array
160: .getLength(getNames()); i++) {
161: java.lang.Object obj = java.lang.reflect.Array.get(
162: getNames(), i);
163: if (obj != null && !obj.getClass().isArray()) {
164: _hashCode += obj.hashCode();
165: }
166: }
167: }
168: __hashCodeCalc = false;
169: return _hashCode;
170: }
171:
172: // Type metadata
173: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
174: GetPortletProperties.class, true);
175:
176: static {
177: typeDesc.setXmlType(new javax.xml.namespace.QName(
178: "urn:oasis:names:tc:wsrp:v1:types",
179: ">getPortletProperties"));
180: org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
181: elemField.setFieldName("registrationContext");
182: elemField.setXmlName(new javax.xml.namespace.QName(
183: "urn:oasis:names:tc:wsrp:v1:types",
184: "registrationContext"));
185: elemField.setXmlType(new javax.xml.namespace.QName(
186: "urn:oasis:names:tc:wsrp:v1:types",
187: "RegistrationContext"));
188: elemField.setNillable(true);
189: typeDesc.addFieldDesc(elemField);
190: elemField = new org.apache.axis.description.ElementDesc();
191: elemField.setFieldName("portletContext");
192: elemField.setXmlName(new javax.xml.namespace.QName(
193: "urn:oasis:names:tc:wsrp:v1:types", "portletContext"));
194: elemField.setXmlType(new javax.xml.namespace.QName(
195: "urn:oasis:names:tc:wsrp:v1:types", "PortletContext"));
196: typeDesc.addFieldDesc(elemField);
197: elemField = new org.apache.axis.description.ElementDesc();
198: elemField.setFieldName("userContext");
199: elemField.setXmlName(new javax.xml.namespace.QName(
200: "urn:oasis:names:tc:wsrp:v1:types", "userContext"));
201: elemField.setXmlType(new javax.xml.namespace.QName(
202: "urn:oasis:names:tc:wsrp:v1:types", "UserContext"));
203: elemField.setNillable(true);
204: typeDesc.addFieldDesc(elemField);
205: elemField = new org.apache.axis.description.ElementDesc();
206: elemField.setFieldName("names");
207: elemField.setXmlName(new javax.xml.namespace.QName(
208: "urn:oasis:names:tc:wsrp:v1:types", "names"));
209: elemField.setXmlType(new javax.xml.namespace.QName(
210: "http://www.w3.org/2001/XMLSchema", "string"));
211: elemField.setNillable(true);
212: typeDesc.addFieldDesc(elemField);
213: }
214:
215: /**
216: * Return type metadata object
217: */
218: public static org.apache.axis.description.TypeDesc getTypeDesc() {
219: return typeDesc;
220: }
221:
222: /**
223: * Get Custom Serializer
224: */
225: public static org.apache.axis.encoding.Serializer getSerializer(
226: java.lang.String mechType, java.lang.Class _javaType,
227: javax.xml.namespace.QName _xmlType) {
228: return new org.apache.axis.encoding.ser.BeanSerializer(
229: _javaType, _xmlType, typeDesc);
230: }
231:
232: /**
233: * Get Custom Deserializer
234: */
235: public static org.apache.axis.encoding.Deserializer getDeserializer(
236: java.lang.String mechType, java.lang.Class _javaType,
237: javax.xml.namespace.QName _xmlType) {
238: return new org.apache.axis.encoding.ser.BeanDeserializer(
239: _javaType, _xmlType, typeDesc);
240: }
241:
242: }
|