1
7
8 package oasis.names.tc.wsrp.v1.types;
9
10 public class PortletPropertyDescriptionResponse implements java.io.Serializable {
11 private oasis.names.tc.wsrp.v1.types.ModelDescription modelDescription;
12 private oasis.names.tc.wsrp.v1.types.ResourceList resourceList;
13 private oasis.names.tc.wsrp.v1.types.Extension[] extensions;
14
15 public PortletPropertyDescriptionResponse() {
16 }
17
18 public PortletPropertyDescriptionResponse(
19 oasis.names.tc.wsrp.v1.types.Extension[] extensions,
20 oasis.names.tc.wsrp.v1.types.ModelDescription modelDescription,
21 oasis.names.tc.wsrp.v1.types.ResourceList resourceList) {
22 this.modelDescription = modelDescription;
23 this.resourceList = resourceList;
24 this.extensions = extensions;
25 }
26
27
28
33 public oasis.names.tc.wsrp.v1.types.ModelDescription getModelDescription() {
34 return modelDescription;
35 }
36
37
38
43 public void setModelDescription(oasis.names.tc.wsrp.v1.types.ModelDescription modelDescription) {
44 this.modelDescription = modelDescription;
45 }
46
47
48
53 public oasis.names.tc.wsrp.v1.types.ResourceList getResourceList() {
54 return resourceList;
55 }
56
57
58
63 public void setResourceList(oasis.names.tc.wsrp.v1.types.ResourceList resourceList) {
64 this.resourceList = resourceList;
65 }
66
67
68
73 public oasis.names.tc.wsrp.v1.types.Extension[] getExtensions() {
74 return extensions;
75 }
76
77
78
83 public void setExtensions(oasis.names.tc.wsrp.v1.types.Extension[] extensions) {
84 this.extensions = extensions;
85 }
86
87 public oasis.names.tc.wsrp.v1.types.Extension getExtensions(int i) {
88 return this.extensions[i];
89 }
90
91 public void setExtensions(int i, oasis.names.tc.wsrp.v1.types.Extension _value) {
92 this.extensions[i] = _value;
93 }
94
95 private java.lang.Object __equalsCalc = null;
96 public synchronized boolean equals(java.lang.Object obj) {
97 if (!(obj instanceof PortletPropertyDescriptionResponse)) return false;
98 PortletPropertyDescriptionResponse other = (PortletPropertyDescriptionResponse) obj;
99 if (obj == null) return false;
100 if (this == obj) return true;
101 if (__equalsCalc != null) {
102 return (__equalsCalc == obj);
103 }
104 __equalsCalc = obj;
105 boolean _equals;
106 _equals = true &&
107 ((this.modelDescription==null && other.getModelDescription()==null) ||
108 (this.modelDescription!=null &&
109 this.modelDescription.equals(other.getModelDescription()))) &&
110 ((this.resourceList==null && other.getResourceList()==null) ||
111 (this.resourceList!=null &&
112 this.resourceList.equals(other.getResourceList()))) &&
113 ((this.extensions==null && other.getExtensions()==null) ||
114 (this.extensions!=null &&
115 java.util.Arrays.equals(this.extensions, other.getExtensions())));
116 __equalsCalc = null;
117 return _equals;
118 }
119
120 private boolean __hashCodeCalc = false;
121 public synchronized int hashCode() {
122 if (__hashCodeCalc) {
123 return 0;
124 }
125 __hashCodeCalc = true;
126 int _hashCode = 1;
127 if (getModelDescription() != null) {
128 _hashCode += getModelDescription().hashCode();
129 }
130 if (getResourceList() != null) {
131 _hashCode += getResourceList().hashCode();
132 }
133 if (getExtensions() != null) {
134 for (int i=0;
135 i<java.lang.reflect.Array.getLength(getExtensions());
136 i++) {
137 java.lang.Object obj = java.lang.reflect.Array.get(getExtensions(), i);
138 if (obj != null &&
139 !obj.getClass().isArray()) {
140 _hashCode += obj.hashCode();
141 }
142 }
143 }
144 __hashCodeCalc = false;
145 return _hashCode;
146 }
147
148 private static org.apache.axis.description.TypeDesc typeDesc =
150 new org.apache.axis.description.TypeDesc(PortletPropertyDescriptionResponse.class, true);
151
152 static {
153 typeDesc.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "PortletPropertyDescriptionResponse"));
154 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
155 elemField.setFieldName("modelDescription");
156 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "modelDescription"));
157 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "ModelDescription"));
158 elemField.setMinOccurs(0);
159 typeDesc.addFieldDesc(elemField);
160 elemField = new org.apache.axis.description.ElementDesc();
161 elemField.setFieldName("resourceList");
162 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "resourceList"));
163 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "ResourceList"));
164 elemField.setMinOccurs(0);
165 typeDesc.addFieldDesc(elemField);
166 elemField = new org.apache.axis.description.ElementDesc();
167 elemField.setFieldName("extensions");
168 elemField.setXmlName(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "extensions"));
169 elemField.setXmlType(new javax.xml.namespace.QName("urn:oasis:names:tc:wsrp:v1:types", "Extension"));
170 elemField.setMinOccurs(0);
171 typeDesc.addFieldDesc(elemField);
172 }
173
174
177 public static org.apache.axis.description.TypeDesc getTypeDesc() {
178 return typeDesc;
179 }
180
181
184 public static org.apache.axis.encoding.Serializer getSerializer(
185 java.lang.String mechType,
186 java.lang.Class _javaType,
187 javax.xml.namespace.QName _xmlType) {
188 return
189 new org.apache.axis.encoding.ser.BeanSerializer(
190 _javaType, _xmlType, typeDesc);
191 }
192
193
196 public static org.apache.axis.encoding.Deserializer getDeserializer(
197 java.lang.String mechType,
198 java.lang.Class _javaType,
199 javax.xml.namespace.QName _xmlType) {
200 return
201 new org.apache.axis.encoding.ser.BeanDeserializer(
202 _javaType, _xmlType, typeDesc);
203 }
204
205 }
206