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