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: BeanPrefixDestination.java 3693 2007-03-14 10:55:56Z gbevin $
07: */
08: package com.uwyn.rife.engine.testelements.exits;
09:
10: import com.uwyn.rife.engine.Element;
11: import com.uwyn.rife.tools.BeanUtils;
12:
13: public class BeanPrefixDestination extends Element {
14: public void processElement() {
15: BeanImpl1 bean1 = getNamedInputBean("inbean1");
16: print(bean1.getString1()
17: + ","
18: + bean1.getString2()
19: + ","
20: + bean1.getString3()
21: + ","
22: + bean1.getEnum4()
23: + ","
24: + (null == bean1.getDate5() ? null : BeanUtils
25: .getConcisePreciseDateFormat().format(
26: bean1.getDate5())));
27: BeanImpl1 bean2 = getNamedInputBean("inbean2");
28: print(bean2.getString1() + "," + bean2.getString2() + ","
29: + bean2.getString3() + "," + bean2.getEnum4() + ","
30: + bean2.getDate5());
31: }
32: }
|