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