1 /***
2 * _extension.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 _extension implements java.io.Serializable, org.apache.axis.encoding.SimpleType {
11 private java.lang.String value;
12 private java.lang.String key;
13
14 public _extension() {
15 }
16
17
18 public _extension(java.lang.String value) {
19 this.value = new java.lang.String(value);
20 }
21
22
23 public java.lang.String toString() {
24 return value == null ? null : value.toString();
25 }
26
27 public java.lang.String getValue() {
28 return value;
29 }
30
31 public void setValue(java.lang.String value) {
32 this.value = value;
33 }
34
35 public java.lang.String getKey() {
36 return key;
37 }
38
39 public void setKey(java.lang.String key) {
40 this.key = key;
41 }
42
43 private java.lang.Object __equalsCalc = null;
44 public synchronized boolean equals(java.lang.Object obj) {
45 if (!(obj instanceof _extension)) return false;
46 _extension other = (_extension) obj;
47 if (obj == null) return false;
48 if (this == obj) return true;
49 if (__equalsCalc != null) {
50 return (__equalsCalc == obj);
51 }
52 __equalsCalc = obj;
53 boolean _equals;
54 _equals = true &&
55 ((this.value==null && other.getValue()==null) ||
56 (this.value!=null &&
57 this.value.equals(other.getValue()))) &&
58 ((this.key==null && other.getKey()==null) ||
59 (this.key!=null &&
60 this.key.equals(other.getKey())));
61 __equalsCalc = null;
62 return _equals;
63 }
64
65 private boolean __hashCodeCalc = false;
66 public synchronized int hashCode() {
67 if (__hashCodeCalc) {
68 return 0;
69 }
70 __hashCodeCalc = true;
71 int _hashCode = 1;
72 if (getValue() != null) {
73 _hashCode += getValue().hashCode();
74 }
75 if (getKey() != null) {
76 _hashCode += getKey().hashCode();
77 }
78 __hashCodeCalc = false;
79 return _hashCode;
80 }
81
82
83 private static org.apache.axis.description.TypeDesc typeDesc =
84 new org.apache.axis.description.TypeDesc(_extension.class);
85
86 static {
87 typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "extension"));
88 org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
89 attrField.setFieldName("key");
90 attrField.setXmlName(new javax.xml.namespace.QName("", "key"));
91 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
92 typeDesc.addFieldDesc(attrField);
93 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
94 elemField.setFieldName("value");
95 elemField.setXmlName(new javax.xml.namespace.QName("", "value"));
96 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
97 typeDesc.addFieldDesc(elemField);
98 }
99
100 /***
101 * Return type metadata object
102 */
103 public static org.apache.axis.description.TypeDesc getTypeDesc() {
104 return typeDesc;
105 }
106
107 /***
108 * Get Custom Serializer
109 */
110 public static org.apache.axis.encoding.Serializer getSerializer(
111 java.lang.String mechType,
112 java.lang.Class _javaType,
113 javax.xml.namespace.QName _xmlType) {
114 return
115 new org.apache.axis.encoding.ser.SimpleSerializer(
116 _javaType, _xmlType, typeDesc);
117 }
118
119 /***
120 * Get Custom Deserializer
121 */
122 public static org.apache.axis.encoding.Deserializer getDeserializer(
123 java.lang.String mechType,
124 java.lang.Class _javaType,
125 javax.xml.namespace.QName _xmlType) {
126 return
127 new org.apache.axis.encoding.ser.SimpleDeserializer(
128 _javaType, _xmlType, typeDesc);
129 }
130
131 }