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