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