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: BeanNormalDestination.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 BeanNormalDestination extends Element {
14: public void processElement() {
15: BeanImpl1 bean1 = getInputBean(BeanImpl1.class);
16: print(bean1.getString1()
17: + ","
18: + bean1.getString2()
19: + ","
20: + bean1.getString3()
21: + ","
22: + bean1.getEnum4()
23: + ","
24: + BeanUtils.getConcisePreciseDateFormat().format(
25: bean1.getDate5()));
26: BeanImpl2 bean2 = getInputBean(BeanImpl2.class);
27: print(bean2.getEnum4()
28: + ","
29: + BeanUtils.getConcisePreciseDateFormat().format(
30: bean2.getDate5()) + "," + bean2.getString6()
31: + "," + bean2.getString7() + "," + bean2.getString8());
32: }
33: }
|