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: AnnotationsSource.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.testelements.subsites;
09:
10: import com.uwyn.rife.engine.Element;
11: import com.uwyn.rife.engine.annotations.Datalink;
12: import com.uwyn.rife.engine.annotations.Elem;
13: import com.uwyn.rife.engine.annotations.Flowlink;
14: import com.uwyn.rife.engine.annotations.OutputProperty;
15:
16: @Elem(flowlinks={@Flowlink(srcExit="exit1",destClass=AnnotationsDest.class,destClassIdPrefix="ANNOTATIONS",datalinks={@Datalink(srcOutput="output1",destInput="input1"),@Datalink(srcOutput="output2",destInput="input2")})})
17: public class AnnotationsSource extends Element {
18: private String mOutput1;
19: private String mOutput2;
20:
21: @OutputProperty
22: public String getOutput1() {
23: return mOutput1;
24: }
25:
26: @OutputProperty
27: public String getOutput2() {
28: return mOutput2;
29: }
30:
31: public void processElement() {
32: mOutput1 = "output value 1";
33: mOutput2 = "output value 2";
34:
35: exit("exit1");
36: }
37: }
|