1 /***
2 * _input.java
3 *
4 * This file was auto-generated from WSDL
5 * by the Apache Axis WSDL2Java emitter.
6 */
7
8 package org.astrogrid.workflow.beans.v1.axis;
9
10 public class _input implements java.io.Serializable {
11 private org.astrogrid.applications.beans.v1.axis.ceaparameters.ParameterValue[] parameter;
12
13 public _input() {
14 }
15
16 public org.astrogrid.applications.beans.v1.axis.ceaparameters.ParameterValue[] getParameter() {
17 return parameter;
18 }
19
20 public void setParameter(org.astrogrid.applications.beans.v1.axis.ceaparameters.ParameterValue[] parameter) {
21 this.parameter = parameter;
22 }
23
24 public org.astrogrid.applications.beans.v1.axis.ceaparameters.ParameterValue getParameter(int i) {
25 return parameter[i];
26 }
27
28 public void setParameter(int i, org.astrogrid.applications.beans.v1.axis.ceaparameters.ParameterValue value) {
29 this.parameter[i] = value;
30 }
31
32 private java.lang.Object __equalsCalc = null;
33 public synchronized boolean equals(java.lang.Object obj) {
34 if (!(obj instanceof _input)) return false;
35 _input other = (_input) obj;
36 if (obj == null) return false;
37 if (this == obj) return true;
38 if (__equalsCalc != null) {
39 return (__equalsCalc == obj);
40 }
41 __equalsCalc = obj;
42 boolean _equals;
43 _equals = true &&
44 ((this.parameter==null && other.getParameter()==null) ||
45 (this.parameter!=null &&
46 java.util.Arrays.equals(this.parameter, other.getParameter())));
47 __equalsCalc = null;
48 return _equals;
49 }
50
51 private boolean __hashCodeCalc = false;
52 public synchronized int hashCode() {
53 if (__hashCodeCalc) {
54 return 0;
55 }
56 __hashCodeCalc = true;
57 int _hashCode = 1;
58 if (getParameter() != null) {
59 for (int i=0;
60 i<java.lang.reflect.Array.getLength(getParameter());
61 i++) {
62 java.lang.Object obj = java.lang.reflect.Array.get(getParameter(), i);
63 if (obj != null &&
64 !obj.getClass().isArray()) {
65 _hashCode += obj.hashCode();
66 }
67 }
68 }
69 __hashCodeCalc = false;
70 return _hashCode;
71 }
72
73
74 private static org.apache.axis.description.TypeDesc typeDesc =
75 new org.apache.axis.description.TypeDesc(_input.class);
76
77 static {
78 typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/AGWorkflow/v1", "input"));
79 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
80 elemField.setFieldName("parameter");
81 elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/AGWorkflow/v1", "parameter"));
82 elemField.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/AGParameterDefinition/v1", "parameterValue"));
83 elemField.setMinOccurs(0);
84 typeDesc.addFieldDesc(elemField);
85 }
86
87 /***
88 * Return type metadata object
89 */
90 public static org.apache.axis.description.TypeDesc getTypeDesc() {
91 return typeDesc;
92 }
93
94 /***
95 * Get Custom Serializer
96 */
97 public static org.apache.axis.encoding.Serializer getSerializer(
98 java.lang.String mechType,
99 java.lang.Class _javaType,
100 javax.xml.namespace.QName _xmlType) {
101 return
102 new org.apache.axis.encoding.ser.BeanSerializer(
103 _javaType, _xmlType, typeDesc);
104 }
105
106 /***
107 * Get Custom Deserializer
108 */
109 public static org.apache.axis.encoding.Deserializer getDeserializer(
110 java.lang.String mechType,
111 java.lang.Class _javaType,
112 javax.xml.namespace.QName _xmlType) {
113 return
114 new org.apache.axis.encoding.ser.BeanDeserializer(
115 _javaType, _xmlType, typeDesc);
116 }
117
118 }