View Javadoc

1   /***
2    * InputListType.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis WSDL2Java emitter.
6    */
7   
8   package org.astrogrid.jes.types.v1.cea.axis;
9   
10  public class InputListType  implements java.io.Serializable {
11      private org.astrogrid.applications.beans.v1.axis.ceaparameters.ParameterValue[] input;
12  
13      public InputListType() {
14      }
15  
16      public org.astrogrid.applications.beans.v1.axis.ceaparameters.ParameterValue[] getInput() {
17          return input;
18      }
19  
20      public void setInput(org.astrogrid.applications.beans.v1.axis.ceaparameters.ParameterValue[] input) {
21          this.input = input;
22      }
23  
24      public org.astrogrid.applications.beans.v1.axis.ceaparameters.ParameterValue getInput(int i) {
25          return input[i];
26      }
27  
28      public void setInput(int i, org.astrogrid.applications.beans.v1.axis.ceaparameters.ParameterValue value) {
29          this.input[i] = value;
30      }
31  
32      private java.lang.Object __equalsCalc = null;
33      public synchronized boolean equals(java.lang.Object obj) {
34          if (!(obj instanceof InputListType)) return false;
35          InputListType other = (InputListType) 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.input==null && other.getInput()==null) || 
45               (this.input!=null &&
46                java.util.Arrays.equals(this.input, other.getInput())));
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 (getInput() != null) {
59              for (int i=0;
60                   i<java.lang.reflect.Array.getLength(getInput());
61                   i++) {
62                  java.lang.Object obj = java.lang.reflect.Array.get(getInput(), 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      // Type metadata
74      private static org.apache.axis.description.TypeDesc typeDesc =
75          new org.apache.axis.description.TypeDesc(InputListType.class);
76  
77      static {
78          typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "input-list-type"));
79          org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
80          elemField.setFieldName("input");
81          elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "input"));
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 }