1
2
3
4
5
6
7
8 package org.ggf.schemas.jsdl.x2005.x11.jsdl;
9
10 public class Exact_Type implements java.io.Serializable, org.apache.axis.encoding.SimpleType {
11 private double _value;
12
13 private java.lang.Double epsilon;
14
15 public Exact_Type() {
16 }
17
18
19 public Exact_Type(double _value) {
20 this._value = _value;
21 }
22 public Exact_Type(java.lang.String _value) {
23 this._value = new Double(_value).doubleValue();
24 }
25
26
27 public java.lang.String toString() {
28 return new Double(_value).toString();
29 }
30
31
32
33
34
35
36
37 public double get_value() {
38 return _value;
39 }
40
41
42
43
44
45
46
47 public void set_value(double _value) {
48 this._value = _value;
49 }
50
51
52
53
54
55
56
57 public java.lang.Double getEpsilon() {
58 return epsilon;
59 }
60
61
62
63
64
65
66
67 public void setEpsilon(java.lang.Double epsilon) {
68 this.epsilon = epsilon;
69 }
70
71 private java.lang.Object __equalsCalc = null;
72 public synchronized boolean equals(java.lang.Object obj) {
73 if (!(obj instanceof Exact_Type)) return false;
74 Exact_Type other = (Exact_Type) obj;
75 if (obj == null) return false;
76 if (this == obj) return true;
77 if (__equalsCalc != null) {
78 return (__equalsCalc == obj);
79 }
80 __equalsCalc = obj;
81 boolean _equals;
82 _equals = true &&
83 this._value == other.get_value() &&
84 ((this.epsilon==null && other.getEpsilon()==null) ||
85 (this.epsilon!=null &&
86 this.epsilon.equals(other.getEpsilon())));
87 __equalsCalc = null;
88 return _equals;
89 }
90
91 private boolean __hashCodeCalc = false;
92 public synchronized int hashCode() {
93 if (__hashCodeCalc) {
94 return 0;
95 }
96 __hashCodeCalc = true;
97 int _hashCode = 1;
98 _hashCode += new Double(get_value()).hashCode();
99 if (getEpsilon() != null) {
100 _hashCode += getEpsilon().hashCode();
101 }
102 __hashCodeCalc = false;
103 return _hashCode;
104 }
105
106
107 private static org.apache.axis.description.TypeDesc typeDesc =
108 new org.apache.axis.description.TypeDesc(Exact_Type.class, true);
109
110 static {
111 typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.ggf.org/jsdl/2005/11/jsdl", "Exact_Type"));
112 org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
113 attrField.setFieldName("epsilon");
114 attrField.setXmlName(new javax.xml.namespace.QName("", "epsilon"));
115 attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
116 typeDesc.addFieldDesc(attrField);
117 org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
118 elemField.setFieldName("_value");
119 elemField.setXmlName(new javax.xml.namespace.QName("", "_value"));
120 elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
121 elemField.setNillable(false);
122 typeDesc.addFieldDesc(elemField);
123 }
124
125
126
127
128 public static org.apache.axis.description.TypeDesc getTypeDesc() {
129 return typeDesc;
130 }
131
132
133
134
135 public static org.apache.axis.encoding.Serializer getSerializer(
136 java.lang.String mechType,
137 java.lang.Class _javaType,
138 javax.xml.namespace.QName _xmlType) {
139 return
140 new org.apache.axis.encoding.ser.SimpleSerializer(
141 _javaType, _xmlType, typeDesc);
142 }
143
144
145
146
147 public static org.apache.axis.encoding.Deserializer getDeserializer(
148 java.lang.String mechType,
149 java.lang.Class _javaType,
150 javax.xml.namespace.QName _xmlType) {
151 return
152 new org.apache.axis.encoding.ser.SimpleDeserializer(
153 _javaType, _xmlType, typeDesc);
154 }
155
156 }