01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: Typed.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.testelements.submission;
09:
10: import com.uwyn.rife.engine.Element;
11:
12: public class Typed extends Element {
13: public void processElement() {
14: print("paramstring1:"
15: + getParameter("paramstring1", "stringdefault"));
16: print("paramstring2:" + getParameter("paramstring2"));
17: print("paramstring2default:"
18: + getParameter("paramstring2", "stringdefault"));
19: print("paramint1:" + getParameterInt("paramint1", 123));
20: print("paramint2:" + getParameterInt("paramint2"));
21: print("paramint2default:" + getParameterInt("paramint2", 123));
22: print("paramlong1:"
23: + getParameterLong("paramlong1", 983749876L));
24: print("paramlong2:" + getParameterLong("paramlong2"));
25: print("paramlong2default:"
26: + getParameterLong("paramlong2", 983749876L));
27: print("paramdouble1:"
28: + getParameterDouble("paramdouble1", 34778.34));
29: print("paramdouble2:" + getParameterDouble("paramdouble2"));
30: print("paramdouble2default:"
31: + getParameterDouble("paramdouble2", 34778.34));
32: print("paramfloat1:"
33: + getParameterFloat("paramfloat1", 324.34f));
34: print("paramfloat2:" + getParameterFloat("paramfloat2"));
35: print("paramfloat2default:"
36: + getParameterFloat("paramfloat2", 324.34f));
37: }
38: }
|