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