1
7
8 package oasis.names.tc.wsrp.v1.types;
9
10 public class DestroyPortletsResponse implements java.io.Serializable {
11 private oasis.names.tc.wsrp.v1.types.DestroyFailed[] destroyFailed;
12 private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
13
14 public DestroyPortletsResponse() {
15 }
16
17 public DestroyPortletsResponse(
18 oasis.names.tc.wsrp.v1.types.DestroyFailed[] destroyFailed,
19 oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
20 this.destroyFailed = destroyFailed;
21 this.extensions = extensions;
22 }
23
24
25
30 public oasis.names.tc.wsrp.v1.types.DestroyFailed[] getDestroyFailed() {
31 return destroyFailed;
32 }
33
34
35
40 public void setDestroyFailed(oasis.names.tc.wsrp.v1.types.DestroyFailed[] destroyFailed) {
41 this.destroyFailed = destroyFailed;
42 }
43
44 public oasis.names.tc.wsrp.v1.types.DestroyFailed getDestroyFailed(int i) {
45 return this.destroyFailed[i];
46 }
47
48 public void setDestroyFailed(int i, oasis.names.tc.wsrp.v1.types.DestroyFailed _value) {
49 this.destroyFailed[i] = _value;
50 }
51
52
53
58 public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
59 return extensions;
60 }
61
62
63
68 public void setExtensions(oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
69 this.extensions = extensions;
70 }
71
72 public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
73 return this.extensions[i];
74 }
75
76 public void setExtensions(int i, oasis.names.tc.wsrp.v1.types.Extension _value) {
77 this.extensions[i] = _value;
78 }
79
80 private java.lang.Object __equalsCalc = null;
81 public synchronized boolean equals(java.lang.Object obj) {
82 if (!(obj instanceof DestroyPortletsResponse)) return false;
83 DestroyPortletsResponse other = (DestroyPortletsResponse) obj;
84 if (obj == null) return false;
85 if (this == obj) return true;
86 if (__equalsCalc != null) {
87 return (__equalsCalc == obj);
88 }
89 __equalsCalc = obj;
90 boolean _equals;
91 _equals = true &&
92 ((this.destroyFailed==null && other.getDestroyFailed()==null) ||
93 (this.destroyFailed!=null &&
94 java.util.Arrays.equals(this.destroyFailed, other.getDestroyFailed()))) &&
95 ((this.extensions==null && other.getExtensions()==null) ||
96 (this.extensions!=null &&
97 java.util.Arrays.equals(this.extensions, other.getExtensions())));
98 __equalsCalc = null;
99 return _equals;
100 }
101
102 private boolean __hashCodeCalc = false;
103 public synchronized int hashCode() {
104 if (__hashCodeCalc) {
105 return 0;
106 }
107 __hashCodeCalc = true;
108 int _hashCode = 1;
109 if (getDestroyFailed() != null) {
110 for (int i=0;
111 i<java.lang.reflect.Array.getLength(getDestroyFailed());
112 i++) {
113 java.lang.Object obj = java.lang.reflect.Array.get(getDestroyFailed(), i);
114 if (obj != null &&
115 !obj.getClass().isArray()) {
116 _hashCode += obj.hashCode();
117 }
118 }
119 }
120 if (getExtensions() != null) {
121 for (int i=0;
122 i<java.lang.reflect.Array.getLength(getExtensions());
123 i++) {
124 java.lang.Object obj = java.lang.reflect.Array.get(getExtensions(), i);
125 if (obj != null &&
126 !obj.getClass().isArray()) {
127 _hashCode += obj.hashCode();
128 }
129 }
130 }
131 __hashCodeCalc = false;
132 return _hashCode;
133 }
134
135 private static org.apache.axis.description.TypeDesc typeDesc =
137 new org.apache.axis.description.TypeDesc(DestroyPortletsResponse.class, true);
138
139 static {
140 typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "DestroyPortletsResponse"));
141 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
142 elemField.setFieldName("destroyFailed");
143 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "destroyFailed"));
144 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "DestroyFailed"));
145 elemField.setMinOccurs(0);
146 typeDesc.addFieldDesc(elemField);
147 elemField = new org.apache.axis.description.ElementDesc();
148 elemField.setFieldName("extensions");
149 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "extensions"));
150 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "Extension"));
151 elemField.setMinOccurs(0);
152 typeDesc.addFieldDesc(elemField);
153 }
154
155
158 public static org.apache.axis.description.TypeDesc getTypeDesc() {
159 return typeDesc;
160 }
161
162
165 public static org.apache.axis.encoding.Serializer getSerializer(
166 java.lang.String mechType,
167 java.lang.Class _javaType,
168 javax.xml.namespace.QName _xmlType) {
169 return
170 new org.apache.axis.encoding.ser.BeanSerializer(
171 _javaType, _xmlType, typeDesc);
172 }
173
174
177 public static org.apache.axis.encoding.Deserializer getDeserializer(
178 java.lang.String mechType,
179 java.lang.Class _javaType,
180 javax.xml.namespace.QName _xmlType) {
181 return
182 new org.apache.axis.encoding.ser.BeanDeserializer(
183 _javaType, _xmlType, typeDesc);
184 }
185
186 }
187