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  package ch.elca.el4j.tests.remoting.jaxws.service;
18  
19  import javax.xml.bind.annotation.XmlAccessType;
20  import javax.xml.bind.annotation.XmlAccessorType;
21  import javax.xml.bind.annotation.XmlElementWrapper;
22  import javax.xml.bind.annotation.XmlRootElement;
23  import javax.xml.bind.annotation.XmlType;
24  
25  /**
26   *
27   * This class is used to pass a comlex element through the implicit context.
28   * Its originally a copy of the <code>CalculatorValueObject</code>,
29   * but uses different Annotations.
30   *
31   * @svnLink $Revision: 3884 $;$Date: 2009-08-04 15:48:31 +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/TestJaxwsContextPassingValue.java $
32   *
33   * @author Philippe Jacot (PJA)
34   */
35  @XmlRootElement(name = "TestXFireContextPassingValue")
36  @XmlType
37  @XmlAccessorType(XmlAccessType.FIELD)
38  public class TestJaxwsContextPassingValue {
39  	/**
40  	 * Int test value.
41  	 */
42  	
43  	private int m_myInt;
44  
45  	/**
46  	 * Long test value.
47  	 */
48  	private long m_myLong;
49  	
50  	/**
51  	 * Double test value.
52  	 */
53  
54  	private double m_myDouble;
55  	
56  	/**
57  	 * String test value.
58  	 */
59  
60  	private String m_myString;
61  	
62  	/**
63  	 * Byte array test value.
64  	 *
65  	 * There is no @XmlElementWrapper possible.
66  	 * byte[] is translated to xs:base64Binary
67  	 */
68  	private byte[] m_myByteArray;
69  	
70  	/**
71  	 * String array test value.
72  	 */
73  	@XmlElementWrapper(name = "myStrings")
74  	private String[] m_myStringArray;
75  	
76  	/**
77  	 * String array test value.
78  	 */
79  	@XmlElementWrapper(name = "myInts")
80  	private int[] m_myIntArray;
81  
82  	/**
83  	 * @return Returns the myByteArray.
84  	 */
85  	public byte[] getMyByteArray() {
86  		return m_myByteArray;
87  	}
88  
89  	/**
90  	 * @param myByteArray
91  	 *            The myByteArray to set.
92  	 */
93  	public void setMyByteArray(byte[] myByteArray) {
94  		m_myByteArray = myByteArray;
95  	}
96  
97  	/**
98  	 * @return Returns the myDouble.
99  	 */
100 	public double getMyDouble() {
101 		return m_myDouble;
102 	}
103 
104 	/**
105 	 * @param myDouble
106 	 *            The myDouble to set.
107 	 */
108 	public void setMyDouble(double myDouble) {
109 		m_myDouble = myDouble;
110 	}
111 
112 	/**
113 	 * @return Returns the myInt.
114 	 */
115 	public int getMyInt() {
116 		return m_myInt;
117 	}
118 
119 	/**
120 	 * @param myInt
121 	 *            The myInt to set.
122 	 */
123 	public void setMyInt(int myInt) {
124 		m_myInt = myInt;
125 	}
126 
127 	/**
128 	 * @return Returns the myLong.
129 	 */
130 	public long getMyLong() {
131 		return m_myLong;
132 	}
133 
134 	/**
135 	 * @param myLong
136 	 *            The myLong to set.
137 	 */
138 	public void setMyLong(long myLong) {
139 		m_myLong = myLong;
140 	}
141 
142 	/**
143 	 * @return Returns the myString.
144 	 */
145 	public String getMyString() {
146 		return m_myString;
147 	}
148 
149 	/**
150 	 * @param myString
151 	 *            The myString to set.
152 	 */
153 	public void setMyString(String myString) {
154 		m_myString = myString;
155 	}
156 	
157 	/**
158 	 * @return Returns myStringArray
159 	 */
160 	public String[] getMyStringArray() {
161 		return m_myStringArray;
162 	}
163 	
164 	/**
165 	 * @param myStringArray
166 	 *            The String array to set
167 	 */
168 	public void setMyStringArray(String[] myStringArray) {
169 		m_myStringArray = myStringArray;
170 	}
171 	
172 	/**
173 	 * @return Returns myIntArray
174 	 */
175 	public int[] getMyIntArray() {
176 		return m_myIntArray;
177 	}
178 	
179 	/**
180 	 * @param myIntArray
181 	 *            The int array to set
182 	 */
183 	public void setMyIntArray(int[] myIntArray) {
184 		m_myIntArray = myIntArray;
185 	}
186 }