1 /***
2 * _tool.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 _tool implements java.io.Serializable {
11 private org.astrogrid.workflow.beans.v1.axis._input input;
12 private org.astrogrid.workflow.beans.v1.axis._output output;
13 private java.lang.String name;
14 private java.lang.String _interface;
15
16 public _tool() {
17 }
18
19 public org.astrogrid.workflow.beans.v1.axis._input getInput() {
20 return input;
21 }
22
23 public void setInput(org.astrogrid.workflow.beans.v1.axis._input input) {
24 this.input = input;
25 }
26
27 public org.astrogrid.workflow.beans.v1.axis._output getOutput() {
28 return output;
29 }
30
31 public void setOutput(org.astrogrid.workflow.beans.v1.axis._output output) {
32 this.output = output;
33 }
34
35 public java.lang.String getName() {
36 return name;
37 }
38
39 public void setName(java.lang.String name) {
40 this.name = name;
41 }
42
43 public java.lang.String get_interface() {
44 return _interface;
45 }
46
47 public void set_interface(java.lang.String _interface) {
48 this._interface = _interface;
49 }
50
51 private java.lang.Object __equalsCalc = null;
52 public synchronized boolean equals(java.lang.Object obj) {
53 if (!(obj instanceof _tool)) return false;
54 _tool other = (_tool) obj;
55 if (obj == null) return false;
56 if (this == obj) return true;
57 if (__equalsCalc != null) {
58 return (__equalsCalc == obj);
59 }
60 __equalsCalc = obj;
61 boolean _equals;
62 _equals = true &&
63 ((this.input==null && other.getInput()==null) ||
64 (this.input!=null &&
65 this.input.equals(other.getInput()))) &&
66 ((this.output==null && other.getOutput()==null) ||
67 (this.output!=null &&
68 this.output.equals(other.getOutput()))) &&
69 ((this.name==null && other.getName()==null) ||
70 (this.name!=null &&
71 this.name.equals(other.getName()))) &&
72 ((this._interface==null && other.get_interface()==null) ||
73 (this._interface!=null &&
74 this._interface.equals(other.get_interface())));
75 __equalsCalc = null;
76 return _equals;
77 }
78
79 private boolean __hashCodeCalc = false;
80 public synchronized int hashCode() {
81 if (__hashCodeCalc) {
82 return 0;
83 }
84 __hashCodeCalc = true;
85 int _hashCode = 1;
86 if (getInput() != null) {
87 _hashCode += getInput().hashCode();
88 }
89 if (getOutput() != null) {
90 _hashCode += getOutput().hashCode();
91 }
92 if (getName() != null) {
93 _hashCode += getName().hashCode();
94 }
95 if (get_interface() != null) {
96 _hashCode += get_interface().hashCode();
97 }
98 __hashCodeCalc = false;
99 return _hashCode;
100 }
101
102
103 private static org.apache.axis.description.TypeDesc typeDesc =
104 new org.apache.axis.description.TypeDesc(_tool.class);
105
106 static {
107 typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/AGWorkflow/v1", "tool"));
108 org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
109 attrField.setFieldName("name");
110 attrField.setXmlName(new javax.xml.namespace.QName("", "name"));
111 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
112 typeDesc.addFieldDesc(attrField);
113 attrField = new org.apache.axis.description.AttributeDesc();
114 attrField.setFieldName("_interface");
115 attrField.setXmlName(new javax.xml.namespace.QName("", "interface"));
116 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
117 typeDesc.addFieldDesc(attrField);
118 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
119 elemField.setFieldName("input");
120 elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/AGWorkflow/v1", "input"));
121 elemField.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/AGWorkflow/v1", "input"));
122 elemField.setMinOccurs(0);
123 typeDesc.addFieldDesc(elemField);
124 elemField = new org.apache.axis.description.ElementDesc();
125 elemField.setFieldName("output");
126 elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/AGWorkflow/v1", "output"));
127 elemField.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/AGWorkflow/v1", "output"));
128 elemField.setMinOccurs(0);
129 typeDesc.addFieldDesc(elemField);
130 }
131
132 /***
133 * Return type metadata object
134 */
135 public static org.apache.axis.description.TypeDesc getTypeDesc() {
136 return typeDesc;
137 }
138
139 /***
140 * Get Custom Serializer
141 */
142 public static org.apache.axis.encoding.Serializer getSerializer(
143 java.lang.String mechType,
144 java.lang.Class _javaType,
145 javax.xml.namespace.QName _xmlType) {
146 return
147 new org.apache.axis.encoding.ser.BeanSerializer(
148 _javaType, _xmlType, typeDesc);
149 }
150
151 /***
152 * Get Custom Deserializer
153 */
154 public static org.apache.axis.encoding.Deserializer getDeserializer(
155 java.lang.String mechType,
156 java.lang.Class _javaType,
157 javax.xml.namespace.QName _xmlType) {
158 return
159 new org.apache.axis.encoding.ser.BeanDeserializer(
160 _javaType, _xmlType, typeDesc);
161 }
162
163 }