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