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