1 /*
2 * EL4J, the Extension Library for the J2EE, adds incremental enhancements to
3 * the spring framework, http://el4j.sf.net
4 * Copyright (C) 2005 by ELCA Informatique SA, Av. de la Harpe 22-24,
5 * 1000 Lausanne, Switzerland, http://www.elca.ch
6 *
7 * EL4J is published under the GNU Lesser General Public License (LGPL)
8 * Version 2.1. See http://www.gnu.org/licenses/
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * For alternative licensing, please contact info@elca.ch
16 */
17
18 package ch.elca.el4j.tests.remoting.jaxws.service;
19
20
21 import java.util.List;
22 import java.util.Set;
23
24 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
25
26
27 /**
28 * This is a value object for test reason.
29 *
30 * @svnLink $Revision: 3873 $;$Date: 2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) $;$Author: swismer $;$URL: https://el4j.svn.sourceforge.net/svnroot/el4j/branches/el4j_3_1/el4j/framework/tests/remoting_jaxws/jar-wsgen/src/main/java/ch/elca/el4j/tests/remoting/jaxws/service/CalculatorValueObject.java $
31 *
32 * ATTENTION: Do not rename elements using @XmlElement annotations!
33 *
34 * @author Martin Zeltner (MZE)
35 * @author Stefan Wismer (SWI)
36 */
37 public class CalculatorValueObject {
38 /**
39 * Int test value.
40 */
41 private int m_myInt;
42
43 /**
44 * Long test value.
45 */
46 private long m_myLong;
47
48 /**
49 * Double test value.
50 */
51 private double m_myDouble;
52
53 /**
54 * String test value.
55 */
56 private String m_myString;
57
58 /**
59 * Byte array test value.
60 */
61 private byte[] m_myByteArray;
62
63 /**
64 * String array test value.
65 */
66 private String[] m_myStringArray;
67
68 /**
69 * String array test value.
70 */
71 private int[] m_myIntArray;
72
73 /**
74 * A nested object.
75 */
76 private SomeIntValue m_myNestedObject;
77
78 /**
79 * A list of Integers.
80 */
81 private List<Integer> m_myIntegerList;
82
83 /**
84 * A list of nested objects.
85 */
86 private List<SomeIntValue> m_myNestedObjectList;
87
88 /**
89 * A set of Integers.
90 */
91 private Set<Integer> m_myIntegerSet;
92
93 // Map is not yet supported. Use list of tuples intead
94 //private Map<Integer, Integer> m_myIntegerMap;
95
96 // Neither multi-dimensional arrays nor nested collections like
97 // List<List<...>> are supported.
98
99 /**
100 * A two dimensional array.
101 *
102 * ATTENTION: Do not use {@link XmlJavaTypeAdapter} annotation here
103 * but on setter method, otherwise wsgen generates
104 * an additional element called m_myIntMatrix
105 */
106 private int[][] m_myIntMatrix;
107
108
109 /**
110 * @return Returns the myByteArray.
111 */
112 public byte[] getMyByteArray() {
113 return m_myByteArray;
114 }
115
116 /**
117 * @param myByteArray
118 * The myByteArray to set.
119 */
120 public void setMyByteArray(byte[] myByteArray) {
121 m_myByteArray = myByteArray;
122 }
123
124 /**
125 * @return Returns the myDouble.
126 */
127 public double getMyDouble() {
128 return m_myDouble;
129 }
130
131 /**
132 * @param myDouble
133 * The myDouble to set.
134 */
135 public void setMyDouble(double myDouble) {
136 m_myDouble = myDouble;
137 }
138
139 /**
140 * @return Returns the myInt.
141 */
142 public int getMyInt() {
143 return m_myInt;
144 }
145
146 /**
147 * @param myInt
148 * The myInt to set.
149 */
150 public void setMyInt(int myInt) {
151 m_myInt = myInt;
152 }
153
154 /**
155 * @return Returns the myLong.
156 */
157 public long getMyLong() {
158 return m_myLong;
159 }
160
161 /**
162 * @param myLong
163 * The myLong to set.
164 */
165 public void setMyLong(long myLong) {
166 m_myLong = myLong;
167 }
168
169 /**
170 * @return Returns the myString.
171 */
172 public String getMyString() {
173 return m_myString;
174 }
175
176 /**
177 * @param myString
178 * The myString to set.
179 */
180 public void setMyString(String myString) {
181 m_myString = myString;
182 }
183
184 /**
185 * @return Returns myStringArray
186 */
187 public String[] getMyStringArray() {
188 return m_myStringArray;
189 }
190
191 /**
192 * @param myStringArray
193 * The String array to set
194 */
195 public void setMyStringArray(String[] myStringArray) {
196 m_myStringArray = myStringArray;
197 }
198
199 /**
200 * @return Returns myIntArray
201 */
202 public int[] getMyIntArray() {
203 return m_myIntArray;
204 }
205
206 /**
207 * @param myIntArray
208 * The int array to set
209 */
210 public void setMyIntArray(int[] myIntArray) {
211 m_myIntArray = myIntArray;
212 }
213
214 /**
215 * @return Returns myNestedObject
216 */
217 public SomeIntValue getSomeValue() {
218 return m_myNestedObject;
219 }
220
221 /**
222 * @param object
223 * The SomeIntValueJaxws to set
224 */
225 public void setSomeValue(SomeIntValue object) {
226 m_myNestedObject = object;
227 }
228
229 /**
230 * @return Returns myIntegerList.
231 */
232 public List<Integer> getMyIntegerList() {
233 return m_myIntegerList;
234 }
235
236 /**
237 * @param myIntegerList The myIntegerList to set.
238 */
239 public void setMyIntegerList(List<Integer> myIntegerList) {
240 m_myIntegerList = myIntegerList;
241 }
242
243 /**
244 * @return Returns the myNestedObjectList.
245 */
246 public List<SomeIntValue> getMyNestedObjectList() {
247 return m_myNestedObjectList;
248 }
249
250 /**
251 * @param myNestedObjectList Is the myNestedObjectList to set.
252 */
253 public void setMyNestedObjectList(List<SomeIntValue> myNestedObjectList) {
254 m_myNestedObjectList = myNestedObjectList;
255 }
256
257 /**
258 * @return Returns myIntegerSet.
259 */
260 public Set<Integer> getMyIntegerSet() {
261 return m_myIntegerSet;
262 }
263
264 /**
265 * @param myIntegerSet The myIntegerSet to set.
266 */
267 public void setMyIntegerSet(Set<Integer> myIntegerSet) {
268 m_myIntegerSet = myIntegerSet;
269 }
270
271 /**
272 * @return Returns the myIntMatrix.
273 *
274 * ATTENTION: strange: {@link XmlJavaTypeAdapter} is not accepted here
275 */
276 public int[][] getMyIntMatrix() {
277 return m_myIntMatrix;
278 }
279
280 /**
281 * @param myIntMatrix Is the myIntMatrix to set.
282 */
283 @XmlJavaTypeAdapter(type = int[][].class, value = IntMatrixAdapter.class)
284 public void setMyIntMatrix(int[][] myIntMatrix) {
285 m_myIntMatrix = myIntMatrix;
286 }
287 }