1
7
8 package oasis.names.tc.wsrp.v1.types;
9
10 public class DestroyPortlets implements java.io.Serializable {
11 private oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext;
12 private java.lang.String[] portletHandles;
13
14 public DestroyPortlets() {
15 }
16
17 public DestroyPortlets(
18 java.lang.String[] portletHandles,
19 oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
20 this.registrationContext = registrationContext;
21 this.portletHandles = portletHandles;
22 }
23
24
25
30 public oasis.names.tc.wsrp.v1.types.RegistrationContext getRegistrationContext() {
31 return registrationContext;
32 }
33
34
35
40 public void setRegistrationContext(oasis.names.tc.wsrp.v1.types.RegistrationContext registrationContext) {
41 this.registrationContext = registrationContext;
42 }
43
44
45
50 public java.lang.String[] getPortletHandles() {
51 return portletHandles;
52 }
53
54
55
60 public void setPortletHandles(java.lang.String[] portletHandles) {
61 this.portletHandles = portletHandles;
62 }
63
64 public java.lang.String getPortletHandles(int i) {
65 return this.portletHandles[i];
66 }
67
68 public void setPortletHandles(int i, java.lang.String _value) {
69 this.portletHandles[i] = _value;
70 }
71
72 private java.lang.Object __equalsCalc = null;
73 public synchronized boolean equals(java.lang.Object obj) {
74 if (!(obj instanceof DestroyPortlets)) return false;
75 DestroyPortlets other = (DestroyPortlets) obj;
76 if (obj == null) return false;
77 if (this == obj) return true;
78 if (__equalsCalc != null) {
79 return (__equalsCalc == obj);
80 }
81 __equalsCalc = obj;
82 boolean _equals;
83 _equals = true &&
84 ((this.registrationContext==null && other.getRegistrationContext()==null) ||
85 (this.registrationContext!=null &&
86 this.registrationContext.equals(other.getRegistrationContext()))) &&
87 ((this.portletHandles==null && other.getPortletHandles()==null) ||
88 (this.portletHandles!=null &&
89 java.util.Arrays.equals(this.portletHandles, other.getPortletHandles())));
90 __equalsCalc = null;
91 return _equals;
92 }
93
94 private boolean __hashCodeCalc = false;
95 public synchronized int hashCode() {
96 if (__hashCodeCalc) {
97 return 0;
98 }
99 __hashCodeCalc = true;
100 int _hashCode = 1;
101 if (getRegistrationContext() != null) {
102 _hashCode += getRegistrationContext().hashCode();
103 }
104 if (getPortletHandles() != null) {
105 for (int i=0;
106 i<java.lang.reflect.Array.getLength(getPortletHandles());
107 i++) {
108 java.lang.Object obj = java.lang.reflect.Array.get(getPortletHandles(), i);
109 if (obj != null &&
110 !obj.getClass().isArray()) {
111 _hashCode += obj.hashCode();
112 }
113 }
114 }
115 __hashCodeCalc = false;
116 return _hashCode;
117 }
118
119 private static org.apache.axis.description.TypeDesc typeDesc =
121 new org.apache.axis.description.TypeDesc(DestroyPortlets.class, true);
122
123 static {
124 typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", ">destroyPortlets"));
125 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
126 elemField.setFieldName("registrationContext");
127 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "registrationContext"));
128 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "RegistrationContext"));
129 elemField.setNillable(true);
130 typeDesc.addFieldDesc(elemField);
131 elemField = new org.apache.axis.description.ElementDesc();
132 elemField.setFieldName("portletHandles");
133 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "portletHandles"));
134 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
135 typeDesc.addFieldDesc(elemField);
136 }
137
138
141 public static org.apache.axis.description.TypeDesc getTypeDesc() {
142 return typeDesc;
143 }
144
145
148 public static org.apache.axis.encoding.Serializer getSerializer(
149 java.lang.String mechType,
150 java.lang.Class _javaType,
151 javax.xml.namespace.QName _xmlType) {
152 return
153 new org.apache.axis.encoding.ser.BeanSerializer(
154 _javaType, _xmlType, typeDesc);
155 }
156
157
160 public static org.apache.axis.encoding.Deserializer getDeserializer(
161 java.lang.String mechType,
162 java.lang.Class _javaType,
163 javax.xml.namespace.QName _xmlType) {
164 return
165 new org.apache.axis.encoding.ser.BeanDeserializer(
166 _javaType, _xmlType, typeDesc);
167 }
168
169 }
170