View Javadoc

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.service;
19  
20  /**
21   * This is a value object for test reason.
22   *
23   * @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/web/jar/src/main/java/ch/elca/el4j/tests/remoting/service/CalculatorValueObject.java $
24   *
25   * @author Martin Zeltner (MZE)
26   */
27  public class CalculatorValueObject {
28  	/**
29  	 * Int test value.
30  	 */
31  	private int m_myInt;
32  
33  	/**
34  	 * Long test value.
35  	 */
36  	private long m_myLong;
37  	
38  	/**
39  	 * Double test value.
40  	 */
41  	private double m_myDouble;
42  	
43  	/**
44  	 * String test value.
45  	 */
46  	private String m_myString;
47  	
48  	/**
49  	 * Byte array test value.
50  	 *
51  	 * There is no @XmlElementWrapper possible.
52  	 * byte[] is translated to xs:base64Binary
53  	 */
54  	private byte[] m_myByteArray;
55  	
56  	/**
57  	 * String array test value.
58  	 */
59  	private String[] m_myStringArray;
60  	
61  	/**
62  	 * String array test value.
63  	 */
64  	private int[] m_myIntArray;
65  
66  	/**
67  	 * @return Returns the myByteArray.
68  	 */
69  	public byte[] getMyByteArray() {
70  		return m_myByteArray;
71  	}
72  
73  	/**
74  	 * @param myByteArray
75  	 *            The myByteArray to set.
76  	 */
77  	public void setMyByteArray(byte[] myByteArray) {
78  		m_myByteArray = myByteArray;
79  	}
80  
81  	/**
82  	 * @return Returns the myDouble.
83  	 */
84  	public double getMyDouble() {
85  		return m_myDouble;
86  	}
87  
88  	/**
89  	 * @param myDouble
90  	 *            The myDouble to set.
91  	 */
92  	public void setMyDouble(double myDouble) {
93  		m_myDouble = myDouble;
94  	}
95  
96  	/**
97  	 * @return Returns the myInt.
98  	 */
99  	public int getMyInt() {
100 		return m_myInt;
101 	}
102 
103 	/**
104 	 * @param myInt
105 	 *            The myInt to set.
106 	 */
107 	public void setMyInt(int myInt) {
108 		m_myInt = myInt;
109 	}
110 
111 	/**
112 	 * @return Returns the myLong.
113 	 */
114 	public long getMyLong() {
115 		return m_myLong;
116 	}
117 
118 	/**
119 	 * @param myLong
120 	 *            The myLong to set.
121 	 */
122 	public void setMyLong(long myLong) {
123 		m_myLong = myLong;
124 	}
125 
126 	/**
127 	 * @return Returns the myString.
128 	 */
129 	public String getMyString() {
130 		return m_myString;
131 	}
132 
133 	/**
134 	 * @param myString
135 	 *            The myString to set.
136 	 */
137 	public void setMyString(String myString) {
138 		m_myString = myString;
139 	}
140 	
141 	/**
142 	 * @return Returns myStringArray
143 	 */
144 	public String[] getMyStringArray() {
145 		return m_myStringArray;
146 	}
147 	
148 	/**
149 	 * @param myStringArray
150 	 *            The String array to set
151 	 */
152 	public void setMyStringArray(String[] myStringArray) {
153 		m_myStringArray = myStringArray;
154 	}
155 	
156 	/**
157 	 * @return Returns myIntArray
158 	 */
159 	public int[] getMyIntArray() {
160 		return m_myIntArray;
161 	}
162 	
163 	/**
164 	 * @param myIntArray
165 	 *            The int array to set
166 	 */
167 	public void setMyIntArray(int[] myIntArray) {
168 		m_myIntArray = myIntArray;
169 	}
170 }